Game Development Community

removing editing functionality for GameBuild

by Jeremy Tilton · in Torque Game Engine · 02/16/2003 (6:10 pm) · 8 replies

Ok, So let's say I got the thing working like I want it..and I wanna ship a GameBuild off to my QA team. What if I don't want them to be able to play with the function keys to edit stuff? Is that a change in the engine, or is that a scripting thing?

#1
02/16/2003 (7:55 pm)
Well, you can disable the fn keys. That's a first step.

Then, you could make stub scripts for the current editors. That pretty much takes care of that side of the issue.

Of course, if the base code is still in the app, if someone had the editors/scripts and hooked their own fkeys up, well, c'est la vie. Not much you can do at that point.

If you're just trying to prevent accidental/incidental editor use, just the fkeys would be enough.

d
#2
02/16/2003 (8:32 pm)
"stub script"?
#3
02/16/2003 (8:42 pm)
I think by stub scripts he just means mostly empty scripts that do nothing in place of the current editor scripts.
#4
02/16/2003 (8:52 pm)
gotcha. on another note..

How do you package up a game or game build? Meaning, someone dloads and they don't get to see all my script etc...
#5
02/16/2003 (9:01 pm)
Only provide the .dso compiled scripts with your game, not the .cs files.
#6
02/16/2003 (9:01 pm)
You can delete all the *.cs files as long as you leave the *.dso files. The one file you must leave is the main.cs in the root dir of your game I believe. Also I think you can make your game's data directory in a zip file of the same name (like "fps" or "rw"), but I believe this was broken at some point and I don't know if it was ever fixed (probably was, it's been months since I've checked).

edit: argghhh you beat me to it James... barely, barely... ;)
#7
02/16/2003 (9:42 pm)
I'll probably ask again when that time comes...was just checkin...you were very close ben...very very close.
#8
02/17/2003 (10:24 am)
Zip files work fine. You must remember that the zip file name becomes a folder in the path.

So if you have a zip file namded foo with a folder named bar containing a file named main.cs stored in the example directory the path to main.cs would be:

/example/foo/bar/main.cs