Author Topic: How hard would it be for Baddie to implement in-game scripting?  (Read 1988 times)

I thought about this a long time ago - how hard would it be to add an in-game script editor that can call code snippets when activated by an event or something? Naturally, it wouldn't create or modify datablocks, but it would be extremely useful for flexible event inputs and outputs while saving datablocks, and at the same time it would be useful for developers to play with their add-ons fluidly before packaging them. Theoretically, this shouldn't really be that difficult, should it? It could just write to a temporary .cs in config or something and exec(); that whenever the code is called, and of/c it would be admin-only.

Sorry this came out like a suggestion, I posted this just out of curiosity.

It would be extremely easy. You could make the entire thing in 5 minutes.

The question is more about whether it's a good idea.

There used to be an add-on or two that would allow you to open and save scripts in game, but i think they had some problems to them

it's already (very limited) possible.

It's not user friendly, but coding itself is not user friendly.


I made something a few months back that is very basic. Here. Don't bug me about how stuffty it is or ask me to fix it up.

it would be failed because eval

it would be failed because eval

Why should it be? If you take basic steps to secure it, such as making it host-only and perhaps creating a small blacklist to prevent file deletion, I would think it'd be fine.

Why should it be? If you take basic steps to secure it, such as making it host-only and perhaps creating a small blacklist to prevent file deletion, I would think it'd be fine.

Alternatively, don't use it if you don't want to...

one line of eval could mean your server's capture
if someone was given this for even a fraction of a second, they could potentially hack your server.

You do not ever give anyone other than the host eval access
No matter how much you try, you can't fully secure eval.

you might as well write a parser and another language
« Last Edit: October 01, 2013, 12:25:26 AM by MARBLE MAN »

i don't understand, isn't this what host console is? what's the difference?

one line of eval could mean your server's capture
if someone was given this for even a fraction of a second, they could potentially hack your server.

You do not ever give anyone other than the host eval access
No matter how much you try, you can't fully secure eval.

you might as well write a parser and another language
Appoint super admins that you can trust.
i don't understand, isn't this what host console is? what's the difference?

Host console can't be seamlessly integrated with events, as far as I know.

You do not ever give anyone other than the host eval access
No matter how much you try, you can't fully secure eval.
I disagree with this. I think you should just choose wisely who you give eval access to. For example, if NiXiLL joined my server I would have no problem letting him tinker with eval. I trust him completely. Same deal with Trigun, Truce, Chrono, Destiny, []----[], Aloshi, and any other scripter I like. Literally the worst thing they could do is delete my Blockland installation.  Big whoop. Reinstall, grab RTB, eval, and do it again. I would change your message to You do not ever give anyone other than the host eval access, unless you trust them and are willing to accept the possibility of a clean wipe of your Blockland installation.

It would be extremely easy. You could make the entire thing in 5 minutes.

The question is more about whether it's a good idea.

You do not ever give anyone other than the host eval access, unless you trust them and are willing to accept the possibility of a clean wipe of your Blockland installation.
For people like me who have an add-on folder with several gigs of files, a clean wipe of Blockland is much worse than it sounds

But yeah in that case just
don't download eval.
« Last Edit: October 01, 2013, 10:05:10 AM by Mysteroo »

For people like me who have an add-on folder with several gigs of files, a clean wipe of Blockland is much worse than it sounds
Then don't download eval.