Clear chart for a specific area

Post Reply
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Clear chart for a specific area

Post by Afforess »

LuaForce has an API call to chart specific chunks, and clear_chart clears all chunks, but lacks anything to clear a specific area/chunk. This would be useful for a mod where the map would disappear and regen if the player hasn't visited in a while (shape shifting wilderness)

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

Re: Clear chart for a specific area

Post by Rseding91 »

I like it. Probably not for 0.13 but I'll put it in 0.14 so it doesn't get forgotten about.

The current chart system doesn't support deleting just a portion of the chart so it would take some new logic and at this stage of 0.13 I don't want to risk that :)
If you want to get ahold of me I'm almost always on Discord.

User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: Clear chart for a specific area

Post by Afforess »

Rseding91 wrote:I like it. Probably not for 0.13 but I'll put it in 0.14 so it doesn't get forgotten about.

The current chart system doesn't support deleting just a portion of the chart so it would take some new logic and at this stage of 0.13 I don't want to risk that :)
Sweet, thanks. :)

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

Re: Clear chart for a specific area

Post by curiosity »

This has indeed been implemented as LuaForce::unchart_chunk in 0.14. The thread can be moved to implemented requests.

Post Reply

Return to “Implemented mod requests”