Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Different wireframe colors
Different wireframe colors
May 7 2012, 4:37 am
By: SinistrouS  

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



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



None.

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

Back* from the grave

Already well known and documented. Thanks for the heads up, nevertheless.




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

Cartography Artisan

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:
Wire Frames.scm
Hits: 5 Size: 36.15kb



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

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



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



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.

Post has been edited 1 time(s), last time on May 7 2012, 9:34 am by SinistrouS.



None.

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

👻 👾 👽 💪

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:
[attach=8596]
Doing higher values just makes it pick wrong indexes, or perhaps nonexistent ones (buffer overflow) ...

Attachments:
twire.png
Hits: 1 Size: 0.92kb

Post has been edited 2 time(s), last time on May 7 2012, 9:11 pm by FaRTy1billion.



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!

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



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.



None.

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

We live in a society.

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.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[04:31 pm]
Zoan -- where's the option to delete my account
[04:30 pm]
Zoan -- goodbye forever
[04:30 pm]
Zoan -- it's over, I've misclicked my top right magic box spot
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
Please log in to shout.


Members Online: jjf28, Ultraviolet