ProTRG v1.1

Help - Resources - Discussion
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby poiuy_qwert » Thu Mar 11, 2010 3:22 am

User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby poiuy_qwert » Thu Mar 11, 2010 3:00 pm

User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby poiuy_qwert » Fri Mar 12, 2010 4:07 am

User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby poiuy_qwert » Sat Mar 27, 2010 2:41 pm

ProTRG v1.1 released
Download Windows EXE: (1.7mb)
Download the Source: (49kb, requires Python)

Changes:
* 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
CecilSunkure
Posts: 1
Joined: Mon Apr 05, 2010 9:31 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby CecilSunkure » Mon Apr 05, 2010 9:44 am

Hello there.

I was wondering if you could add in the memory condition, which is a newer condition for Scmdraft used to make EUD conditions.

Here is a memory condition in standard scmdraft text format:

Memory(x, Comparison, y);

x needs to be able to be negative, and I don't think y will ever need to be. Of course, you don't really do too much low level data manipulation in Python anyways, so I guess it doesn't matter. x and y need to both be integers as well. The comparison is the usual At Least, At Most, Exactly.

The next paragraph goes into explaining the differences between the old EUD conditions and the new ones -- you can probably just not read it and still add in the memory condition to ProTrg just fine.

The traditional EUD condition, done in StarForge, had a general formula of: Address = Offset + (4*(player )) + (48*(unit:id)). The memory condition uses deaths of Terran Marine, which has a unit:id of 0, so the formula becomes a bit simpler where the only variable to solve for becomes player; here is the memory condition formula: Address = Offset + 4*Player + 48*0. So to solve for player, you pretty much just subtract your address from the death table minimum value (which is 5808996) then divide by (4*player#).

If you need anymore info let me know, though, I can't see why you would need anything other than the standard scmdraft text format for the condition :P

Thanks!

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “PyMS (poiuy_qwert's complete modding suite)”

Who is online

Users browsing this forum: No registered users and 8 guests