prevent nauvis from generating?

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Tonkers
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jan 07, 2022 6:50 pm
Contact:

prevent nauvis from generating?

Post by Tonkers »

Hi,

I'm trying to prevent Nauvis from generating in the first place, since it seems to take quite a bit of time to do when launching a new game and my mod is using it's own new surfaces without nauvis. Currently, I'm just deleting chunks after they are generated, even though nothing is generated except for empty tiles.

Code: Select all

	local defaultSurface = game.surfaces[1]
	local gen_settings = defaultSurface.map_gen_settings
	defaultSurface.map_gen_settings = gen_settings
	for chunk in defaultSurface.get_chunks() do
		defaultSurface.delete_chunk({chunk.x, chunk.y})
	end
I have to start a new game during development and debugging, I've done it already 500 times, possibly going to go into the thousands in the future while making this mod, and each new game generates a new map unnecessarily adding to development time exponentially.

curiosity
Filter Inserter
Filter Inserter
Posts: 324
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: prevent nauvis from generating?

Post by curiosity »

Tonkers wrote:
Tue Sep 27, 2022 12:15 am
adding to development time exponentially
:shock:
...how?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: prevent nauvis from generating?

Post by Klonan »

Tonkers wrote:
Tue Sep 27, 2022 12:15 am
I have to start a new game during development and debugging, I've done it already 500 times, possibly going to go into the thousands in the future while making this mod, and each new game generates a new map unnecessarily adding to development time exponentially.
Hold CTRL when pressing 'New Game'

Tonkers
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jan 07, 2022 6:50 pm
Contact:

Re: prevent nauvis from generating?

Post by Tonkers »

Klonan wrote:
Tue Sep 27, 2022 7:01 am
Tonkers wrote:
Tue Sep 27, 2022 12:15 am
I have to start a new game during development and debugging, I've done it already 500 times, possibly going to go into the thousands in the future while making this mod, and each new game generates a new map unnecessarily adding to development time exponentially.
Hold CTRL when pressing 'New Game'
Ha! AMAZING!! I learn something new every day even still about this game. Thanks!

Tonkers
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jan 07, 2022 6:50 pm
Contact:

Re: prevent nauvis from generating?

Post by Tonkers »

curiosity wrote:
Tue Sep 27, 2022 7:00 am
Tonkers wrote:
Tue Sep 27, 2022 12:15 am
adding to development time exponentially
:shock:
...how?
ok, fine, exponentially may not have been the best word, but during times of frustration, people tend to exaggerate a bit about things, as I probably did :D But honestly, cutting off 30-60 seconds on each iteration multiplied by hundreds or even thousands of times generating a new world, the time adds up, just maybe not exponentially :|

Post Reply

Return to “Modding interface requests”