What are my options if I want embedded scripting l...
# getting-started
j
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
r
j
Hmm, this is interesting, but looks unsafe. Can it be reasonably sandboxed?
r
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
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.