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

Valuras

Recruit
13 Badges
Mar 15, 2024
2
0
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
Hello there.

Recently I added a couple new mods that I had wanted to try out onto a save that was in progress. I didn't realize that after adding them all of the ai decided to make some odd megastructures in their systems. I noticed these after going to war with one and winning a large amount of their systems only to have my megastructures tab become overloaded with these megastructures. I tried to look through the mods I had installed however I couldn't find anything to do with these megastructures. I decided to use the effect remove_ megastructure = this on them and they are perfectly safe to remove so I began to manually remove them however I quickly realized doing so would be near insane as every ai empire has these in every system with each system having several of these oddities. I decided to take a look to see if there is another way to remove megastructures and came across this effect code by Merkury90.

Code:
country_event = {
    id = megastructure.71
    hide_window = yes
    is_triggered_only = yes

    immediate = {
        every_owned_megastructure = {
        #limit = { is_megastructure_type = dyson_sphere_ruined }
        remove_megastructure = this
        }
    }
}

from there I tried modifying the code off of the debug tool tip stating what one of the megastructures was called however when I tried to use it nothing happend at all and so since I am extremely inexperienced with stellaris' code.


Code:
country_event = {
    id = megastructure.71
    hide_window = yes
    is_triggered_only = yes

    immediate = {
        every_owned_megastructure = {
        #limit = { is_megastructure_type = on_build_start }
        remove_megastructure = this
        }
    }
}

If anyone can offer some insight into what might work to get rid of these that would be extremely helpful as I plan on building several megastructures and want to clean up my megastructures tab.

Thank you very much in advance.
 

Attachments

  • Screenshot 2024-03-15 023032.png
    Screenshot 2024-03-15 023032.png
    517,3 KB · Views: 0
  • Screenshot 2024-03-15 023345.png
    Screenshot 2024-03-15 023345.png
    237,9 KB · Views: 0
  • Screenshot 2024-03-15 023437.png
    Screenshot 2024-03-15 023437.png
    185,6 KB · Views: 0