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.




Yesterday, 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.

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




Today, 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.

Today, 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.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: NudeRaider
[2026-10-25. : 2:35 am]
Symmetry -- Begone!
[2026-10-24. : 11:00 pm]
Symmetry -- https://i.imgur.com/4kK6tCX.mp4 he dancin'
[2026-10-24. : 6:58 pm]
Symmetry -- :deez:
[2026-10-24. : 6:14 pm]
l)ark_ssj9kevin -- :des:
[2026-10-24. : 6:14 pm]
Symmetry -- ah, desc. I tried dsc and des
[2026-10-24. : 6:13 pm]
l)ark_ssj9kevin -- manually editing URL fixes it https://staredit.net/site/members/0/minerals/desc/
[2026-10-24. : 6:12 pm]
l)ark_ssj9kevin -- ya member list sorting by descending broken for all columns tbh
[2026-10-24. : 5:52 pm]
Symmetry -- https://staredit.net/site/members/0/minerals/asc/ why does it sort by ascending and not descending :hurr: and how did that guy get -963 minerals?
[2026-10-24. : 5:47 pm]
Symmetry -- TFW you go to donate to SEN but you can't anymore :(
[2026-10-24. : 5:12 pm]
Symmetry -- The LLMs are coming for our mineral stocks!
Please log in to shout.


Members Online: NudeRaider, O)FaRTy1billion[MM]