I now in the past you could use LUA to code some logic in the mods, but I wanted to know if there’s a way to add some logic in mods, save from coding this into the main game in C++.
Particularly, I wanted to see if:
- I could make a vehicle liquid container that heats up (consuming energy) on demand (so, a device that unfreezes your water on winter). I tried to make insulated containers and while they seem to delay the freezing of water, they don’t completely prevent it.
- I could make two devices that trigger on when a vehicle passes at a point between the line from one to another (like a photodiode), and trigger off when there are no more vehicle tiles between the two sensors. I wanted to make my car test circuit a bit more interactive and make it emit messages when the vehicle crosses the “lap line”.
- Related to the above: wanted to record lap times on a terminal
- I wanted to see if the e-ink book scanner could be reimplemented. I love books… but I don’t live on the move. If I did, I would probably move my library to my e-book reader.
I don’t think most of these are needed in the game, so I don’t know how valuable would be to code these effects in C++ with an eye on mainlining them, so…
Is there life after LUA when adding mod logic?