Undo!

If you liked this item, please rate it up on Steam Workshop page.

Author: okeating

Last revision: 21 Jun, 2023 at 13:06 UTC (1)

File size: 276.48 KB

On Steam Workshop

Description:

After popular suggestion in the forums, it is finally here: Undo!

This was much harder to implement than I first thought, and there are some limitations but it works reasonably well.

Features:
– Button to undo up to 10 of the last "build" actions, such as track / road laying, signals, bus stops, stations and other constructions
– Undo will give you a full refund of the amount spent
– A "redo" button that will allow you to "undo undo", this will charge you the normal amount

Limitations:
– It cannot resurrect demolished town buildings. I attempted to replace these but they come back as zombie buildings, it seems that only the internal TF code can build these correctly
– It cannot replace auto removed assets and decorations, so an un-done track laying (for example) will leave behind a "scar" on the landscape
– Undoing or redoing large chains of actions becomes increasly less likely to work as the number of events grows – which is why I limited it to 10
– It cannot undo anything that was done by another script or mod (with the exception of some of my own mods which have been integrated)

I have been through many crashes to desktop developing this mod, it now seems stable but I strongly recommend (auto) saving regularly, and please report any issues – importantly – including log snippet and also what mods were in use (so I have a hope of fixing it).

Enjoy!

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.