Staredit Network > Forums > Modding Assistance > Topic: could be a bug of starcraft?
could be a bug of starcraft?
Oct 23 2026, 1:30 pm
By: cloudfancy  

Oct 23 2026, 1:30 pm cloudfancy Post #1



in starcraft 1.16.1, I have a terran command center that hp is to 15000, I found HP will not be displayed when HP is up to 10000, I tested it, when it goes to 9999, it is fine, then I changed it to 10000, boom just gone. can anyone fix this ? or it is fixed already?



None.

Oct 23 2026, 9:18 pm Symmetry Post #2

(Killer_Kow)

This is normal Starcraft behaviour, I don't think it's something that could be easily fixed.



:voy: :jaff: :voy: :jaff:

Oct 23 2026, 10:02 pm ihjel Post #3



The original staredit only allowed life up to 9999. Also if a unit has both 4-digit shields and hp the hp will be hidden until the unit is sufficiently damaged.



None.

Oct 23 2026, 11:30 pm DarkenedFantasies Post #4

Roy's Secret Service

The game is hardcoded to hide the hp/shields counter if either hitpoints or shields are above 9999. Can be easily resolved with GPTP, by patching or hooking the function @ 0x4263E0.

It will also not show if the text doesn't fit within the text area, which is usually when both hp and shields have large values, but may still appear visible if there are a bunch of ones since they take up less width than the other numbers. This can be resolved by editing the statdata.bin file and widening that text area.




Oct 25 2026, 6:33 am cloudfancy Post #5



The game is hardcoded to hide the hp/shields counter if either hitpoints or shields are above 9999. Can be easily resolved with GPTP, by patching or hooking the function @ 0x4263E0.

It will also not show if the text doesn't fit within the text area, which is usually when both hp and shields have large values, but may still appear visible if there are a bunch of ones since they take up less width than the other numbers. This can be resolved by editing the statdata.bin file and widening that text area.

thanks for your reply. as you mentioned that by patching or hooking the function @ 0x4263E0. how can I do this? I've already got the gptp, and next step?



None.

Oct 25 2026, 4:14 pm DarkenedFantasies Post #6

Roy's Secret Service

https://github.com/BoomerangAide/GPTP/blob/master/GPTP/hooks/interface/status_display/advanced/status_base_text.cpp#L835

unitMaxHP <= 9999
- change 9999 to a higher value (up to 8388607, at which point would be the same as the next option)
- or change to unitMaxHP >= 0
- or remove entirely to display any hitpoints value

units_dat::MaxShieldPoints[unit->id] <= 9999
- change 9999 to a higher value (up to 65535, at which point would be the same as the next option)
- or remove entirely to display any shield points value

The reason for the max value or non-negative number is because hitpoints are signed int, so anything above 8388607 will appear as negative HP. However you can do without the number check because although the game can display the negative number just fine, it will crash anyway because the HP bars cannot handle negative HP properly (which is something that can also be fixed).




Oct 26 2026, 5:31 am cloudfancy Post #7



https://github.com/BoomerangAide/GPTP/blob/master/GPTP/hooks/interface/status_display/advanced/status_base_text.cpp#L835

unitMaxHP <= 9999
- change 9999 to a higher value (up to 8388607, at which point would be the same as the next option)
- or change to unitMaxHP >= 0
- or remove entirely to display any hitpoints value

units_dat::MaxShieldPoints[unit->id] <= 9999
- change 9999 to a higher value (up to 65535, at which point would be the same as the next option)
- or remove entirely to display any shield points value

The reason for the max value or non-negative number is because hitpoints are signed int, so anything above 8388607 will appear as negative HP. However you can do without the number check because although the game can display the negative number just fine, it will crash anyway because the HP bars cannot handle negative HP properly (which is something that can also be fixed).

thanks for your reply,so I changed the values you listed, and compiled it to the plugin, everything will be just fine?



None.

Oct 26 2026, 9:47 am cloudfancy Post #8



https://github.com/BoomerangAide/GPTP/blob/master/GPTP/hooks/interface/status_display/advanced/status_base_text.cpp#L835

unitMaxHP <= 9999
- change 9999 to a higher value (up to 8388607, at which point would be the same as the next option)
- or change to unitMaxHP >= 0
- or remove entirely to display any hitpoints value

units_dat::MaxShieldPoints[unit->id] <= 9999
- change 9999 to a higher value (up to 65535, at which point would be the same as the next option)
- or remove entirely to display any shield points value

The reason for the max value or non-negative number is because hitpoints are signed int, so anything above 8388607 will appear as negative HP. However you can do without the number check because although the game can display the negative number just fine, it will crash anyway because the HP bars cannot handle negative HP properly (which is something that can also be fixed).

I finally generate the result files:GPTP.dll and somehow I can not load it into game? how should I do?



None.

Oct 27 2026, 12:32 am DarkenedFantasies Post #9

Roy's Secret Service

Add the plugin to your mod EXE (Firegraft, etc.)

If you mean that the file doesn't appear when trying to add it, rename the file extension from .dll to .qdp




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:18 am]
Symmetry -- Make maps for the memes :hurr:
[08:19 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: damn, if that doesn't scream UV, I don't know what does. https://staredit.net/382067/
hah yeah in the past that might've been up my alley. haven't really been mapping lately, been too busy with everything else. and kinda lost interest too tbh. just not enough people left on SC to feel worth investing the time personally.
[08:03 pm]
lil-Inferno -- u
[2026-10-30. : 7:38 am]
NudeRaider -- damn, if that doesn't scream UV, I don't know what does. https://staredit.net/382067/
[2026-10-30. : 6:55 am]
UndeadStar -- :wob:
[2026-10-30. : 2:28 am]
Symmetry -- :wob:
[2026-10-29. : 9:17 pm]
RIVE -- :wob:
[2026-10-29. : 7:03 pm]
CoCo( -- OK, click here if any1 is interested in this $ making opportunity https://staredit.net/topic/18952/
[2026-10-29. : 4:39 pm]
NudeRaider -- sure, make a post in ums assistance
[2026-10-29. : 6:44 am]
CoCo( -- anyone willing to help fix a few triggers on a new "impossible" map? Please
Please log in to shout.


Members Online: l)ark_ssj9kevin