• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

JNGP cant compile

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,264
Is the folder path of the "new folder" longer than the folder path of the previous location? If so it could be a file path buffer overflow, the result of poorly written I/O code that does not dynamically allocate memory for folder paths of any length. It could also be code intended for specialist or deprecated I/O (eg for partition formats which had a low maximum path length).

It could also be security related with the JNGP process (or vJASS) having insufficient privileges to write to the "new folder". This can be the case if the folder is nested on the C drive somewhere. In this case use an administrator or folder owner to change the folder privileges (recommended) or run JNGP as an administrator (less recommended, more likely to work).
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,264
I'm already and administrator use for my computer so it cant be that matter
Good, now just make sure to run the editor as an administrator instead of in user mode. Just because you are logged in with an administrator account does not mean it will give all processes administrator privileges as that would be totally stupid from a security point of view. Right click and choose "run as administrator".

no error, it saved but not compiling, therefore cannot play the map...
vJASS should still throw you some form of error I would imagine. It cannot be a buffer overflow if the path is shorter so it should raise some exception instead.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
it cant be internal jasshelper problem tho, because each compilation is its own program pass, and afaik JassHelper has no state persistancy(remembering last compiled map) so he has to make the path big enough all the time. It also gets passed the map as argc, which can be pretty much of any size, because it is allocated externally afaik
 
Level 20
Joined
Jul 14, 2011
Messages
877
I had similar problems before. Jasshelper doesnt give any error - it doesnt show at all.
Try moving it to a different path and/or make sure that the name contains english-only characters(couldnt think of a better way to say it).
I once copy-pasted a working map and it ended up with " - Копие" at the end of its name, which jasshelper didnt like. When I removed it, jasshelper started running normaly on it.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,264
I had similar problems before. Jasshelper doesnt give any error - it doesnt show at all.
Try moving it to a different path and/or make sure that the name contains english-only characters(couldnt think of a better way to say it).
I once copy-pasted a working map and it ended up with " - Копие" at the end of its name, which jasshelper didnt like. When I removed it, jasshelper started running normaly on it.
This sounds quite plausible as it would be the result of a lack of Unicode support.
 
Status
Not open for further replies.
Top