• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Ray3501

Corporal
68 Badges
May 28, 2016
27
13
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Steel Division: Normandy 44
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders: Planetfall Premium edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Victoria 2
  • Crusader Kings II: Charlemagne
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall Season pass
  • Cities: Skylines - Campus
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Prison Architect
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
2.0 changed how the ship health system work. In addition to changing it into something similar to the EVE Online one (sans the four damage types obviously), it also put in self-repair delay timers. Ships appear to regenerate ten days after they stop taking damage, which is in line with non-starbase stations; starbases themselves take thirty days.

The changes break this mod, which activates shield regen by setting the can_rechage_shield flag to yes. Fortunately, the timers are not exactly hardcoded, for they can be changed in defines. Specifically, these two definitions:
  • STATION_SELF_REPAIR_TIMER_DAYS
  • STARBASE_SELF_REPAIR_TIMER_DAYS
Through some testing, I have discovered that ships use the first definition when determining when to start repairing. Setting the definition to 0 causes the ships to start regenerating even during combat. Since the effects are difficult to notice, I tested this with an edict that causes ships to repair at a rate of 35% per day (on top of whatever repair bonus currently going on), and testing with mere corvettes show that they cannot break the edict-enhanced tank.

And with that, I'll just say that this mod sets both of the definitions to 0, so ships, stations, and starbases will immediately regenerate once hit.

Further testing, however, shows that starbases will eventually be onlined when it regenerates its shield and armor. This is not a problem for standard empires, but it breaks marauders. This seems to happen even if I set STARBASE_ENABLED_HEALTH_PERCENTAGE to 0.5 or 1. I have to change the starbase timer to 1 to fix this bug.

That, however, still makes full starbase self-repairs more likely, as if defending fleets can draw all the fire away from the starbase, it will then immediately self-repair. This has the potential to affect the battle outcome.

And with that, this mod gets rid of the station repair timer to allow for ships and stations to self-repair immediately after getting damaged, and reduces the starbase repair timer to make it possible to offline a starbase while making it harder to do so due to the incredible short (1 day) repair timer that can be exploited by defending fleets.

Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1437765183
Non-Workshop: Right click on the attachment, save it, then drag the file to common/defines in the Stellaris folder. Or whatever mod you are using.
 

Attachments

  • zzzzzzzzzzzzz_regen.txt
    256 bytes · Views: 1
Last edited:

Ray3501

Corporal
68 Badges
May 28, 2016
27
13
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Steel Division: Normandy 44
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders: Planetfall Premium edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Victoria 2
  • Crusader Kings II: Charlemagne
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall Season pass
  • Cities: Skylines - Campus
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Prison Architect
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
I did some further testing. Turns out that starbases will eventually be onlined when it regenerates its shield and armor. This is not a problem for standard empires, but it breaks marauders by making them attack over and over. This seems to happen even if I set STARBASE_ENABLED_HEALTH_PERCENTAGE to 0.5 or 1. I have to change the starbase timer to 1 to fix this bug.

That, however, still makes full starbase self-repairs more likely, as if defending fleets can draw all the fire away from the starbase, it will then immediately self-repair. This has the potential to affect the battle outcome.

The updated mod is now uploaded to both here and the workshop.