fidwell / OpenRct2-ForestForge

A plugin for OpenRCT2 that automatically generates foliage in a painted area.
MIT License
0 stars 0 forks source link

Take clearance checks cheat into account #5

Open fidwell opened 1 month ago

fidwell commented 1 month ago

If clearance checks are enabled (the cheat is turned off), the plugin won't be able to bury any scenery pieces with a vertical offset. If the cheat is off, it should ignore all of those scenery pieces (or alternatively use a vertical offset of 0, or a mix of the two).

fidwell commented 1 month ago

I briefly tested having the plugin programmatically enable clearance checks before placing scenery, and then re-enabling it when it was done. This still resulted in an error message from the game that it couldn't place the scenery. I suspect that it was placing scenery "too slowly" (since it uses game actions) and therefore the cheat was already disabled before it finished. In order to make this work, we might have to have some kind built-in delay to turn the cheat off.

(Slightly off-topic, but it might be a good idea to defer placing scenery too, so we're not doing everything in the same tick, which definitely causes a lot of lag, and could cause other issues too.)