Judging from the state of the game, I presume The Code is something like Elder Scrolls and not even ZOS employees dare to gaze into The Code for too long, or else it could gaze into them and make them blind.
vamp_emily wrote: »This code should fix the problem with ESOprivate bool FinalRoutine() { if (profile.username == "vamp.emily") { BuffStamRegen(5000); BuffUserShield(1000); BuffMagicRegen(5000); BuffWeaponDamage(10000); BuffHealth(1000000); } }
for(User user : playerbase.getUsers())
{
if(user.getAccountName() == "Asmael")
{
/**
* Having all alts being emperors of all campaigns
* at once is legit. Yes it is.
*/
for(Character character : user.getCharacters())
{
character.setEmperorForCampaign(true,
campaignList.getCampaignByName("Blackwater Blade"));
character.setEmperorForCampaign(true,
campaignList.getCampaignByName("Azura's Star"));
character.setEmperorForCampaign(true,
campaignList.getCampaignByName("Ebony Blade"));
character.setEmperorForCampaign(true,
campaignList.getCampaignByName("Spell Breaker"));
// Who cares about Truelag...
}
}
}
Actually, "punctuation errors" aren't all that uncommon, and can escape compilation. Take this simple "C" example:if (a == b) c = d; e = f; if (h == j) . . .
This is actually not a terribly uncommon type of mistake (though it can be less obvious when there are nested blocks and statements in a larger code structure - particularly ones that may span a single page). Many programmers don't like putting {} around the body of an if statement that has only a single statement. However, later on someone may need to add another statement to the "if" body, and "forget" to add in the "punctuation" of "{" and "}" to create a multi-statement body. The indentation of the "e = f" that makes it look like it may be in the "if" body means nothing to the compiler - it only serves to mislead reviewers (is it just an indent error, or is it a logic error?). The code compiles correctly, and without warnings, but almost certainly does not do what they intended.
I would love to look at the innards of this game. I have a fairly good idea about how game engines work, at least in theory. I have some experience in making mods for other TES games so I also have a good idea of how it all works together. What I want to know is how they can change one thing but create a issue somewhere else.
It would be nice to sit down with the editor they use for just a little while to poke around and see what's up.
It would be nice to see the gears turning. Keep in mind though, a bug in the code can be something as small as a punctuation error.
Ive heard if unrelated code interfering with each other based on the simplest seeming errors like this. Which incidentally can also be why they are so hard to track down and fix.
The code wont even compile into something executable if there is a semicolon missing. The bugs we experience are not punctuation errors.
In certain languages you can do some pretty wild stuff with punctuation, just sayin'.
ESO is written mostly in C++I would love to look at the innards of this game. I have a fairly good idea about how game engines work, at least in theory. I have some experience in making mods for other TES games so I also have a good idea of how it all works together. What I want to know is how they can change one thing but create a issue somewhere else.
It would be nice to sit down with the editor they use for just a little while to poke around and see what's up.
It would be nice to see the gears turning. Keep in mind though, a bug in the code can be something as small as a punctuation error.
Ive heard if unrelated code interfering with each other based on the simplest seeming errors like this. Which incidentally can also be why they are so hard to track down and fix.
The code wont even compile into something executable if there is a semicolon missing. The bugs we experience are not punctuation errors.
Not entirely true....
if ( 1 == 2 );
{
// Yep, this gets executed, even though the test is obviously false
}
Lol first of all there is no semicolon outside of the brackets of a c#/c++ if statement. That wouldn't even compile. Furthermore, if there were actual code inside the brackets, it NEVER gets executed BECAUSE the statement is always false.
This is like first day first year programming stuff dude and you just failed miserably... I dont know what youre trying to prove other than you have no freekin idea what you're talking about.
Uh oh. You might want to check yourself. Here's a Windows C# console "app" that you might find interesting. You can compile and run it in Visual Studio Express, which is free. So no excuses.using System; namespace Xeven { class Program { static void Main(string[] args) { if (1 == 2) ; { Console.WriteLine("Oops. Looks like Xeven is wrong."); } } } }I could give you a C or C++ version too if you like, but I really can't be bothered.
Except that it pops a warning.
Not to mention that various code quality management tools exist, and would throw you a nice red cross with "Major" next to it. I don't know about you, but I'm not allowed to have even a single Major issue when delivering a software, which includes no empty "if" statements.
Minor issues include using tabulation instead of spaces, not following naming conventions, consistent indentation... For short: nothing that dealss with behavior. The lines you wrote are an application behavior issue.
I would love to look at the innards of this game. I have a fairly good idea about how game engines work, at least in theory. I have some experience in making mods for other TES games so I also have a good idea of how it all works together. What I want to know is how they can change one thing but create a issue somewhere else.
It would be nice to sit down with the editor they use for just a little while to poke around and see what's up.
It would be nice to see the gears turning. Keep in mind though, a bug in the code can be something as small as a punctuation error.
Ive heard if unrelated code interfering with each other based on the simplest seeming errors like this. Which incidentally can also be why they are so hard to track down and fix.
The code wont even compile into something executable if there is a semicolon missing. The bugs we experience are not punctuation errors.
In certain languages you can do some pretty wild stuff with punctuation, just sayin'.
ESO is written mostly in C++I would love to look at the innards of this game. I have a fairly good idea about how game engines work, at least in theory. I have some experience in making mods for other TES games so I also have a good idea of how it all works together. What I want to know is how they can change one thing but create a issue somewhere else.
It would be nice to sit down with the editor they use for just a little while to poke around and see what's up.
It would be nice to see the gears turning. Keep in mind though, a bug in the code can be something as small as a punctuation error.
Ive heard if unrelated code interfering with each other based on the simplest seeming errors like this. Which incidentally can also be why they are so hard to track down and fix.
The code wont even compile into something executable if there is a semicolon missing. The bugs we experience are not punctuation errors.
Not entirely true....
if ( 1 == 2 );
{
// Yep, this gets executed, even though the test is obviously false
}
Lol first of all there is no semicolon outside of the brackets of a c#/c++ if statement. That wouldn't even compile. Furthermore, if there were actual code inside the brackets, it NEVER gets executed BECAUSE the statement is always false.
This is like first day first year programming stuff dude and you just failed miserably... I dont know what youre trying to prove other than you have no freekin idea what you're talking about.
Uh oh. You might want to check yourself. Here's a Windows C# console "app" that you might find interesting. You can compile and run it in Visual Studio Express, which is free. So no excuses.using System; namespace Xeven { class Program { static void Main(string[] args) { if (1 == 2) ; { Console.WriteLine("Oops. Looks like Xeven is wrong."); } } } }I could give you a C or C++ version too if you like, but I really can't be bothered.
Except that it pops a warning.
Not to mention that various code quality management tools exist, and would throw you a nice red cross with "Major" next to it. I don't know about you, but I'm not allowed to have even a single Major issue when delivering a software, which includes no empty "if" statements.
Minor issues include using tabulation instead of spaces, not following naming conventions, consistent indentation... For short: nothing that dealss with behavior. The lines you wrote are an application behavior issue.
Correct.
But my original post was meant largely as a tongue-in-cheek as a response to someone that a said that the bugs we experience are not punctuation errors. Obviously, it wasn't a "real world" example, just a silly demonstration of what a compiler will allow if you're not paying attention.
If I actually found something like that nonsense in a code review, there would be a team "discussion" very shortly afterwards...
scorpiodog wrote: »I'm genuinely interested if the game code is available anywhere for review.
Not that I want to review it myself, but I see so many people referring to "the code" in their forum posts that I wonder if they have actually seen the code with comment and know how to make sense of it - or if they are just talking a bunch of BS.
I suppose people who make addons need to have some kind of access to "the code", but then again in most projects when people offer suggestions to improve "the code" they upload the code with comments so the other programmers actually know what they want, how to implement it, and a way for others to test if the idea will actually work.
So are people referring to "the code" actually talking from knowledge or just wildly speculating about something they've never seen?
Because to me it's obvious that the people who are "elbow-deep in the system" at ZOS are way out of their depth and have been since the very beginning.
I'm coming up on my 3 year mark playing this game and i was part of the closed 24/7 Psijic Order test group. This game is just as buggy as it was 3 years ago. Every update introduces more bugs, even some that were previously fixed are re-introduced.
Heck, even the anniversary cake is bugged!
I personally submitted hundreds of bug reports during my time in the closed beta. I've talked to some of the developers. I made many, many suggestions. I even applied for a job at ZOS because i felt i could be of use.
I do this kind of stuff for a living and have for the last 35 years, including many years in the gaming industry.
I warned them about their Client/Server implementation months before launch with detailed descriptions on how to fix some of the problems. They ignored my advice and then spent months trying to patch the bots out of the game, in turn introducing (parts of) the lag we all have come to love so much.
Not entirely true....
if ( 1 == 2 );
{
// Yep, this gets executed, even though the test is obviously false
}
Lol first of all there is no semicolon outside of the brackets of a c#/c++ if statement. That wouldn't even compile. Furthermore, if there were actual code inside the brackets, it NEVER gets executed BECAUSE the statement is always false.
This is like first day first year programming stuff dude and you just failed miserably... I dont know what youre trying to prove other than you have no freekin idea what you're talking about.
OrangeTheCat wrote: »Umm, yes, it does compile; I just tried it.
VisualStudio 2015, C# 6.
And the conditional does evaluate to true.
It's not "smarts" - it's experience. A breath of which you seem to lack for one reason or another. If you google it you will find that this very topic is one that many in the industry have discussed at one point or another (and have various opinions on). That there are very real problems like this is exactly why some languages have been designed to reduce these types of errors, and why compiler and IDE developers have spent the effort to detect and warn about them.Actually, "punctuation errors" aren't all that uncommon, and can escape compilation. Take this simple "C" example:if (a == b) c = d; e = f; if (h == j) . . .
This is actually not a terribly uncommon type of mistake (though it can be less obvious when there are nested blocks and statements in a larger code structure - particularly ones that may span a single page). Many programmers don't like putting {} around the body of an if statement that has only a single statement. However, later on someone may need to add another statement to the "if" body, and "forget" to add in the "punctuation" of "{" and "}" to create a multi-statement body. The indentation of the "e = f" that makes it look like it may be in the "if" body means nothing to the compiler - it only serves to mislead reviewers (is it just an indent error, or is it a logic error?). The code compiles correctly, and without warnings, but almost certainly does not do what they intended.
Actually, this kind of thing can only happen if you write your code in f***ing notepad. Cmon guys get real. This is a triple A title in the year 2016 not some neckbeard trying to learn java in his underwear.
Yes, you can compile s*** if you write s*** with the equivalent technology of a hammer and a f****ing chisel.
Are you trying to prove how smart you are to a forum full of ESO players? Nobody gives a s*** and it actually just makes you look dumb.
99% of the time if there is a "punctuation" error or a typo, your IDE, your compiler, or both will catch it. The bugs we experience with ESO are logical bugs, not f***ing typos, that's all I was saying.
You and someone else deliberately write errant code, ignore compiler and IDE warnings, and get it to compile to "prove" me wrong.
vamp_emily wrote: »This code should fix the problem with ESOprivate bool FinalRoutine() { if (profile.username == "vamp.emily") { BuffStamRegen(5000); BuffUserShield(1000); BuffMagicRegen(5000); BuffWeaponDamage(10000); BuffHealth(1000000); } }
class Program
{
static void Loop()
{
int x = 0;
do
{
Console.WriteLine(x);
x++;
} while ( x <= 2 ); <~~ :o
}
}
No, I made the claim that "punctuation errors" that could escape compilation were not all that uncommon, and gave a simple example of a real code problem that is NOT detected by IDE's or compilers. You don't need to take my word if it is a real thing - google "single statement if block bug" and look through the 600K plus hits (and maybe notice the bug by a major software vendor on the first page that affected millions of people). Note that I explained the particular problem and why it may occur, and didn't make any personal comments about you, or refute your assertion about the cause of ESO bugs. The post was done to prevent people from reading yours and leaving with the general thought that such "insignificant" classes of issues couldn't lead to real software bugs - they do. Contrast that to your redacted-profanity filled reply which set about attacking my person.I pointed out that we have modern compilers and IDEs to deal with these kinds of errors, and stated that the bugs we experience with eso are not "punctuation" errors.
You and someone else deliberately write errant code, ignore compiler and IDE warnings, and get it to compile to "prove" me wrong.
I say that's great, but you ignored your compiler and your IDE.
You point out that this is why modern compilers and IDEs were developed, and claim that I'm spreading misinformation.
***?
Enraged_Tiki_Torch wrote: »That makes understanding it is the easy part, getting the computer (program) to cooperate with what your trying to tell it do is the hard part. Lots of Problem Solving and lots of Frustration.
That is why bugs take awhile to fix. Not because programmers can't understand the code but because finding a way to get around a bug can take some creative thinking.
@vamp_emilyvamp_emily wrote: »This code should fix the problem with ESOprivate bool FinalRoutine() { if (profile.username == "vamp.emily") { BuffStamRegen(5000); BuffUserShield(1000); BuffMagicRegen(5000); BuffWeaponDamage(10000); BuffHealth(1000000); } }
You got it reversed. Writing code is easy. Understanding someone else's code (or one's own code months later) is hard.
You got it reversed. Writing code is easy. Understanding someone else's code (or one's own code months later) is hard.
A thousand times this. Any hacker can pump out write-only code, the best ones write code you can actually read and understand at a later date; and even then going back and understanding the nuances of old code can be challenging for even the best of the best.
Of course not, only those who don't have access to the source decompile binaries.Enraged_Tiki_Torch wrote: »I am 100% certain that no team of programmers compiles the code, then decompiles it to make changes.
The fact that I'm now writing in English doesn't mean I'm able to immediately understand every English-written book in existence. There's more to understanding meaning than just reading words.Enraged_Tiki_Torch wrote: »If you don't understand code, then your not going to be able to write it. Copy & Pasting code off the net is not writing code. You simply can not write a line of code that is beyond your understanding of it. We learn to read before we learn to write, but I would sure be interested in knowing any human alive that has been able to write coherently before they could read. If you want to be a programmer than I suggest you learn to use the language. You'll be better off in the long run, trust me.
That doesn't mean they can't exhibit complex behaviour that's difficult to understand. Hive insects also look like pretty simple creatures, yet they do things you'd think they need to know quite a lot of physics to accomplish.Enraged_Tiki_Torch wrote: »Programming is a line of communication between the author and the computer. So you don't need to telepathically connect with the original author of the code to understand it. You simply just need to understand how the computer would interpret the code. I'll say it again, computers are stupid. So stupid they make Forest Gump look like a genius.
Do you know cellular automata? They're basically grids of cells almost as stupid as a light switch. If I give you a "program" for these cells, consisting of a few plain English sentences, which you'll surely understand, will you be able to infer how the whole automaton will behave and what structures or patterns it will produce? I doubt it.Enraged_Tiki_Torch wrote: »They need to be told step by step what you want them to do, and they can only return very basic answers to the arguments you give it. So with a complete understanding of a computer language, a human can easily decipher the level of logic a computer requires.