Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Changing unit/building portraits
Changing unit/building portraits
This topic is locked. You can no longer write replies here.
Jun 3 2014, 1:49 am
By: bugmenot  

Jun 3 2014, 1:49 am bugmenot Post #1



Hello I know this game is old but I'm wondering how one would change unit portraits like they did in brood war
like so:

But i want to do do this without modding if possible because i do not intend to add new portraits, I just want to swap the existing portraits for units in maps.

Attachments:
SCScrnShot_060214_214012.png
Hits: 17 Size: 96.53kb

Post has been edited 10 time(s), last time on Jun 3 2014, 2:02 am by bugmenot.



None.

Jun 3 2014, 2:29 am Roy Post #2

An artist's depiction of an Extended Unit Death

There isn't a simple way to do this without modding or having strict control over your map.

Option 1: use EUDs to detect the currently selected unit type, and run the "Talking Portrait" action to manually change to the portrait you want to use.

Option 2: use EUPs to change the unit type to actually be the other unit. This would carry over other traits of the unit type such as its weapons and armor, while not affecting the unit sprite itself.

If you could describe your map a bit more, it may make sense to take a different approach as well. Option 1 is probably going to be your best bet, and it may not be as expensive trigger-wise as one might expect.




Jun 3 2014, 2:39 am bugmenot Post #3



Well i did look at this http://www.staredit.net/topic/15356/#334499 but what did they use to achieve that scmdraft or a hex editor? Because maybe that is a way?
and also i ment was like when you click on a protoss building in the brood war campaign it shows fenix instead of aldaris. and a zerg building it will show a cerebrate.



None.

Jun 3 2014, 3:04 am NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Option 3: Just set a talking unit portrait of your choice. Obviously doesn't have detection what's selected, so that's a general override / just used for cutscenes.




Jun 3 2014, 3:14 am bugmenot Post #5



Well i might try this later in the future but this game is old and i'm just mapping for something to do so i'm not going to get that advanced but maybe i might later and i dont think blizzard used EUDs they must have used something else but it would've been nice to change the portraits in staredit or scmdraft.



None.

Jun 3 2014, 11:55 am Roy Post #6

An artist's depiction of an Extended Unit Death

Quote from bugmenot
Well i did look at this http://www.staredit.net/topic/15356/#334499 but what did they use to achieve that scmdraft or a hex editor? Because maybe that is a way?
That's what I was referring to with Option 2. You have to calculate the address you want to manipulate and then place the extended unit on the map. It's a complicated and undocumented process that I wouldn't recommend for a task like this.

Quote from bugmenot
Well i might try this later in the future but this game is old and i'm just mapping for something to do so i'm not going to get that advanced but maybe i might later and i dont think blizzard used EUDs they must have used something else but it would've been nice to change the portraits in staredit or scmdraft.
Blatantly changing unit portraits would require modding, to my knowledge. I haven't really paid close attention to portraits in the campaign, but my guess is that Blizzard hardcoded these changes (like they did with everything else). It may be associated with one of the campaign AI scripts to change those particular portraits to what they were in the campaign, but that doesn't mean you can set any unit to have any portrait.




Jun 3 2014, 1:39 pm Dem0n Post #7

ᕕ( ᐛ )ᕗ

Quote from bugmenot
Well i might try this later in the future but this game is old and i'm just mapping for something to do so i'm not going to get that advanced but maybe i might later and i dont think blizzard used EUDs they must have used something else but it would've been nice to change the portraits in staredit or scmdraft.
I'm a bit confused as to what you mean by that. When did the portraits ever change in the campaign? I'm pretty sure the only times the portrait was different from the unit you had selected were when there was an ongoing transmission.




Jun 3 2014, 2:45 pm TF- Post #8

🤙🏾

The BW Protoss Advisor changing to Fenix thing? Probably something in the source that literally checks what map you're playing.



🤙🏾

Jun 6 2014, 1:56 am bugmenot Post #9



I extracted that zerg mission that i had in the pic from BroodWar.mpq and made an scx file with mpq editor i did that by building the scx file from the directory which i extracted it to then played it on play custom and the portrait was the default overmind so Blizzard most likely hardcoded it.



None.

Jun 6 2014, 2:06 am iCCup.xboi209 Post #10



http://classic.battle.net/scc/faq/custom.shtml
Quote
How do I change the advisor portrait like you did at the end of the Protoss campaign?
Become a Blizzard programmer. ; )
(This was hard coded in the game and cannot be achieved by using StarEdit).
Yes they hardcoded the portraits, move along




Jun 13 2014, 1:54 pm O)FaRTy1billion[MM] Post #11

👻 👾 👽 💪

I don't know if this was from the latest version, but it's relevant. http://www.staredit.net/topic/5402/
This is the closest you are going to get to custom portraits without missing.



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!

Jul 15 2018, 3:54 am Stars Post #12



Quote from Roy
Option 1: use EUDs to detect the currently selected unit type, and run the "Talking Portrait" action to manually change to the portrait you want to use.

How do you use the extended unit death triggers? I could not find it in conditions or actions. I want to be able to do triggers to make you immediately select a unit after having it, and I want to be able to use that method to change portraits. Is there anything I need to download? I just made this account today, and I hope its not too late to ask questions on this thread.

Thx - Stars



None.

Jul 15 2018, 9:35 am rockz Post #13

ᴄʜᴇᴇsᴇ ɪᴛ!

If you have to ask, EUDs are likely above your ability, and you can create a new topic if you need assistance rather than revive this 4 year old topic. You can think of EUDs like a programming language. Unless you have fully written code to start with, it's unlikely you'll be able to create a functioning program without learning more about the language via creating "hello world" type programs first.

I would recommend you research EUDs and EPDs more, as there are numerous tutorials out there. While some info may be a bit outdated, the sticky with your intended search term in the description/title is almost universally where you should start on every forum.

Finally, unit portraits are purely aesthetic. It doesn't help or hinder your gameplay significantly and nobody will care that you didn't change the portrait. I wouldn't recommend going the EUD route for pure visuals unless you're going far into the modding world with custom grps and such.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:05 am]
jjf28 -- o and it's an anti-hack update, coo
[03:05 am]
jjf28 -- o, updated like half a day ago, but idk
[02:35 am]
RdeRenato -- scmdraft not working since last SCR update?
[02:22 am]
zsnakezz -- yeah
[01:13 am]
RdeRenato -- xd
[12:12 am]
lil-Inferno -- KrayZee
KrayZee shouted: NudeRaider Is there some sort of SEN alumni?
ya it's here http://www.staredit.net/shoutbox/
[10:30 pm]
KrayZee -- NudeRaider
NudeRaider shouted: MTiger156 ^^ On the Internet "over a decade ago" counts as ancient imo
Is there some sort of SEN alumni?
[04:52 pm]
NudeRaider -- MTiger156
MTiger156 shouted: "Ancient SEN"
^^ On the Internet "over a decade ago" counts as ancient imo
[04:07 pm]
RdeRenato -- EUD can be useful but I need the "save game" of SCR. Thanks for the tutorial, it seems to work. The idea of using AI to order can also be useful to me.
[03:11 pm]
MTiger156 -- :omfg:
Please log in to shout.


Members Online: Roy