• 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.

ParasiteX

Second Lieutenant
30 Badges
May 11, 2016
162
30
  • Magicka
  • Sword of the Stars II
  • Magicka 2
  • Surviving Mars: First Colony Edition
  • BATTLETECH - Backer
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Humanoids Species Pack
  • Age of Wonders III
  • Surviving Mars
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Pillars of Eternity
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Sword of Islam
I'm trying to figure out how to prevent the game from removing buildings from a planet when all pops are killed off on it.

Iv'e looked at both the on_action events as well as changing any mention of destroy_colony to only kill all the pops. And searched for any mention of remove_building. But none of them seems to be the culprit.

There seems to be some kind of hard coded function that will remove all buildings once all pops are dead.

And from rolling back to older versions. It would seem it started doing this after the 1.3.x patch.

Interestingly it doesn't seem to remove the Fallen Empire buildings. I tried testing and removed the ai_remove and event_building functions. But the game still wont remove them. So there is something running that removes all buildings except those specific types of buildings..

I'm currently at a loss trying to figure this out.. So any help would be appreciated.
 

ParasiteX

Second Lieutenant
30 Badges
May 11, 2016
162
30
  • Magicka
  • Sword of the Stars II
  • Magicka 2
  • Surviving Mars: First Colony Edition
  • BATTLETECH - Backer
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Humanoids Species Pack
  • Age of Wonders III
  • Surviving Mars
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Pillars of Eternity
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Sword of Islam
event_building = yes causes a building type to survive after a planet is depopulated.

Huh.. that actually worked... didn't think to try adding it to a regular building. When i tried removing it on a building that already was an event_building, like the Fallen Empire buildings, it didn't cause them to disappear when the planet got depopulated.

Just a pain in the ass to have to add the tag to all buildings now.. would be nice if they just kept it simple.. oh well. Thanks for the tip