HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

gui error that displays Jass syntax error??

04-05-2008, 09:09 PM#1
MasterOfRa
In the world editor, I am using pure gui, but when i try to save, it gives me a jass error. im not sure how to fix it.
Errors
Code:
Expected a name
Expected a variable name
Expected a code statment
Expected a name 

error location
Code:
function LocalVars takes nothing returns gamecache
    if udg_cache==null then
        set udg_cache=InitGameCache("cache")
    endif
    return udg_cache
endfunction
04-05-2008, 11:44 PM#2
Pyrogasm
You have KaTTaNa's Local Handle Variables somewhere in your map, evidently. Check to make sure you have a global gamecache variable called "cache" in the variable editor (capitalization counts). If you don't have one, make one and then try saving.
04-06-2008, 01:49 PM#3
MasterOfRa
Quote:
Originally Posted by Pyrogasm
You have KaTTaNa's Local Handle Variables somewhere in your map, evidently. Check to make sure you have a global gamecache variable called "cache" in the variable editor (capitalization counts). If you don't have one, make one and then try saving.

I did that... and it crashed. lol
Then i opend the editor about 4 times till it displayed jass helper, grimore, and exstenchens, and it worked when i tryed to save.
for me, when i open the editor, there is a 10% chance that it will display them, but most of the time, it wont.
04-06-2008, 03:56 PM#4
Rising_Dusk
Quote:
Originally Posted by MasterOfRa
there is a 10% chance that it will display them, but most of the time, it wont.
This is a result of the 1.21b patch. When the 1.22 patch goes live, I would expect an update to JNGP to correct for it. Until then, just keep closing/opening until it loads up correctly.