Modding Starbase models

I'm trying to create a starbase model that will increase morale. I manged to get the modal into the game but in the starbase upgrade screen where it says what ability it will increase I get this String Not found: +5%. Could someone please tell me how I could fix this?
4,788 views 4 replies
Reply #1 Top
From Carielf's modding guide

These are the possible StarbaseAbility strings:
AttackAssist
Increases the attack values of ships with weapons in the area of effect.
Culture
Increases the influence of your civilization in its area of effect.
DefenseAssist
Increases the defense values of ships with defenses in the area of effect.
Mining
Increases the bonuses from mining a resource
ProductionAssist
Increases the production on planets in the area of effect.
RepairAssist
Increases the rate at which ships repair themselves in the area of effect.
ShipDocking
Unused, but was meant to allow ships to dock at the starbase, similar to being in orbit of a planet.
SlowEnemies
Decreases the move/attack points that an enemy ship can use in its area of effect.
SpeedAssist
Increases the move/attack points that one of your ships can use in its area of effect.
StarbaseAttack
Gives the starbase weapons
StarbaseDefense
Gives the starbase defenses
StarbaseRange
Increases the distance that a ship can travel from the starbase
StarbaseSensors
Increases the sensor range of the starbase
TerrorStar
Currently not implemented, but it would be a special kind of military starbase that can destroy star systems.
Trade
Increases the amount of revenue that a freighter on a trade route brings in while it is in the area of effect.


Doesn't seem that starbases can have a morale boosting ability aside from the mining starbases built over yellow resources. It's a hardcode limit, I run into a lot of those. Can't think of a workaround atm.
Reply #2 Top
are you sure on that? becuase i tried to do the same thing with a range ability, and it accepted the ability, but it gave me the string not found error, but it seemed like the borders expanded after building the module...and her guide does list StarbaseRange as a possibilty.... I do not think the string not found error relates to it not working, as much as it does to not having text to use for the description
Reply #3 Top
is there any way to add to these strings?
Reply #4 Top
In English.str, search for TABLEALIAS StarbaseAbilities. After StarbaseSensors add these two entries - Range and StarbaseRange. Set the value to whatever you like. I've used Area of Effect, since it's the area of effect that range/starbaserange increases. Your StarbaseAbilities table should look like this: (TABLEALIAS StarbaseAbilities) (AttackAssist) Ships Attack (Trade) Monthly Freighter Revenue (ShipDocking) Docking Room (Culture) Cultural Influence (StarbaseDefense) Starbase Defense (StarbaseSensors) Sensors (Range) Area of Effect (StarbaseRange) Area of Effect Replace my paranthesis with the correct brackets. The reason you need two entries is the starbase info display looks at TWO different variables to compile info. This is how you avoid string errors. It's just an unfinished implementation that can be utilised. Trial and error got me there in the end.