Nexela / PickerExtended

MIT License
12 stars 16 forks source link

Landfill Undo Planner #113

Open morsk opened 2 years ago

morsk commented 2 years ago

Is your feature request related to a problem? Please describe.

I don't care about the feature as a user, as I can already do it myself. I'm just offering to write it.

Describe the solution you'd like

I wrote code that restores landfill tiles to the original, by regenerating the chunks on a separate surface, and copying tiles from them. It works, and as far as I know, no one has implemented this before.

I have no idea how interesting this is to other people, but if you want it in the mod I'll contribute it. It currently works as a script you can try:

https://github.com/combe15/factorio-whiteboard/blob/main/Lua/landfill%20undo.lua

But in a mod, I would make a planner for it, like the ore eraser. And the code would have comments and not look like a mess.

Additional context

Nexela commented 2 years ago

Looks interesting and would be a nice addition to PE

On Tue, Feb 1, 2022, 4:48 AM morsk @.***> wrote:

Is your feature request related to a problem? Please describe.

I don't care about the feature as a user, as I can already do it myself. I'm just offering to write it. Describe the solution you'd like

I wrote code that restores landfill tiles to the original, by regenerating the chunks on a separate surface, and copying tiles from them. It works, and as far as I know, no one has implemented this before.

I have no idea how interesting this is to other people, but if you want it in the mod I'll contribute it. It currently works as a script you can try:

https://github.com/combe15/factorio-whiteboard/blob/main/Lua/landfill%20undo.lua

But in a mod, I would make a planner for it, like the ore eraser. And the code would have comments and not look like a mess. Additional context

— Reply to this email directly, view it on GitHub https://github.com/Nexela/PickerExtended/issues/113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKTFYE5TZ3VDR2WWN4AGNTUY6T7RANCNFSM5NIULNOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>