• 🏆 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!

Trigger Data and Strings Merger

Status
Not open for further replies.
Level 25
Joined
Feb 2, 2006
Messages
1,685
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