HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

WE crashes when saving and i dont have syntax errors

09-06-2006, 08:53 PM#1
grupoapunte
Hi i have a problem with the WE when i save the map is simply crashes without a msg or anything, this happened to me before, i found that it happends when for example you miss to write "local" before the declaration of a variable. I use JASSCraft to check those kind of syntax errors, and in this case i haven't found any, all im doing is make some constant functions with rawcodes (i placed all this functions in a dead (it simply dont do CreateTrigger()) trigger after the START trigger with other inicialization stuff. This works fine, the map saves perfectly but when i add a trigger that uses some of this rawcodes the WE crashes after saving (and this triggers dont have syntax errors) is it posible that the distance betwen the functions have anything to do with this?

Thanks
09-06-2006, 09:00 PM#2
MeanMachine
Noone can help you if you don't post the code. And no, there is no such thing as max function distance ( if there was Vexorian would have expririenced it, believe me )
09-06-2006, 09:04 PM#3
blu_da_noob
One thing which I think can make WE crash (can't remember if it crashes or gives a syntax error) which Jasscraft might not pick up (relevant to constant functions): if a function returns a real value, any value you return must have a period (.) after it. Eg:

Collapse JASS:
constant function lol takes nothing returns real
    return 5 //WE gives an error (or crashes)
    return 5. //this is fine
endfunction
09-06-2006, 09:04 PM#4
grupoapunte
Problem fixed i just realize i was overwriting the trigger that used the rawcodes (which was there before i add the dead trigger with the constant funcs) so for some reason WE didnt knew about the existence of the constant functions.
09-06-2006, 09:14 PM#5
MeanMachine
Quote:
Originally Posted by blu_da_noob
One thing which I think can make WE crash (can't remember if it crashes or gives a syntax error) which Jasscraft might not pick up (relevant to constant functions): if a function returns a real value, any value you return must have a period (.) after it. Eg:

Collapse JASS:
constant function lol takes nothing returns real
    return 5 //WE gives an error (or crashes)
    return 5. //this is fine
endfunction
error .
And yeah, don't you love we ?