Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Custom Portraits!
Custom Portraits!
Dec 12 2008, 1:44 am
By: O)FaRTy1billion[MM]  

Dec 12 2008, 1:44 am O)FaRTy1billion[MM] Post #1

👻 👾 👽 💪

This is a concept I've posted before somewhere, but I don't remember when or where.

Address: 0x68C12C
Player: 11
Unit: 22004
Shows the currently selected unit. Special cases exist for special state units/group selection.

What I do is check the currently selected unit (that EUD) and then display a talking portrait for <bignumber> amount of time and set a DC. When it no longer has that unit ID selected, clear the DC and display a talking portrait for 0ms to clear it.

Problems:
- Units in groups will never show modified portraits (they show an ID of 245.)
- Buildings will not show modified portraits while building (they instead show an ID of 231 (building) or 232 (factory).)
- When using ranges of unit IDs there will be no static between building selections.

Screenshots!




Attachments:
EUDPortTest2.scm
Hits: 42 Size: 38.47kb



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!

Dec 12 2008, 3:19 am Biophysicist Post #2



Nice! I'll be using this in my AoS map for Destiny Archon and Mutilator and stuff that would otherwise have a normal portrait.



None.

Dec 12 2008, 4:22 am Vi3t-X Post #3



Ironic, or best gift ever? I was just about to ask for this. LOL

--> Farty +2707



None.

Dec 12 2008, 4:37 am Biophysicist Post #4



Hehe, I think he posted this because I was asking him about it. Amirite farty?

And, couldn't you use a similar technique for custom quotes? If the EUD = the ID of the unit and a DC is set to 0, then select a sound at random, play it, set the DC to 1, and Mute Unit Speech. Then, if the EUD changes to not equal the ID, set the DC to 0 and Unmute Unit Speech.



None.

Dec 12 2008, 5:20 am O)FaRTy1billion[MM] Post #5

👻 👾 👽 💪

I made this concept a long time ago.. you just reminded me of it. :P

Eh. I think that'd be more difficult.



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!

Dec 12 2008, 11:33 pm CooL Post #6



Wow, This is really awesome!

Guys! do you wanna see some cool? Then check O)FaRTy1billion[MM] out! :lol:




None.

Dec 13 2008, 12:41 am Vi3t-X Post #7



Could you change the EUD script to units? Like... I select a Templar, but I get a Queen picture. :omfg:



None.

Dec 13 2008, 1:42 am Biophysicist Post #8



He said that it doesn't work if you select more than one unit at once. As you can only multiselect units, I'd assume so. And I can't think of any reason why it wouldn't.



None.

Dec 13 2008, 3:58 am l)ark_ssj9kevin Post #9

Just here for the activity... well not really

So, eh, Farty found out how Blizzard did it in the campaigns!

Too bad it's been like, 10 years.



guy lifting weight (animated smiley):

O-IC
OI-C

"Oh, I see it"


Dec 13 2008, 4:23 am Biophysicist Post #10



Uhm... What? Where did Blizzard do that? And they probably have a special trigger action defined.



None.

Dec 13 2008, 5:41 am Vi3t-X Post #11



It was probably just coded into the actual engine.



None.

Dec 13 2008, 1:34 pm Heinermann Post #12

SDE, BWAPI owner, hacker.

Quote
- Units in groups will never show modified portraits (they show an ID of 245.)
- Buildings will not show modified portraits while building (they instead show an ID of 231 (building) or 232 (factory).)
Looks like it could possibly be the unit buttonset.

Quote
So, eh, Farty found out how Blizzard did it in the campaigns!
Blizzard uses a trigger action called "Transmission" which combines display text message, play WAV, minimap ping, and display talking portrait. Either that, or they use something called a "Hero unit" which may have a different unit portrait than the regular unit.

Quote
Could you change the EUD script to units? Like... I select a Templar, but I get a Queen picture.
You don't need to modify the EUD portion, just the condition it is being applied with(unit ID).




Dec 13 2008, 7:26 pm O)FaRTy1billion[MM] Post #13

👻 👾 👽 💪

Quote from l)ark_ssj9kevin
So, eh, Farty found out how Blizzard did it in the campaigns!

Too bad it's been like, 10 years.
This:
Quote from Vi3t-X
It was probably just coded into the actual engine.

Quote from name:TassadarZeratul
Uhm... What? Where did Blizzard do that? And they probably have a special trigger action defined.
Campaigns. I forgot which one, I just know it is for Protoss (Aldaris is replaced with Fenix.) And there is no trigger action for it.

Quote from Heinermann
Quote
- Units in groups will never show modified portraits (they show an ID of 245.)
- Buildings will not show modified portraits while building (they instead show an ID of 231 (building) or 232 (factory).)
Looks like it could possibly be the unit buttonset.
DoA told me something before before like 245 was the unit ID for a group.



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!

Dec 13 2008, 7:27 pm Devourer Post #14

Hello

Quote from name:TassadarZeratul
Nice!.
This
FARTY ROCKS N OWNS!
Farty ftw



Please report errors in the Staredit.Network forum.

Dec 16 2008, 4:31 am Vi3t-X Post #15



Just to clairify, this won't cause memmory leaks right? :bleh:



None.

Dec 16 2008, 5:12 am O)FaRTy1billion[MM] Post #16

👻 👾 👽 💪

Why would it? All it does is display a portrait (or stop displaying a portrait) when certain conditions are met.
If it did, then it wouldn't be because of this but a larger problem within SC.



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!

Dec 16 2008, 4:20 pm Biophysicist Post #17



Qwick Qwestion: This detects the unit type, not the specific unit, right?



None.

Dec 18 2008, 1:49 pm Heinermann Post #18

SDE, BWAPI owner, hacker.

Follow Q with a U, not a W. Just FYI.
Yes it detects the unit type, not the specific unit.




Dec 20 2008, 2:33 am scwizard Post #19



It can theoretically detect a specific unit, but lets not go there.

(I went there once, it wasn't pretty)



None.

Dec 21 2008, 7:40 pm O)FaRTy1billion[MM] Post #20

👻 👾 👽 💪

But unit selection is fun! :D I've done lots with it, it was easy. I used it for unit selection in a map.



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!

Options
  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: MetalGear