• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

JNGP: editing war3map.j externally does not get updated when I reopen map

Level 6
Joined
Jul 3, 2006
Messages
102
I am updating the code in war3map.j and replacing the file in the .w3x file using the MPQEditor.
When I reopen the map in NewGen WE, in triggers I see the old code, if I save the map all my changes are lost.
It is like it has cached the .j contents somewhere.

Any ideas?
 
The "war3map.j" content will probably get overwritten every time you saved the map after making changes since it's required for executing the map.

Why you are using JNGP in 2025? The normal World Editor from the latest Battle.net patch comes with several features from JNGP/WEX such as vJass. JNGP is the past thing every WC3 mapmakers used before Reforged came out.

Edit: You can also use vJass by converting all triggers into Custom Script ones as Daffa suggested.
 
Last edited:
Is there a specific reason why you modify the j file manually? It should have been left untouched and changes should be written in Trigger Editor. If you want the (v)JASS language, you can always convert to custom script in Trigger Editor

All Warcraft editors, both original and community made ones like WEU, JNGP, WEX and YDWE PK, generates the j file when saving the map, which overrides any changes made to the j file via MPQ editing.
 
Is there a specific reason why you modify the j file manually? It should have been left untouched and changes should be written in Trigger Editor. If you want the (v)JASS language, you can always convert to custom script in Trigger Editor

All Warcraft editors, both original and community made ones like WEU, JNGP, WEX and YDWE PK, generates the j file when saving the map, which overrides any changes made to the j file via MPQ editing.
But isn't it strange that if he modifies the .j file, import in into .w3x, and opens .w3x in WE. The changes he just made does not appear?

@Tsaras I did what you did, and it worked for me. Are you sure you actually imported it? Try deleting .j inside the MPQeditor, then drag and drop your edited .j
What are you trying to change?
 
@Tsaras I did what you did, and it worked for me. Are you sure you actually imported it? Try deleting .j inside the MPQeditor, then drag and drop your edited .j
I just tried again after deleting and reimporting and I get the same thing. I even deleted the .j file altogether and when I reopened in WE, it still showed the old script!

Thanks for the replies. The reason I am using these tools is that I haven't mapped since 2009 or something and these are the tools I knew at the time. I have missed all news since then so I am pretty sure there are better alternatives now.

To explain my situation briefly: I want to fix and improve one of my maps from back then (The Hunt of Evil 7.42 FINAL), which was unfortunately protected with Vexorian's MapOptimizer and the source was lost with a fried hard disk. I have managed to get all object data, manually restored the regions/units files so they now show inside the editor but the whole script was scrambled in the .j file. Right now, saving the map in WE leads to the units being created twice: once from the old optimised main function and once from the generated WE code.

I am trying to slowly get the script to a workable state and to do that I am using Notepad++ and manually importing the .j file into the map. This is all very tedious, and I also cannot get any meaningful syntax/compile checking. The only signal that something is wrong is that the map cannot be opened in WC3. If there is a better workflow and/or editor, I'd be glad to know.
 
Back
Top