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

Trigger Data and Strings Merger

Status
Not open for further replies.
Level 28
Joined
Feb 2, 2006
Messages
1,630
If you want to provide a JASS API for GUI trigger users, you need to modify the files "UI/TriggerData.txt" and "UI/TriggerStrings.txt".

Once modified it can be hard to find your own additions. Besides that, you will get a problem when you want to provide multiple JASS APIs from different projects as GUI trigger actions, calls, events etc.

Therefore I've added the option "--merge" to my tool "wc3converter" in the wc3lib.


Code:
wc3converter --merge --overwrite NewTriggerData.txt UI/TriggerData.txt MyOwnTriggerData.txt

Merges the files to one (multiple files can be appended, the last file has the highest priority).
The new file can be placed as "UI/TriggerData.txt" in a custom MPQ archive.

The same works with trigger strings:
Code:
wc3converter --merge --overwrite NewTriggerStrings.txt UI/TriggerStrings.txt MyOwnTriggerStrings.txt

It helps you to keep your own files clean and to keep the original files as well.

Here you can see an example usage for my modification:
dmdf/src/TriggerData at master · tdauth/dmdf · GitHub
 
Status
Not open for further replies.
Top