Jump to content

Increasing Displayed Defense Value Accuracy in the Workshop HUD


Recommended Posts

I'm looking at creating a mod that adds defense values to certain constructible objects (or more specifically furniture). The problem is that I'm looking at adding defense values that aren't integers. The defense value shown in the workshop HUD only displays whole numbers. On the other hand I noticed that the food value shown in the workshop HUD is accurate to multiple decimal places, which I feel is a good indication that what I want to do is quite easily possible.

 

To be clear this is just an issue with the workshop HUD, the actual defense values are calculated correctly, I would just prefer that the defense values are displayed correctly. If I give something a defense value of 1.5 and I construct 4 of them that will give my settlement a defense of 6. However, this (the 1.5) will be displayed as just 1 in the workshop HUD. Similarly, 1.75 will be displayed as 1, and anything below the value of 0 wont even show up at all (despite still contributing to the settlements defense). If anyone is unsure what I'm talking about, it's the defense value shown below the required materials (for instance a machine-gun turret has a defense value of 5 and a spotlight has a defense value of 2, etc.).

 

So far I have extracted the interface .swf files using B.A.E. and had a look at the "Workshop" script in "Workshop.swf" using the JPEXS Free Flash Decompiler. I haven't managed to find a solution so far as I'm not sure what I'm looking at. While I'm not familiar with the programming language (I know the basics of a couple others, which didn't prove to be much help here) I assumed that it would be a matter of changing an integer to a float, or at least some property that I could copy over from the displayed food value to the displayed defense value. I also rummaged around FO4Edit trying to find any clues there and didn't get anything.

 

I have not looked at the CK yet as I haven't had the time and it would be a huge time sync, so I have no idea whether that has my answer. Even pointing me in the right direction would be appreciated as I'm not sure what to look at next.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...