(Ques) General Question for Devs or Experienced Modder

I have just been wondering that since you can create mods that add topics and platforms etc is it possible to remove a topic or platform from the base game with the mod?

For example if I wanted to remove the PC from the base game via the mod enabled.

I Think there was topic like that…

@PatrickKlug

Get the array containing the thing you want to remove and then simply remove it.

2 Likes

You didn’t read it clearly, I said that I would like to remove for example a topic or a platform from the game using a mod. (So really I want to disable a topic or a platform because its not like I’m going to go through the games code and remove it)

@snowyterrorgami like @tmch said when you initialize your mod just loop through the platform or topics array and remove the item you want to remove.

Or is your question if there is a mod that does it for you?

kristof I was just looking for a way of doing it

Ok, so your question is answered?

Yes. Something like:

Platforms.allPlatforms = Platforms.allPlatforms.filter(function (platform) {
    return platform.id != "PC";
}

I highly suggest you only run this at the beginning of a new save. I’m not sure what the effects would be if your mod was loaded into a save file that had games for PC already published, and then you deleted the PC. You might also need to kill the PC upgrade events, as they will probably crash if you delete the PC.

There may be other side effects too, I found some werid bugs with just replacing the default platforms in the randomiser.

1 Like