Deleted chunks won't get deleted (removed from world)?

Bugs that are actually features.
andyfth
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Jun 27, 2017 5:30 am
Contact:

Deleted chunks won't get deleted (removed from world)?

Post by andyfth »

I tried to delete chunks of the map. (game.player.surface.delete_chunk) These chunks got deleted = removed from the map, market as unexplored world.

But if I visit (re-explore) deleted area, the area looks exactly the same. The same lakes, the same resources, the same trees.

So deleting chunks wont delete chunks? It just hides them from the map? What's the point then? :?
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Deleted chunks won't get deleted (removed from world)?

Post by Klonan »

andyfth wrote:I tried to delete chunks of the map. (game.player.surface.delete_chunk) These chunks got deleted = removed from the map, market as unexplored world.

But if I visit (re-explore) deleted area, the area looks exactly the same. The same lakes, the same resources, the same trees.

So deleting chunks wont delete chunks? It just hides them from the map? What's the point then? :?
Im guessing the chunk was just generated again, so not a bug

If you want a chunk to be deleted and never generate again, set its chunk_generated_status to entities:
http://lua-api.factorio.com/latest/LuaS ... ted_status
http://lua-api.factorio.com/latest/defi ... ted_status
andyfth
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Jun 27, 2017 5:30 am
Contact:

Re: Deleted chunks won't get deleted (removed from world)?

Post by andyfth »

But it was re-generated exactly as I left it!

If I removed some trees, they weren't placed there again. If I left some trees, they would be there. If there was lake, that lake was there again in the same shape - but if I landfilled part of the the lake, that part would be landfiled.

Deleting chunks doesn't delete them - it just hide them from the map. So what's the point of deleting chunks? If they are still kept somewhere in game-save-file for later re-exploring. In a same state as before deleting? :?:

Deleting chunks = hidding them from map. Nothing else.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Deleted chunks won't get deleted (removed from world)?

Post by Klonan »

andyfth wrote:But it was re-generated exactly as I left it!

If I removed some trees, they weren't placed there again. If I left some trees, they would be there. If there was lake, that lake was there again in the same shape - but if I landfilled part of the the lake, that part would be landfiled.

Deleting chunks doesn't delete them - it just hide them from the map. So what's the point of deleting chunks? If they are still kept somewhere in game-save-file for later re-exploring. In a same state as before deleting? :?:

Deleting chunks = hidding them from map. Nothing else.
I can't reproduce the issue,
A deleted chunk is regenerated comepletely as it was before:

Rseding91
Factorio Staff
Factorio Staff
Posts: 14911
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Deleted chunks won't get deleted (removed from world)?

Post by Rseding91 »

Are you using the wrong coordinate system when passing chunk positions to be deleted?

It's world position / 32 that you want to pass.
If you want to get ahold of me I'm almost always on Discord.
andyfth
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Jun 27, 2017 5:30 am
Contact:

Re: Deleted chunks won't get deleted (removed from world)?

Post by andyfth »

Klonan wrote:
andyfth wrote:But it was re-generated exactly as I left it!

If I removed some trees, they weren't placed there again. If I left some trees, they would be there. If there was lake, that lake was there again in the same shape - but if I landfilled part of the the lake, that part would be landfiled.

Deleting chunks doesn't delete them - it just hide them from the map. So what's the point of deleting chunks? If they are still kept somewhere in game-save-file for later re-exploring. In a same state as before deleting? :?:

Deleting chunks = hidding them from map. Nothing else.
I can't reproduce the issue,
A deleted chunk is regenerated comepletely as it was before:


OK, That is weird! Because if I place that landfill, delete chunks, revisit area, landfill is again there. But in your case it is not. So it is only my problem. Maybe because on of MODs I'm using? I don't know.


-----------------------------------

Anyway - because it's behaving this waz only at my computer, it is not a BUG. And you an close this thread. :)
Post Reply

Return to “Not a bug”