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.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Ultraviolet