Staredit Network > Forums > Modding Assistance > Topic: Moar modding questions
Moar modding questions
Jun 11 2008, 9:50 pm
By: HailFire
Pages: 1 2 35 >
 

Jun 11 2008, 9:50 pm HailFire Post #1



So I realized I always seem to start these threads with 'so', wtf I'm finally getting back to that mod I've been working on.

I'd post related questions on the other thread, but I've been a lazy fuck who can't keep commitments busy, and due to the thread being old and dead, I decided to make a new one.

The mod is planned to be sort of cat-and-mouseish, in a sense; One faction is almost overwhelmingly strong, while the other one employs subterfuge and trickery to defeat their foes; having a variety of specialized units, but weak ones on average. Think sort of a cross between the Nerien Guard (Project Miranda) and the Betrayers (Antithesis Rising) (the two mods which inspired this).

One of the main things I want to have going (but haven't the faintest idea how to do it), is making one of the factions (guess which) node-independant, aka they generate their own resources (again, Project Miranda). Since I don't want to implode my brain trying to crack open PM and figuring it out, could someone lend me a hand?



None.

Jun 11 2008, 10:01 pm A_of-s_t Post #2

aka idmontie

Do you mean that when they build a building, they get minerals every "turn"? If so, use triggers. Detect how many buildings and give minerals based on that.



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Jun 11 2008, 10:03 pm HailFire Post #3



Quote from A_of-s_t
Do you mean that when they build a building, they get minerals every "turn"? If so, use triggers. Detect how many buildings and give minerals based on that.

Triggers seem to imply specialized maps, and I know these aren't neccessary. How does one apply triggers to modding?



None.

Jun 11 2008, 10:07 pm A_of-s_t Post #4

aka idmontie

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.



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Jun 11 2008, 10:09 pm HailFire Post #5



Intruiging, I'll have to try that.

Buahahaha. :sly:



None.

Jun 12 2008, 11:08 am ShadowFlare Post #6



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?)



None.

Jun 12 2008, 3:04 pm poiuy_qwert Post #7

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).




Jun 12 2008, 8:56 pm HailFire Post #8



Craptacular TrigEdit in SCMDraft 2.0 (Beta 0.8.0) won't let me save as triggers.

New ver/alternate trigger editor?



None.

Jun 13 2008, 12:05 am Lord Agamemnon Post #9

Magical-Girl Enabler

*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.



None.

Jun 13 2008, 2:08 am poiuy_qwert Post #10

PyMS and ProTRG developer

Quote from HailFire
Craptacular TrigEdit in SCMDraft 2.0 (Beta 0.8.0) won't let me save as triggers.

New ver/alternate trigger editor?

Save the map with the triggers then open it with staredit and export the triggers there.




Jun 13 2008, 2:18 am HailFire Post #11



Quote from Lord Agamemnon
*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.


/worship

In unrelated news, you never responded to that PM I sent you about that PM bug. :P



None.

Jun 13 2008, 3:52 am HailFire Post #12



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. :dontgetit:

I'll try only deleting it up to (and including) the space, but if that doesn't work... :ermm:

EDIT: Ok, no space this time? :crazy:

Aaanyway, first eight five characters of melee.trg: qw˜6 (6,7,8 won't copy/paste)

Post has been edited 1 time(s), last time on Jun 13 2008, 3:59 am by HailFire.



None.

Jun 13 2008, 5:32 am O)FaRTy1billion[MM] Post #13

👻 👾 👽 💪

Uh. Or you could use a hexeditor and not worry about it. Programs work, too.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 13 2008, 7:32 am HailFire Post #14



Quote from O)FaRTy1billion[MM]
Uh. Or you could use a hexeditor and not worry about it. Programs work, too.

Yeeeaaaaaaahh.

Care to hook me up with one? :wtfage:



None.

Jun 13 2008, 7:43 am O)FaRTy1billion[MM] Post #15

👻 👾 👽 💪

I could write one... I guess that's one of the only good things about VB. :P 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! ( 7/09/14 - New build! )
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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 13 2008, 7:55 am HailFire Post #16



Quote from O)FaRTy1billion[MM]
I could write one... I guess that's one of the only good things about VB. :P 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?

I know enough to not know what you're talking about. :wtfage:

Srsly, I just need it to allow me to use triggers in mods (although I don't know why you can't just directly plug the .trg into the .mpq without fucking with it first).



None.

Jun 13 2008, 8:01 am O)FaRTy1billion[MM] Post #17

👻 👾 👽 💪

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! ( 7/09/14 - New build! )
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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 13 2008, 8:03 am HailFire Post #18



Quote from O)FaRTy1billion[MM]
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.

So I just need to clip the first 8 characters and any present strings, once I get a hex editor, amirite?



None.

Jun 13 2008, 8:20 am O)FaRTy1billion[MM] Post #19

👻 👾 👽 💪

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! ( 7/09/14 - New build! )
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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 13 2008, 6:58 pm HailFire Post #20



Another, quicker (?) question:

How do I add/remove supply giving powers on units/buildings? (ex. pylon, overlord)



None.

Options
Pages: 1 2 35 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: Roy