Moar modding questions
Post #1
HailFire
Jun 11 2008, 9:50 pm
Post #4
A_of-s_t
Jun 11 2008, 10:07 pm
|
Rank: Elite
|
Triggers/melee.trg
Look for that in winmpq. If you make the triggers in Staredit, export them as .trg and open it up with notepad and remove the first 8 characters (including the spaces). This is called removing the header (which is 8 bytes long). Voila, you now have triggers in melee and free for all. |
Post #6
ShadowFlare
Jun 12 2008, 11:08 am
|
lol, don't use Notepad to remove that. If you must use a text editor to do it instead of using a hex editor, use Wordpad, I suppose (though I haven't confirmed it still works to use it for that kind of editing on more recent versions). Using Notepad will most definitely corrupt a binary file. (.trg files aren't text, right?)
![]() ![]() ![]() ![]() ![]() ![]() |
Post #7
MC²poiuy_qwert
Jun 12 2008, 3:04 pm
|
PyMS and ProTRG developer
|
Also, if the triggers have strings and Create Unit With Properties slots in it then just removing the header will not work. You'll either need to remove the strings and CUWP slots manually or in a map/trigger editor before stripping the header (or you can just use a program to do it all for you).
![]() ![]() ![]() ![]() ![]() ![]() ![]() We mod Starcraft. PyMS (Forums/Local) | FNTGen | ProTRG (Local) | LocUnlock | BWAI Launcher BroodWarAI.com (Forums) | StarCraft: Team Fortress (Forums/Local) |
Post #9 Lord Agamemnon Jun 13 2008, 12:05 am
|
*Lightning flash. Voice booms from heavens:*
The Project Miranda triggers relating to Nerien resource generation are as follows: Code//-----------------------------------------------------------------// Trigger("All players"){ Conditions: Always(); Actions: Set Deaths("Current Player", "Torrasque (Ultralisk)", Add, 1); Set Deaths("Current Player", "Yggdrasill (Overlord)", Add, 1); Preserve Trigger(); } //-----------------------------------------------------------------// Trigger("All players"){ Conditions: Deaths("Current Player", "Torrasque (Ultralisk)", At least, 120); Actions: Set Deaths("Current Player", "Torrasque (Ultralisk)", Set To, 0); Set Resources("Current Player", Add, 1, ore); Preserve Trigger(); } //-----------------------------------------------------------------// Trigger("All players"){ Conditions: Command("Current Player", "Zerg Spawning Pool", At least, 1); Deaths("Current Player", "Yggdrasill (Overlord)", At least, 56); Actions: Set Resources("Current Player", Add, 3, gas); Preserve Trigger(); } //-----------------------------------------------------------------// Trigger("All players"){ Conditions: Command("Current Player", "Zerg Spawning Pool", At least, 2); Deaths("Current Player", "Yggdrasill (Overlord)", At least, 56); Actions: Set Resources("Current Player", Add, 3, gas); Preserve Trigger(); } //-----------------------------------------------------------------// Trigger("All players"){ Conditions: Command("Current Player", "Zerg Spawning Pool", At least, 3); Deaths("Current Player", "Yggdrasill (Overlord)", At least, 56); Actions: Set Resources("Current Player", Add, 3, gas); Preserve Trigger(); } //-----------------------------------------------------------------// Trigger("All players"){ Conditions: Deaths("Current Player", "Yggdrasill (Overlord)", At least, 56); Actions: Set Deaths("Current Player", "Yggdrasill (Overlord)", Set To, 0); Preserve Trigger(); } //-----------------------------------------------------------------// where Spawning Pools are the Chemistry Labs. Iggy and Torra are essentially just placeholders; they're not used as anything other than for their death counters. And hyper triggers are running on all of that mess, too, since PM has some other triggers that actually need them. 56 and 120 are arbitrary numbers chosen for the duration they put between successive generation cycles. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #10
MC²poiuy_qwert
Jun 13 2008, 2:08 am
|
PyMS and ProTRG developer
|
Save the map with the triggers then open it with staredit and export the triggers there. ![]() ![]() ![]() ![]() ![]() ![]() ![]() We mod Starcraft. PyMS (Forums/Local) | FNTGen | ProTRG (Local) | LocUnlock | BWAI Launcher BroodWarAI.com (Forums) | StarCraft: Team Fortress (Forums/Local) |
Post #12
HailFire
Jun 13 2008, 3:52 am
|
About the whole beheading dealie: When I opened WordPad and loaded up the .trg file, 90% of the characters were moonspeak (represented by small squares, as my computer isn't moonspeak-compatible). I backspaced out the first 8 characters (one of them being a blank space), but the triggers didn't fire.
I'll try only deleting it up to (and including) the space, but if that doesn't work... EDIT: Ok, no space this time? Aaanyway, first This post was edited 1 time, last edit by HailFire: Jun 13 2008, 3:59 am. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #13
O)FaRTy1billion
Jun 13 2008, 5:32 am
|
.rapsdleF
|
Uh. Or you could use a hexeditor and not worry about it. Programs work, too.
![]() ![]() ![]() ![]() ![]() ![]() TinyMap2 - Latest in map compression! [ 8/26/12 - New build! Potentially fixed Win7 crash ]
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!) EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab! MapSketch - New image->map generator! EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported) SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor! times! |
Post #15
O)FaRTy1billion
Jun 13 2008, 7:43 am
|
.rapsdleF
|
I could write one... I guess that's one of the only good things about VB.
Make a program in 5 seconds. (I could do it in C, but I already have VB code for another project to do it.)Would you need it to strip unusable data like strings and CUWP slots? Or are you knowing enough not to use them? ![]() ![]() ![]() ![]() ![]() ![]() TinyMap2 - Latest in map compression! [ 8/26/12 - New build! Potentially fixed Win7 crash ]
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!) EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab! MapSketch - New image->map generator! EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported) SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor! times! |
Post #17
O)FaRTy1billion
Jun 13 2008, 8:01 am
|
.rapsdleF
|
Ok. I have the differences somewhere in the wiki, but I'll just say them.
StarEdit *.trgs: - Contain an 8-byte header. - Contain any Create Unit With Property-trigger property information. - Contain any strings that are used by that trigger. GOT *.trgs: - ONLY contain TRIG data. Nothing more. No header, no strings, no unit property information. ![]() ![]() ![]() ![]() ![]() ![]() TinyMap2 - Latest in map compression! [ 8/26/12 - New build! Potentially fixed Win7 crash ]
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!) EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab! MapSketch - New image->map generator! EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported) SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor! times! |
Post #19
O)FaRTy1billion
Jun 13 2008, 8:20 am
|
.rapsdleF
|
Or use this that I just made: Trg Stripper.
I didn't write any documentation, so I'll say how to use it here... Hit 'Open' and find a *.trg file you want to strip. Upon loading, the file will be removed of any information that should not be in GOT *.trgs (header, strings, or CUWP slots.) It will also say whether or not the *.trg header was present. Hit 'Save' and give it a new filename to save the stripped file. If it asks for comctl32.ocx or whatever, google it or post here and I'll upload it. ![]() ![]() ![]() ![]() ![]() ![]() TinyMap2 - Latest in map compression! [ 8/26/12 - New build! Potentially fixed Win7 crash ]
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!) EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab! MapSketch - New image->map generator! EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported) SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor! times! |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[07:55 pm]
[07:51 pm]
[07:50 pm]
[07:20 pm]
[07:15 pm]
[07:11 pm]
[07:06 pm]






times!
![[close]](/images/up.gif)