Plintorio - Resource Creator

by Plinfut

Allows players to quickly create rectangle resource patches.

Utilities
a day ago
2.0
6
Environment Cheats

a Back Story & Design choices

a day ago

Version 1.0.0

My prefered settings for Plintorio - Clean & Safe Spawn Area are to clean all resources and to add my own in the map editor. But there you can only create one tile initially. Sure, you can clone that, paste it a few times, clone multiple instances, and paste an exponentially larger area in each iteration and within a minute you can clone/paste entire chunks. But it still takes a minute to get a decent size onto your clipboard, and crude oil has to be spaced a particular way, requiring positioning of pastes to be accurate to the tile, which gets tricky with larger cloned areas.

I thought it would be very helpful to just select an area and fill it with resource within seconds. As a proof of concept, it turned out to be fairly easy to create a shortcut button to give players a selection tool, and when that was used to select an area, to cover that in coal. But a separate shortcut for ~30 resources wasn't going work. I needed a single shorcut to choose a resource and give the player a selection tool from there. A custom menu was needed.

That turned out to be quite complicated, and giving players a selection tool after clicking a menu button wasn't as easy as doing so after clicking a shortcut either. I considered giving up several times because it just wasn't worth the effort for this mod's use cases. But I decided to continue as a learning project for future mods, as custom menus, selection tools, and lots of items requiring a good think about code structure, would likely be useful for future mods I have ideas for.

My original idea was to also add tools to remove resources, hence why the current buttons are placed on a tab. This would be even more complicated though because it would have to deal with categories that require custom icons, and tiles can't be removed at all. I did save the original tile when placing custom tiles so I could restore those in a future version, but that would leave it impossible to remove naturally occuring lakes and I don't currently have any plans to continue implementing the removal.

This thread has been locked.