ID:260423
 
In Resources maybe we could get a list of Compilation Errors codes. I like to know what the code means before clicking things. Its a habit I guess. Since we have the Reference, and Guide, Tutorials. I was thinking a good CE codes would be nice as well.
There's a basic list started here:
http://bwicki.byond.com/ByondBwicki.dmb?CompileErrors

I'm pretty sure that's not all of the errors you'll encounter, though.
In response to Foomer
Thanks its better than nothing.
In response to Signaki Corp
When you get better at coding, you learn how to read those errors. Or at least most of them..
In response to Kaiochao2536
most of them are self explanatory... "cannot find file", "undefined var" i dont really see the need for a list of them o.O
In response to Falacy
Falacy wrote:
most of them are self explanatory... "cannot find file", "undefined var" i dont really see the need for a list of them o.O

You'll find newer programmers have issues with things like "inconsistent indentation". You have to remember that most newer programmers are kids, who probably haven't gotten that far in their English classes to have heard the words "inconsistent" or even "indentation".

Extra help files are never useless.
In response to Tiberath
Or they're just new to programming in the first place and aren't entirely sure what "inconsistent indentation" is talking about until they've fixed it a time or two.
In response to Tiberath
That, and there are some issues that are rather vague. For instance, take the "missing comma ',' or right-paren ')'" message. Of course it would give you the line below, meaning someone who hasnt fixed the problem a couple times might take a few minutes to realize it.

Just a bunch of little quirks with the compilers error messages that you might not fully understand until youve been at it for a while. There was one I had a while back that I couldn't for the life of me figure out until after I had stopped coding and pondered it for an hour or so. A recreation:
"BYOND(400.962) Error: the file C:\Program Files\BYOND\Sabachthani\Sabachthani.rsc is locked up!
NPC.dm:9:error:'NPC.dmi':cannot find file"
isn't quite as clear cut as most. Do you have any idea how many hours it took me to figure out the cause of that message referred to the fact that you had the game running? Granted, I didnt spend that entire several hours trying to figure it out, and I had been without sleep for a couple days, but eventually I did realize the connection behind DA and the rsc locking up =/
In response to Jamesburrow
Jamesburrow wrote:
There was one I had a while back that I couldn't for the life of me figure out until after I had stopped coding and pondered it for an hour or so. A recreation:
"BYOND(400.962) Error: the file C:\Program Files\BYOND\Sabachthani\Sabachthani.rsc is locked up!
NPC.dm:9:error:'NPC.dmi':cannot find file"
isn't quite as clear cut as most. Do you have any idea how many hours it took me to figure out the cause of that message referred to the fact that you had the game running?

That one kicked me in the ass when I was a new programmer too. I actually copied the code, file by file to another project before I actually worked out what the hell that meant.

I was so angry at that message at the time.
In response to Tiberath
lol. As I said, once you learn to figure out the quirks in the compiler, you wont have any problems, but there is the occasional message that contains no clues about how to fix it and will leave you cussing and kicking, lol. It would be nice however if that error didnt happen at all. Ive always wondered why we can make as many changes as we want to the code while running the game, but we begin messing with the map or icons and it blows up at you x.x
In response to Jamesburrow
Because it can't make changes to the rsc file while its being used by the game?
In response to Foomer
I've suggested for a while now, when the game launches, make a copy of the rsc, and just use that copy for the game. But they never took me up on it.
In response to Flame Sage
Is it more of a hassle for you to close the game before compiling it, or for them to reprogram a bunch of stuff?
In response to Foomer
u know u could just package host files and host off those if you need to work on the game and host at the same time <.<
In response to Falacy
Normally this problem occurs while still developing it before release. You know, when you have DS open and will reconnect every time you add a little bit more to make sure it works properly.
In response to Jamesburrow
so close ds in between? takes like half a second to recompile and run a newly started game.
not a problem till u get majorly into it and it takes like 5 minutes to compile lol
In response to Falacy
Exactly, lol. Mine takes its time when compiling, lol. And at least half the code is stuff the average player will never have any reason to know about, but if the game didnt have it it would suck like hell, lol.
In response to Foomer
Foomer wrote:
Because it can't make changes to the rsc file while its being used by the game?

Yeah but again, these problems catch newbie programmers who don't know about data being locked off when being used- Tiberath and Jamesburrow being obvious examples. I've been caught by this before, too.

Granted, there may be other reasons why the rsc is being locked off and thus causing that error, but that doesn't mean it wouldn't be helpful to add a "(make sure no current copies of the game are running!)" message to the end of the error.
In response to Foomer
Yeah, but why do the icons have to make changes to the rsc while its open? I mean, the code doesnt, and without the code you can have all the icons in the world and it would be meaningless.

Meh. Im just being annoying. Ive been suspended from school for the past week and Im grounded from everything but the comp, and its beginning to affect me v.v At least I'm not as bad as I used to be back when I had no life, lol. And at least it's only for another week (I go back to school tomorrow, so that will definitely help.)