• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Problem with JNGP?

Status
Not open for further replies.
Level 5
Joined
Jun 28, 2010
Messages
110
Check my map out, i posted on your wall, and its not wrong at all, the only problem i found is when i tested it with normal WE Edtior, i disabled all the JASS Triggers and fixed any function that related with that JASS Trigger -> work
 
Level 5
Joined
Jun 28, 2010
Messages
110
Well I think i got my problems and solved it completely tks to Wietlol :)
Wietlol said:
in triggers you are using the GUI triggers
you know that event condition action stuff
other people like to use raw code called JASS
you might be familiar with how it looks as well
now, Vexorian made a more advanced language to write JASS
that is called vJASS
when you are using the JNGP, you are able to use vJASS as well
however, the WC3 does not know what vJASS is because Blizzard didnt support it
so everything that is written in vJASS MUST be converted to JASS in order to make the map work
when you save the map, JNGP translates vJASS into vanilla JASS and makes it runable
when your map is editted, the world editor creates a new map (exact copy) and runs that
in that new map, vJASS is not translated yet
so WC3 reads a language that it doesnt understand
so it crashes
you can easily see if a map is editted by looking at the name in the terrain editor
when a map is not editted (saved, just opened, etc) then the "test map" button doesnt create a new map but just uses the map you have opened
and that one does have converted JASS
in the terrain editor just behind the name of the map (in the header) there is a '*' if the map is editted
if it is not there, then the map is saved and runable
when you do not use vJASS, you can test the map without saving... but saving it once in a while is always rewarding
 
Status
Not open for further replies.
Top