Code\! Weather.dm:216:warning: if: if statement has no effect
loading GameMap.dmm
GameMap.dmm:149:error: invalid variable name: !
GameMap.dmm:149:error: expected =
GameMap.dmm:149:error: expected )
<b>Problem description:</b>
So, I am working on migrating some map files. I have successfully migrated all the turfs, and the areas. The code compiles fine with my original map file, and I can open the new map file and edit it, no issues, no missing icons, everything looks perfect.
But, when I uncheck the old map file, and select the new map file to Compile, I get the above errors, and then the map file becomes unable to be launched at all, and has to be deleted and replaced with a backup file.
Any help would be greatly appreciated.
ID:2334530
Jan 4 2018, 4:28 pm
|
|
Code:
|
Jan 4 2018, 6:43 pm
|
|
You'd need to open the dmm file in notepad, go to that line and figure out why it's spitting out an error. You can paste the line here if it's not an obvious thing.
|
I found the obj errors by removing some objects that called for certain procs/vars that didn't exist anymore. The thing is, now I get these errors
GameMap.dmm:31:error: invalid variable name: gotoX GameMap.dmm:31:error: invalid variable name: gotoY GameMap.dmm:31:error: invalid variable name: gotoZ GameMap.dmm:37:error: invalid variable name: gotoX GameMap.dmm:37:error: invalid variable name: gotoY GameMap.dmm:37:error: invalid variable name: gotoZ GameMap.dmm:40:error: invalid variable name: gotoX GameMap.dmm:40:error: invalid variable name: gotoY GameMap.dmm:40:error: invalid variable name: gotoZ GameMap.dmm:43:error: invalid variable name: gotoX GameMap.dmm:43:error: invalid variable name: gotoY GameMap.dmm:43:error: invalid variable name: gotoZ GameMap.dmm:81:error: invalid variable name: gotoX GameMap.dmm:81:error: invalid variable name: gotoY GameMap.dmm:81:error: invalid variable name: gotoZ GameMap.dmm:148:error: invalid variable name: LogPEndurance GameMap.dmm:252:error: invalid variable name: Destructable GameMap.dmm:261:error: invalid variable name: gotoX GameMap.dmm:261:error: invalid variable name: gotoY GameMap.dmm:261:error: invalid variable name: gotoZ GameMap.dmm:262:error: invalid variable name: gotoX GameMap.dmm:262:error: invalid variable name: gotoY GameMap.dmm:262:error: invalid variable name: gotoZ GameMap.dmm:490:error: invalid variable name: gotoX GameMap.dmm:490:error: invalid variable name: gotoY GameMap.dmm:490:error: invalid variable name: gotoZ GameMap.dmm:497:error: invalid variable name: gotoX GameMap.dmm:497:error: invalid variable name: gotoY GameMap.dmm:497:error: invalid variable name: gotoZ GameMap.dmm:498:error: invalid variable name: gotoX GameMap.dmm:498:error: invalid variable name: gotoY GameMap.dmm:498:error: invalid variable name: gotoZ GameMap.dmm:504:error: invalid variable name: gotoX GameMap.dmm:504:error: invalid variable name: gotoY GameMap.dmm:504:error: invalid variable name: gotoZ GameMap.dmm:505:error: invalid variable name: gotoX GameMap.dmm:505:error: invalid variable name: gotoY GameMap.dmm:505:error: invalid variable name: gotoZ GameMap.dmm:506:error: invalid variable name: gotoX GameMap.dmm:506:error: invalid variable name: gotoY GameMap.dmm:506:error: invalid variable name: gotoZ GameMap.dmm:507:error: invalid variable name: gotoX GameMap.dmm:507:error: invalid variable name: gotoY GameMap.dmm:507:error: invalid variable name: gotoZ GameMap.dmm:509:error: invalid variable name: gotoX GameMap.dmm:509:error: invalid variable name: gotoY GameMap.dmm:509:error: invalid variable name: gotoZ GameMap.dmm:510:error: invalid variable name: gotoX GameMap.dmm:510:error: invalid variable name: gotoY GameMap.dmm:510:error: invalid variable name: gotoZ GameMap.dmm:511:error: invalid variable name: gotoX GameMap.dmm:511:error: invalid variable name: gotoY GameMap.dmm:511:error: invalid variable name: gotoZ GameMap.dmm:512:error: invalid variable name: gotoX GameMap.dmm:512:error: invalid variable name: gotoY GameMap.dmm:512:error: invalid variable name: gotoZ GameMap.dmm:513:error: invalid variable name: gotoX GameMap.dmm:513:error: invalid variable name: gotoY GameMap.dmm:513:error: invalid variable name: gotoZ GameMap.dmm:514:error: invalid variable name: gotoX GameMap.dmm:514:error: invalid variable name: gotoY GameMap.dmm:514:error: invalid variable name: gotoZ GameMap.dmm:518:error: invalid variable name: gotoX GameMap.dmm:518:error: invalid variable name: gotoY GameMap.dmm:518:error: invalid variable name: gotoZ GameMap.dmm:520:error: invalid variable name: gotoX GameMap.dmm:520:error: invalid variable name: gotoY GameMap.dmm:520:error: invalid variable name: gotoZ GameMap.dmm:615:error: invalid variable name: gotoX GameMap.dmm:615:error: invalid variable name: gotoY GameMap.dmm:615:error: invalid variable name: gotoZ GameMap.dmm:862:error: invalid variable name: gotoX GameMap.dmm:862:error: invalid variable name: gotoY GameMap.dmm:862:error: invalid variable name: gotoZ GameMap.dmm:865:error: invalid variable name: gotoX GameMap.dmm:865:error: invalid variable name: gotoY GameMap.dmm:865:error: invalid variable name: gotoZ GameMap.dmm:868:error: invalid variable name: gotoX GameMap.dmm:868:error: invalid variable name: gotoY GameMap.dmm:868:error: invalid variable name: gotoZ GameMap.dmm:872:error: invalid variable name: gotoX GameMap.dmm:872:error: invalid variable name: gotoY GameMap.dmm:872:error: invalid variable name: gotoZ GameMap.dmm:876:error: invalid variable name: gotoX GameMap.dmm:876:error: invalid variable name: gotoY GameMap.dmm:876:error: invalid variable name: gotoZ GameMap.dmm:879:error: invalid variable name: LogPEndurance GameMap.dmm:880:error: invalid variable name: LogPEndurance GameMap.dmm:880:error: invalid variable name: LogPEndurance GameMap.dmm:881:error: invalid variable name: LogPEndurance GameMap.dmm:882:error: invalid variable name: LogPEndurance GameMap.dmm:883:error: invalid variable name: LogPEndurance GameMap.dmm:883:error: invalid variable name: LogPEndurance GameMap.dmm:883:error: invalid variable name: LogPEndurance GameMap.dmm:884:error: invalid variable name: LogPEndurance GameMap.dmm:884:error: invalid variable name: LogPEndurance GameMap.dmm:884:error: invalid variable name: LogPEndurance GameMap.dmm:885:error: invalid variable name: LogPEndurance GameMap.dmm:885:error: invalid variable name: LogPEndurance GameMap.dmm:886:error: invalid variable name: LogPEndurance GameMap.dmm:886:error: invalid variable name: LogPEndurance LogPEndurance was a var that was a part of some of the turfs, but I removed it from the code, and the gotoX, gotoY, and gotoZ have been renamed to the proper var for my code. Compiles fine until I select the other Map File. |
The weird thing is, a lot of the lines calling for error are lines where there was never an XYZ call.
|
turf |
Changing or removing variables without updating the map file properly will cause issues, you'll have to remove or change the references to those variables in the DMM file, not the code.
|
So anything that originally had those variables will need to be removed and re added?
|
The lines the errors mention never had those vars before, so it seems odd. How can I remove or change the references to those variables aside from removing and re adding the turfs?
Also, thank you for the assistance |
Are you sure you're looking at the map and not the code? You showed code when mentioning those lines, those lines aren't pointing to your code file.
|
I might be lost then, when it is referencing the lines for the DMM file, where can I find those lines? Isn't the DMM file the object tree and the map file itself? Or is the line referencing an icon number, and if so, is there an easy way to track down which icon is which line?
|
It's the map file itself, map files are just plain-text files, you can open them in notepad to correct any errors. That's what I told you to do in the first place. None of the problems have been with the code.
|