• 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.

[Import] Putting triggers into .j files for global map use?

Status
Not open for further replies.
Level 5
Joined
Oct 29, 2016
Messages
83
Well I am looking for a way of reducing map loading by just compiling triggers (I have 500 triggers and it makes my map sluggishly loading) into .j file but I dont know if it is possible? Dont even know how to.


So guys how do we do this? Whete do we start?
 
Level 5
Joined
Oct 29, 2016
Messages
83
The editor already compiles your triggers into a .j file called war3map.j. From there you can optimize the script to reduce the size.

500 triggers seems like a lot. You should make sure you're doing everything properly to avoid some of the bloat that GUI can cause.
Oh so you mean there is no way of putting triggers into mpq files for global use mate
 
Level 5
Joined
Oct 29, 2016
Messages
83
reduce map loading or map saving in editor?
Reduce map loading and no longer have yo import triggers to other maps if I was to use the abilities and triggers.

Check if you can optimise your object editor data too, like do you really need an ability with 100 levels? Each level does increase loading time by a tiny bit.

Links to checkout:
How to reduce loading times of Object Editor data
Honestly i have 246 spells and 200+ systems and new unit specialties which are trigered
 
Last edited by a moderator:

EdgeOfChaos

E

EdgeOfChaos

The .j file already is the compiled map script. Sure, you can manually add triggers to the war3map.j file, but why would you? You're doing the exact same work that the World Editor will eventually do. Honestly though, I might write a guide on how to do that anyways since it can be useful in other applications.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
I can see the use of writing and compiling jass in an external program to a war3map.j file and then loading that one via the world editor could be nice.

First of all, you dont have to compile all the vjass scripts on every save.
Secondly, I find it much easier to write a compiler + editor in a language like Java and C# instead of Lua.

However, there are features you will lose... like the Object Data Extractor, GUI support with relation to the map (such as "select a unit" or "choose an ability/unit type"), etc.
But most of these can be programmed as well.

Having some executable to automatically import a specific file into any .w3x/.w3m file would help a lot.
 
Status
Not open for further replies.
Top