Documentation and TutorialMain Code PartsOther game instances and methods

Other game instances and methods

Set custom maps in-game

You can use game.setCustomMap(<map pattern>) to set custom map while the game is running

where <map pattern> has the same format as the custom map in this.options

Lock/unlock the mod from attracting new players

Use game.setOpen(true/false) to lock/unlock the mod to be visible to players (only for Modding Space mods)

There is also game boolean properties game.is_open is used to determine if the mod is open or not.