Page 1 of 1

Ability to delete Nauvis

Posted: Fri Jan 17, 2025 9:37 pm
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

Re: Ability to delete Nauvis

Posted: Fri Jan 17, 2025 9:48 pm
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.

Re: Ability to delete Nauvis

Posted: Sat Jan 18, 2025 12:23 am
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

Re: Ability to delete Nauvis

Posted: Sat Jan 18, 2025 1:17 am
by rjdunlap
Looks like its possible through control.lua

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