ScrapVM
ScrapVM – Finally makes it possible to run any lua string as code!
- Send dynamic payloads from client -> server and vice-versa!
- Make a lua executor entirely from within the game!
- Execute code that’s read from JSON files!
There are so many new possibilities, please show off your mods that make use of this!
How To Use:
dofile ‘$CONTENT_5a081817-b141-4439-987f-a25162d125fd/Scripts/scrapvm.lua’ Example = class() function Example.server_onCreate(self) if not sm.luavm then return end — Run arbitrary lua code! local code = [[ print(‘Hello from ScrapVM!’) ]] — Compiles the code local hello_world = sm.luavm.loadstring(code) — Run the code! hello_world() end
Credits:
Prime – dev support with making scrap mechanic mods!
Post any bugs / suggestions in comments below 🙂
If you do post a bug, please post some way to reproduce it