Closed suunr closed 8 years ago
I want the code stored on client-side so players with cantool permission can edit the starfall without having to re-transfer the data. Even if I deleted it, players could hook into the net function which transfers the code. Maybe you can use the http functions and compile functions so you can remotely load your code.
Even if I sent the code pre-compiled, there exist lua decompilers. I'm not sure if I want to spend the effort adding an obfuscator.
Let me know if anything needs to be done for remote code loading though because I think that's the best solution.
I just remembered, you could also use the file library to upload and run your code.
Yes, I already tried that, but people still can steal the code by reading the net message
Maybe I can add string.dump
nvm it's already added.
Garrys mod can't run lua binaries
I think loadString can
You can steal every starfall code with this client side lua
PrintTable(LocalPlayer():GetEyeTrace().Entity.files)
. A way would be to delete the code after loading it directly, or obfuscating it.