← Back to context

Comment by ashdnazg

1 year ago

In the Spring/Recoil RTS game engine[1] we adapted Lua to have deterministic execution allowing synchronous multiplayer simulation. In addition we relatively easily implemented a precise[2] serialization of the Lua VM, allowing us to support save/load for games with no code required from their side.

In other languages these would require much more effort.

[1] https://github.com/spring/spring or https://github.com/beyond-all-reason/spring (yay for forks!)

[2] Preserving the order of iteration on items in a hash table after deserialization and further manipulations.