Displaying ResistanceBonus

Has anybody had any luck getting this to display in the attributes list for an improvement in the planet display?

I've tried many additions to what looks to be the correct tables in screens.str and english.str with no success. It leads me to believe that the hard-code just doesn't look for any tag from these files when writing out to the planet screen, and I'm wasting my time.

I managed to fix the summary screen planetary defense string error through trial and error, but the solution to this evades me and I hate having an improvement attribute that doesn't actually display.

Cheers for any nput from fellow modders or devs.
3,772 views 4 replies
Reply #1 Top
I don't believe it does show up. The only building that uses it in the base game is the re-education center IIRC, and I don't recall it showing anything either.
Reply #2 Top
I'm pretty sure the game just looks for what it needs in the .str files, I've never had any luck adding to them. This is probably not changable.
Reply #3 Top
You mean it does work, but just doesn't show up?
Damn, I altered a whole bunch of my buildings in my mod because I thought the resistance bonus didn't actually do anything...
Reply #4 Top
I think it works, but doesn't display, because I've had planets go over 4.00 from influence pressure but not go skull and crossbones, and it looks like it's improvements with ResistanceBonus that make that possible (on top of civilization Loyalty ability of course).

It's a shame it doesn't display. The fact is modders have very few improvement attributes to play with in the first place, and it's a shame not to use ResistanceBonus just because it doesn't display. It would just make a modded improvement more "attractive" to a player if he could see the extra benefit quantified.

I suppose there's always the description. It's better than nothing.