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
Ability to delete Nauvis
Ability to delete Nauvis
- Attachments
-
- Screenshot 2025-01-17 132904.png (176.51 KiB) Viewed 128 times
Re: Ability to delete Nauvis
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.
Re: Ability to delete Nauvis
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
if starting planet
--copy data to nauvis
else
--add new planet
Re: Ability to delete Nauvis
Looks like its possible through control.lua
script.on_init(function()
game.forces.player.set_surface_hidden(game.surfaces.nauvis, true)
end)
script.on_init(function()
game.forces.player.set_surface_hidden(game.surfaces.nauvis, true)
end)