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.



Who am I, and why should I care?

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.
[2021-7-29. : 6:54 pm]
RdeRenato -- xd
[2021-7-29. : 5:10 pm]
IlyaSnopchenko -- that, or they should've instead made the probes to fly somehow, so all the workers were equally capable :)
[2021-7-29. : 5:09 pm]
IlyaSnopchenko -- Maybe they'll get around to fix flying drones after they've fixed the flying SCVs
[2021-7-29. : 4:06 am]
Dem0n -- and hope they never touch it again
[2021-7-29. : 12:34 am]
Oh_Man -- Look every1 blizz updated SC without breaking everything. Let's give them a round of applause!
[2021-7-28. : 9:53 am]
NudeRaider -- MTiger156
MTiger156 shouted: The management is pure evil, yes. BUT there is still some good left in the employees. They are starting a massive on-site protest tomorrow (7/28), the number of participants is supposedly in the thousands. CHANGE WILL COME!
That's not what I meant. I can see internal company culture changing, but I have zero hopes that Blizzard will go back to caring about their customers. A good rep just isn't as profitable as milking. I would say once a company becomes a stock company they cannot be the humble good guys anymore they have a duty to make as much money as possible.
[2021-7-28. : 8:39 am]
NudeRaider -- Vrael
Vrael shouted: NudeRaider whoaoaoaoaoaoaoaoa what? is this just in germany? I'm sure the U.S. has some equally asinine rules too but
I'm only aware of Germany, but I would be very surprised if they didn't try this shit in other countries too. Disclaimer: I actually have no idea how responsibly that agency is using their right to veto. Maybe they do it fine but I don't trust them. They are supposed to regulate the market and keep net neutrality. But in the past they failed to prevent shit like Stream On. It's an option for phone flatrates where Youtube etc. are making contracts with Telekom that you can continue using it even if you used up all the GBs of your volume flatrate. And even if that agency does it properly, it's just not right they can do it without a court.
[2021-7-28. : 4:11 am]
O)FaRTy1billion[MM] -- Oh_Man
Oh_Man shouted: sweet jaysus... i remember attending the midnight launch at King George Square. Some dude dressed up as a pylon XD
"Some dude dressed up as a pylon" :megathink:
[2021-7-28. : 12:55 am]
Vrael -- NudeRaider
NudeRaider shouted: Oh_Man idd. I had switched a long time ago out of privacy concerns. Only by chance I realized that with that I also circumvented their website bans. I find that disgusting as well. I mean I have no problem with them banning sites when court decided they are illegal and police can't take them down because server is somewhere they have no jurisdiction at. But recently they went a step further. No court needed anymore. A collection of a few dozen copyright owners, the providers decided. And some federal agency can veto, but they most likely wave it all through. And nobody is talking about it. Private firms censoring the Internet. :( It's a shame. And yes, I'm not affected. Still mad.
whoaoaoaoaoaoaoaoa what? is this just in germany? I'm sure the U.S. has some equally asinine rules too but
Please log in to shout.


Members Online: BricelCabrera, jun3hong, O)FaRTy1billion[MM], TheHappy115