HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wc3 loads, but map doesn't.

10-09-2007, 10:11 PM#1
Lordy
EDIT: Problem Solved.
Comments: local real x=x does not give a compile-error with JassHelper but it makes the map unable to load.
x = 2/0 (divide by zero) crashes wc3 on load, but not the compiler.

globals
leaderboard lb = CreateLeaderboard()
endglobals
^this also crashes the map on load. Also goes for multiboards.

Original:
I compile my map with the newest Genpack, I save the map. I hit run, wc3 loads, but the map doesn't.
What code flaws does the GenPackparser not see?
10-09-2007, 11:45 PM#2
Ammorth
usually you need to save a map twice (I always do) the first time you save a map, and sometimes after modifying code.

Also, if you attempt to modify stuff, and then don't the parser will not parse again (no change). War3 doesn't like this.

Solution: Save before testing your map.
10-10-2007, 01:57 AM#3
burningice95
If you have unrunnable (syntax error or something) code in your map, WC won't let you start up your map.
Turn on Jass Helper and save your map, and make sure you have no errors.

If you only have a bit of jass code in your map, you could try posting that here , and we could take a look at it, since its likely that it is the cause of the problem
10-10-2007, 11:06 AM#4
Lordy
Thanks for replies, but my problem is not solved.
"usually you need to save a map twice (I always do) the first time you save a map, and sometimes after modifying code."
Yes I always save before testing, as you can see from my initial post: "I save the map"
"Turn on Jass Helper and save your map"
I am using JassNewGenPack, which uses JassHelper.
"If you only have a bit of jass code in your map, you could try posting that here , and we could take a look at it"
Yeah, thanks for suggesting. I would have checkt he code myself, if it wasn't 10k lines long.

The problem is: my map doesn't run. I know the reason: somewhere I have a syntax error in my code, which is not found when I compile the map.
My shit-solution now is to let jasshelper compile the code, then edit the mapfile to remove a bottom part of the code. If the removed code part had the error then the map runs, if not then I need to remove more code and again check if the map runs. By repeating this proces I can narrow down the location of the false code. Shitty thing to do still cause of the amount of code I have. It takes quite a bit of time, and I need to open the map with mpq-editor etc..
I can't remove the bottom part of the code before compiling the map because I have globals declared and used all over my code so removing the bottom part of the code gives errors in the upper part.

So, does anyone know which code-errors JassHelper does Not find?
I had this problem before. I narrowed the problemcode down and finaly found some false code that JassHelper failed to see. It is it too bad that I can't remember what the false code was.

EDIT: I can't get the map to load, even when editing the mapfile manualy and removing most of the code.
I attached the map. It compiles no problem with Jasshelper but wc3 doesn't load it. If anyone can find the error for me, then YAY! Thanks you muchos.
Attached Files
File type: w3xherotestmapremy2.5c.w3x (709.8 KB)
10-10-2007, 04:21 PM#5
botanic
try using jass demo syntax checker on the jass files
10-10-2007, 04:32 PM#6
Captain Griffen
Don't call natives or functions from global tags (as the readme clearly states).

local ____ x = x is fairly obviously going to go bad, as x isn't defined/declared.
10-12-2007, 08:37 PM#7
Lordy
Yeah I now the x=x is obviously bad but.. would be nice if the syntax checker sees it. I have been recoding a big piece of code and mistakes like x=x just happen.