Author Topic: Encryption  (Read 646 times)

Hi, everyone. Is there a way for me to encrypt/compile my .cs files in my add-on? I've heard that it's possible to compile them into DSO files, but I can't find how to do that. I want to encrypt my files because my add-on is currently in beta. I want to distribute it to a few players to test out, but I want to add an unremoveable piece of the code that lets the add-on only run on that player's server.

Thanks

No, compiling your scripts is unneeded and hated for two reasons:
1. Let others learn from your code
2. You can easily hide exploits

No, compiling your scripts is unneeded and hated for two reasons:
1. Let others learn from your code
2. You can easily hide exploits
I agree that final scripts should not be compiled. I just want to compile the beta so that it doesn't get sent around.

I agree that final scripts should not be compiled. I just want to compile the beta so that it doesn't get sent around.
No, you will still not be able to compile. Stop asking.

Have you ever tried a File Converter?

The exec function won't even execute the file unless its .cs, .mis, or .gui

Also, try not giving the script to people who aren't trustworthy.

Why would it matter if the beta got out?

If it's a beta, wouldn't it get outdated anyways?

Why would it matter if the beta got out?

If it's a beta, wouldn't it get outdated anyways?
Its a super extra secret mod that will be transferd to the government that plays Blockland so thay can play City RP. But its seeeeeeeeeeeeeecret.

Have you ever tried a File Converter?
If I recall, there is a function to compile. But I head Badspot has edited the reading of compiled files.

If config/client/script.cs.dso exists, the following works perfectly:
exec("config/client/script.cs");

compile() exists but does not work. A working (but not simple) method to do this is downloading the TGE 1.0 demo and executing a file. It automatically compiles it when executing in TGE.

If config/client/script.cs.dso exists, the following works perfectly:
exec("config/client/script.cs");

compile() exists but does not work. A working (but not simple) method to do this is downloading the TGE 1.0 demo and executing a file. It automatically compiles it when executing in TGE.
Badspot said that he changed the compile key.