• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Trigger Data and Strings Merger

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