Game Development Community

Eliminating Scripting or the Console from TGE?

by Richard Elswick · in Torque Game Engine · 03/26/2003 (1:57 pm) · 9 replies

I am relatively new to TGE and this may not make any sense.

Is it possible to eliminate the Console or the Scripting from TGE to avoid modders?

Would one want to go through the effort?

I see it as a way to eliminate someone messing with some of the settings and or using this to create a MMO game.

Just some random thoughts, which my search didn't reveal anything. Like I said, I am also relatively new to looking at the TGE, so maybe as I read up and get into using TGE this will become a moot point/issue/question.

Thanks,
Rich

#1
03/26/2003 (2:16 pm)
Why would you want to? Security?

You can distribute only the compiled script (the .dso files.) which will keep casual users from making mods, though users could potentially rewrite your scripts from scratch.

If you're focused on MMO, I don't think this is a large concern, because they can only edit the client side scripting - presumably you're keeping the server stuff (which really controls gameplay) to yourself anyway.
#2
03/26/2003 (4:25 pm)
Maybe what you want to do is simply make the console be invisible to users without a special version (ie, debug) of the engine?

This can be easily done; simply remove the functions that show/hide the console, and you're good :)

Removing all the functionality tied to the console, however, would be... bad, probably. Torque is very much integrated with its scripting language and logging facilities; you'd be better off concealing the console, instead of trying to remove it from the engine entirely.
#3
03/26/2003 (7:33 pm)
Rich, I too receive answers like these from fellow garage game developers. It saves time to preface your post with something like "I know it isn't what everyone else would do but..." or "Without having to explain all the reasons why I want to do this, how do I...".

They are just trying to be helpful (no dis'ing intented) but it can be very frustrating when you just want to see a direct answer to your post rather than a million reasons why NOT to do it.

Sure anything is possible. You could remove all the scripting code and replace it with C code. But why would you...oh yeah.
#4
03/26/2003 (7:52 pm)
Yes.
You can remove it.

It's a big pain.

I've started by replacing the AIPlayer stuff, myself.
Rolling stuff back into the class.

There's a lot of tracing back to the root functions, and because of the script 'types' ambiguity, it's interesting replacing functions.

I would suggest using the scripting to get what you want (proto-typing), then consider removing it.
#5
03/26/2003 (8:25 pm)
Thanks all for the replies. They were somewhat expected.

Yes, I figured it would be a pain too, as Dee is finding out.

I also figured you could just disable the key access to the Console as well, preventing some scripting. Thanks Ben.

The concept jumped in my mind, when I thought, I don't want someone Moddin' my game, so maybe I would want to remove some of the scripting to prevent this. I used the MMO as an example more than anything else.

Mark Harman,

Thanks for the advice, but I didn't take any offense from anyones advice and hopefully I will never take too much offense from comments on programming, since you can do X things Y different ways! :)

Thanks all for the input. I have some things to chew on now and I really need to learn more about the scripting side of things and for that matter TGE in general!
#6
03/26/2003 (8:36 pm)
:)
#7
03/27/2003 (6:49 am)
:)
#8
09/30/2003 (3:28 am)
Couldn't you just take away the map to the
#9
09/30/2003 (6:54 am)
The mapping could be changed back; and the gui/world editors are bound to different keys. (f10/f11 by default)