Staredit Network > Forums > Modding Assistance > Topic: Adding UI stats display to turrets, disruption web, nukes, ...
Adding UI stats display to turrets, disruption web, nukes, ...
Feb 19 2021, 11:57 am
By: Netbek  

Feb 19 2021, 11:57 am Netbek Post #1



Units based on Siege Tank Turret have the full UI stats display when selected, but Goliath Turrets don't:
COMPARISON IMAGE
I want Goliath Turret, Cargo ship, Mercenary Ship, Disruption Web, and Nuke to have the full UI stats display.

In GPTP, I investigated stats_panel_display.cpp and weapon_armor_tooltip.cpp, but had no success.




Feb 19 2021, 1:24 pm UndeadStar Post #2



In stats_display_main.cpp, canDisplay = UnitStatCondFunc(unitStatFuncs[activeUnit->id].UnitStatCondFunc); probably return false for this unit id, thus skipping completely the display.
There may be other issues after that though.




Feb 19 2021, 2:00 pm Voyager7456 Post #3

Responsible for my own happiness? I can't even be responsible for my own breakfast


Have you changed the Status Preset value in FireGraft? Try setting it to Normal Unit.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Feb 19 2021, 4:54 pm IlyaSnopchenko Post #4

The Curious

Yeah, Firegraft is about enough to change that.



Trial and error... mostly error.

Feb 21 2021, 5:37 pm Netbek Post #5



Quote from Voyager7456

Have you changed the Status Preset value in FireGraft? Try setting it to Normal Unit.

It has worked. Thank you! :thumbup:

For future beginner searchers:
Steps to turn special units like Turrets or Disruption Web into normal, Marine-like unit:
1) in PyDAT: Copy Marine Entry over Goliath Turret / Disruption Web / whatever speical unit slot
2) in Firegraft: Find the changed unit and set "Status Presets" to "Normal Unit" and "Button Set" to "Basic Commands" (or sth similar)

I also attached images of the steps in Firegraft and PyDAT to this post.

Attachments:




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:58 am]
Symmetry -- Reindeer breeding 2 is not EUD and errors when I try to upload
[12:26 am]
Moose -- Symmetry
Symmetry shouted: yeah uploading for me has been a 50/50 toss up here lately
certain EUD maps segfault the map parser, :farty: ignore me the last time I complain at him. :crybaby:
[05:18 pm]
NudeRaider -- NimoStar
NimoStar shouted: isn't that only for maps?
yes
[2026-11-18. : 3:34 am]
Symmetry -- yeah uploading for me has been a 50/50 toss up here lately
[2026-11-17. : 7:55 pm]
NimoStar -- isn't that only for maps?
[2026-11-17. : 5:52 pm]
NudeRaider -- use scmscx.com
[2026-11-17. : 4:39 pm]
NimoStar -- While I can download, uploading is another story (771 kb file)
[2026-11-17. : 10:58 am]
UndeadStar -- Members Online: UndeadStar, EwanDalrymple090, CedrikPaquette881, ThierryCloutier864, RussellWalker308, RoisinMcCann053, GrahamEllery106, DeirdreMcCloskey160 <= good thing they only watch and don't all post
[2026-11-15. : 7:59 pm]
Symmetry -- but I seem to be downloading things fine
[2026-11-15. : 7:59 pm]
Symmetry -- the DLDB here is kinda sketch
Please log in to shout.


Members Online: Oh_Man, MarritVellinga146