Hello everyone!
I've started studying jass recently and tryed to play with one russian protected RPG map. So I've learned how to get war3map.j out of it, could modify the script, put it back and all is good... except one weird thing. If I add any comment to .j file the map wont load, actually wc3 reforged wont even create lobby for that map, and if i remove comment it works
I've been googling for 2 days now, searching documentations or any similar cases but found nothing. Every man/doc says i can safely use single line comments "//", but i've also tryed "/* */" and "#" syntax from other languages, just in case, but neither did work, the map just wont work. Also I've tryed to narrow the problem by adding comments outside function bodies, inside, trying different spacings etc. It just seems if there is any comment at all in script, even trailing
, the map just wont work.
Afaik to create lobby game launches only config func, but even if the comment is in main func it wont create lobby, that fact suggests that the problem arises when jass is compiled into machine code. Btw you might say "well, weird, but just dont use comments" - you might be right, but the jass code is obfuscated and 22k lines long, takes time to understand it, and comments would really help a lot!
I've also created new map in WE, added simple trigger with comment, saved it, checked .j file - it had lots of comments and the map worked fine. I've tryed to copy comment from that new map but it didn't work either >_<
I've searched docs on w3x format, trying to find is there any kind of binary flag that disallows jass comments or enables some other "strict" mode but found none...
So I am a bit lost right now, if someone has any ideas whats the problem is I will be really glad to hear them
I've attached the map itself and listfile i used (i got it by scaninng map with ladik's mpq editor scan)
--edit
fixed typos