[skip all navigation]

Different wireframe colors

Creator: SinistrouS
Time: May 7 2012, 4:37 am

Post #1     SinistrouS May 7 2012, 4:37 am

[Avatar]
offlinecontact
Rank: Member
As most of you already know, if you want a cool looking wireframe for a unit, you have to have the hp under 9(?) and in the 2nd box, under 9 as well. EG. A marine with 4/3 HP

As I have discovered recently (if anybody cares), you can use unit sprites to open the door for many more wireframe effects. Unit sprites are different than actual units, as they will ALWAYS start with their default HP. EG. A marine unit sprite will ALWAYS have 40 hp. If you edit marines HP and give it 25 HP, the unit sprite will have 40/25 hp. 40 being the default, 25 being the edited. So each time it gets hit, the color of the wireframe would change (until its hp is lower than the 2nd number).

Top

Post #2     poison_us May 7 2012, 5:13 am

[Avatar]
‎(•‿•)
offlinecontact
Rank: Regular
Already well known and documented. Thanks for the heads up, nevertheless.

Top

Post #3     jjf28 May 7 2012, 5:27 am

[Avatar]
Relax.
onlinecontact
Rank: Regular
Nice find! Should be able to squeeze out some more colors now.

Quote
Already well known and documented

Really? (link please) I know using the extra hitpoints bit for colors is well documented but I couldn't find any documentation for taking advantage of sprites HP default to work with colors


Since you didn't post an example I scraped together a little something:
Attachments:
scm file
Wire Frames.scm (36.15 kb)
5 hits.

Rs_yes-im4real@USEast - Clan KHD - Helms Deep Home
Top

Post #4     SinistrouS May 7 2012, 9:24 am

[Avatar]
offlinecontact
Rank: Member
Quote from poison_us
Already well known and documented. Thanks for the heads up, nevertheless.
I haven't seen a single thing related to the use of unit sprites.


After more testing I've noticed it does not work with shields or zerg units, due to the regeneration. So zerg units are stuck with the normal way to do it.


It would also seem the ratio of hp has everything to do with color, so some units will not be able to achieve the same effects as others.

There seems to be two different types of wireframes, filled and normal. Filled being archon/mineral field/critters/etc. And normal being anything not filled like marine/wraith/etc.

A ratio of 50/1 would make normal wireframes blackened 100% of the time, and 5/1 ratio would make filled wireframes blackened 100%.

(user posted image)

Both units have a normal wireframe
Shows an example of some different colors available(probe). And the 50/1 ratio.

Another peculiar thing I noticed was having a ratio of 20,000/1 on a mineral field. The colors would change depending on your screen position, but you would either have to move your cursor over the wireframe or click the mineral field again to show the new colors.
This post was edited 1 time, last edit by SinistrouS: May 7 2012, 9:34 am.

Top

Post #5     O)FaRTy1billion May 7 2012, 8:53 pm

[Avatar]
‮.rapsdleF
offlinecontact
Rank: Elite
Quote from SinistrouS
Quote from poison_us
Already well known and documented. Thanks for the heads up, nevertheless.
I haven't seen a single thing related to the use of unit sprites.
It's because it isn't really useful .. it only works on pre-placed units, and you cannot heal them or get them back up to those levels.
Also: http://www.staredit.net/?p=oldwiki&s=0#Unit_Sprite


Before when I was playing with this I just placed a bunch of them with 1 hp, and then had a unit that does 1 damage to attack them and watch as it goes through many different colors ... I liked the purple ones, or perhaps the glowing ones on solid wireframes.

Wireframe colors are from this table:
(user posted image)
Doing higher values just makes it pick wrong indexes, or perhaps nonexistent ones (buffer overflow) ...
This post was edited 2 times, last edit by FaRTy1billion: May 7 2012, 9:11 pm.

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!
(user posted image) This page has been viewed (user posted image) times!
Top

Post #6     SinistrouS May 8 2012, 12:00 am

[Avatar]
offlinecontact
Rank: Member
I see. And I guess the only usefulness of this is if you want certain preplaced units to have "perfect" wireframes. All buildings have this possibility now.

Top

Post #7     Mini Moose 2707 May 8 2012, 3:58 pm

[Avatar]
Everything was beautiful and nothing hurt.
offlinecontact
Rank: Elite
Quote from jjf28
Really? (link please) I know using the extra hitpoints bit for colors is well documented but I couldn't find any documentation for taking advantage of sprites HP default to work with colors.
I cannot exactly document for you (other than by providing old maps), but I can tell you that I used it in a map last modified October 24, 2004. So, Deathknight was working them and the knowledge was around back then and probably earlier.

NEW! :: Überena v033 :: File -- Thread
** VIVA LA MAP NIGHT!! **
Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[01:48 am]
Dem0n -- jjf pley mafia
[01:31 am]
jjf28 -- :awesome:
[01:25 am]
lil-Inferno -- I AM SO CLEVER AND WITTY WHEN DOES MY COMEDY CENTRAL SHOW START
[01:25 am]
lil-Inferno -- you're a choking hazard due to small parts
[01:01 am]
Pr0nogo -- I'm safe for children, they consume me all the time
[12:43 am]
jjf28 -- pr0 is nsf children
[12:19 am]
Dem0n -- da police r cumin 2 taek ur cum
Please log in to shout.