What are my options if I want embedded scripting language for my kotlin multiplayform game? I despise LUA from the very depths of my soul, so it would be the last option I would be looking into
Hmm, this is interesting, but looks unsafe. Can it be reasonably sandboxed?
r
Ruckus
08/11/2022, 6:13 PM
I'm not sure, I haven't really messed with it. I would imagine there's number of thing you can configure with the
ScriptCompilationConfiguration
and
ScriptingHost
for security/safety.
a
Adam S
09/03/2022, 8:42 PM
I can recommend TypeScriptToLua. I'm writing a Factorio mod with it. It's not Kotlin, but it's better than Lua!
I also wrote a tool to help with JSON serialization between Kotlin and TypeScript - kxs-ts-gen. This makes it much easier to get data out from the mod to a Kotlin server.