Deleted chunks won't get deleted (removed from world)?
Posted: Sun Aug 13, 2017 4:05 pm
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?
Re: Deleted chunks won't get deleted (removed from world)?
Posted: Sun Aug 13, 2017 4:23 pm
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
Re: Deleted chunks won't get deleted (removed from world)?
Posted: Sun Aug 13, 2017 6:05 pm
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.
Re: Deleted chunks won't get deleted (removed from world)?
Posted: Sun Aug 13, 2017 6:23 pm
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:
Re: Deleted chunks won't get deleted (removed from world)?
Posted: Sun Aug 13, 2017 7:52 pm
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.
Re: Deleted chunks won't get deleted (removed from world)?
Posted: Mon Aug 14, 2017 4:27 am
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.