IPB

Welcome Guest ( Log In | Register )

> ProTRG v1.1, Quickly and efficiently generate masses of triggers!
poiuy_qwert    Canada
Jan 10 2010, 03:06 PM    Post #1
ProTRG v1.1 by poiuy_qwert
Download Windows EXE: ProTRG v1.1 (1.7mb)
Download the Source: ProTRG v1.1 (49kb, requires Python)

ProTRG is an advanced trigger creation language (like MacroTriggers) built on top of Python that is very useful for generating lots of SCMDraft triggers (and now even .trg files!) in an easy and efficient way. ProTRG is a command line "compiler" which runs the code in a plain text file and outputs SCMDraft triggers (or a .trg) to another file. It also comes with Notepad++ support, in fact its meant to be used with Notepad++ for a much easier experience.

Changes
ProTRG v1.1:
* Updated readme
* Fixed LeaderboardComputerPlayers (changed parameter from SETSWITCHSTATE to SETOTHERSTATE)
* Fixed the default trigger file from "triggers.txt" to "triggers.protrg"
* Fixed the convenience global ACTIONS so it's set to True
* Fixed some TUNIT vs UNIT inconsistancies, and the definitions for conditions/actions with the PERCENT parameter type
* Fixed multilines and slashes in string conversion
* Fixed potential problem with script filenames starting with "protrg" (without quotes)
* Fixed switches to be numbered the same as SCMDraft switches (1-256 instead of 0-255)
* Fixed many unit names
* Added support for compiling straight to .trg's, including GOT compatible .trg's (Note: StarEdit has problems loading recycled strings)
* Added an optional mechanism to have stronger typed values for parameters (Explained more in the Coding section)
* Added support for Extended Unit Deaths (EUD's) using the new stronger type mechanism (using EXTENDEDUNIT type)
* Added DefaultString, which is set to an empty string (""), and all default AI scripts as Globals
* Added @include preprocessor to iclude ProTRG files in others
* Added better command line support
* Added better support for Properties
* Added the keyword argument "disabled" for conditions/actions
* Added the possibility to collapse code in Notepad++ using #> and #< for the start and end
* Added a list of the Globals and their values to reference.txt
* All conditions and actions now inherit from the Condition and Action classes instead of directly from Raw
* LOCATION id's are now 0 to 254 instead of 1 to 255 to conform with map editors default location names
* If an error happens in your script it will now print all the current triggers in the Trigger list (if any) after printing the error traceback
ProTRG v1:
* First public release


 
Go to the top of the page +

Posts in this topic
poiuy_qwert   ProTRG v1.1   Jan 10 2010, 03:06 PM
bajadulce   I'm not much of a mapper, but I do know that b...   Jan 10 2010, 10:51 PM
poiuy_qwert   QUOTE(bajadulce @ Jan 11 2010, 01:51 AM) ...   Jan 10 2010, 11:47 PM
bajadulce   The idea that trigs can be generated such as the p...   Jan 11 2010, 12:04 AM
poiuy_qwert   Oh man i didn't even think of how fun it will ...   Jan 11 2010, 06:13 PM
bajadulce   Here's the scoop with the comment errors as I ...   Jan 11 2010, 06:20 PM
poiuy_qwert   Ah. I could have sworn I put in the code to handle...   Jan 11 2010, 10:28 PM
bajadulce   I managed to get my mod transferred back to ProTRG...   Jan 25 2010, 11:59 AM
poiuy_qwert   1. Ah yes this confusing thing again. There is no ...   Jan 25 2010, 12:32 PM
bajadulce   QUOTE(poiuy_qwert @ Jan 25 2010, 12:32 PM...   Jan 25 2010, 12:36 PM
poiuy_qwert   It works for me, its used in the example triggers....   Jan 25 2010, 12:47 PM
bajadulce   Damnit! .. I swear I even looked at the refere...   Jan 25 2010, 02:01 PM
bajadulce   QUOTE(bajadulce @ Jan 25 2010, 02:01 PM) ...   Jan 26 2010, 09:04 AM
poiuy_qwert   No location will have the same name in every map. ...   Jan 27 2010, 02:59 PM
bajadulce   Well this is all obvious now that the problem has ...   Jan 27 2010, 07:11 PM
poiuy_qwert   QUOTE(bajadulce @ Jan 27 2010, 10:11 PM) ...   Jan 28 2010, 12:07 PM
bajadulce   Thnx poiuy for all the responses. This fantastic ...   Jan 28 2010, 12:59 PM
poiuy_qwert   Np, and thanks QUOTE(bajadulce @ Jan 28 201...   Jan 28 2010, 01:46 PM
bajadulce   Been using the program a lot over the past few wee...   Mar 9 2010, 11:46 AM
poiuy_qwert   QUOTE(bajadulce @ Mar 9 2010, 02:46 PM) B...   Mar 10 2010, 06:15 AM
bajadulce   Thnx for the quick response poiuy. I guess <10...   Mar 10 2010, 10:03 AM
poiuy_qwert   Ohhh SCMDraft uses hexadecimal in the TBL formatti...   Mar 10 2010, 07:22 PM
bajadulce   the sound files now compile correctly as: CODE Pla...   Mar 11 2010, 12:19 AM
poiuy_qwert   QUOTE(bajadulce @ Mar 11 2010, 03:19 AM) ...   Mar 11 2010, 07:00 AM
bajadulce   All works great! I'll keep you posted if ...   Mar 11 2010, 10:14 AM
bajadulce   Well sorry to bring bad news again. There seems ...   Mar 11 2010, 07:09 PM
poiuy_qwert   Ah, its hard getting all the names correct since S...   Mar 11 2010, 08:07 PM
bajadulce   Boo! Nothing to report.   Mar 13 2010, 10:47 PM
poiuy_qwert   ProTRG v1.1 released Download Windows EXE: ProTRG ...   Mar 27 2010, 06:41 AM
CecilSunkure   Hello there. I was wondering if you could add in ...   Apr 5 2010, 01:44 AM
poiuy_qwert   QUOTE(CecilSunkure @ Apr 5 2010, 05:44 AM...   Apr 7 2010, 07:32 AM


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 9th September 2010 - 11:50 PM