Ability to delete Nauvis

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
rjdunlap
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jan 17, 2025 4:59 pm
Contact:

Ability to delete Nauvis

Post by rjdunlap »

Maybe I'm missing something.. I've tried a few things to remove Nauvis or at least on the space locations list (see attached)

.. looking at other mods the "Only Gleba" mod solves this by moving Gleba to Nauvis. From older posts it looks like Nauvis has to exist?

tried:
data.raw.planet["nauvis"].hidden = true
table.remove(data.raw.planet,0)
data.raw.planet["nauvis"].valid = false
game.delete_surface("nauvis")

Thanks,
rjdunlap
Attachments
Screenshot 2025-01-17 132904.png
Screenshot 2025-01-17 132904.png (176.51 KiB) Viewed 107 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14817
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Ability to delete Nauvis

Post by Rseding91 »

It's not possible to remove Nauvis. It's the default when the game needs a fallback surface and is required to exist.
If you want to get ahold of me I'm almost always on Discord.
rjdunlap
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jan 17, 2025 4:59 pm
Contact:

Re: Ability to delete Nauvis

Post by rjdunlap »

Would it be possible to delist it from the space location list? That way if it needs to exist as a fallback it can.. but for any solar system overhaul.. aside from just renaming/replacing the icon. that it would be possible to make it tidier. In my case I'm trying to make random systems (with 18+ different planets that could act as a starter).. so I can't really assume that any 1 planet would replace Nauvis.. without a bunch of duplication of code.

if starting planet
--copy data to nauvis
else
--add new planet
rjdunlap
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jan 17, 2025 4:59 pm
Contact:

Re: Ability to delete Nauvis

Post by rjdunlap »

Looks like its possible through control.lua

script.on_init(function()
game.forces.player.set_surface_hidden(game.surfaces.nauvis, true)
end)
Post Reply

Return to “Modding interface requests”