Game Development Community

Create a distrobution copy using tgea 1.7

by Shawn Morrow · in Torque Game Engine · 07/07/2008 (5:04 pm) · 5 replies

Hello everyone,

I was wondering how do you make the game to where someone can not edit the cs files in a distro of the game. I have tried everything and even looked on the forums, but there is no documentation on how to do this, or at least i can not find it. Thank you for any help.

#1
07/07/2008 (5:35 pm)
What you do is only provide the .dso script files and not the .cs. .dso files are compiled .cs files. Now keep in mind that .dso files can in theory be decompiled just like .class files can be decompiled to .java files related to Java and etc... because TorqueScript is an interpreted language and uses a byte code for compiled files just like Java, Python, and what not.

But it does make it more difficult for people to figure out your scripts by providing only the .dso files.
#2
07/07/2008 (7:54 pm)
When i try to compile it through C++ it does not make any dso files though. Maybe i am not looking hard enough i guess.
#3
07/07/2008 (8:01 pm)
Quote:
When i try to compile it through C++ it does not make any dso files though.

What do you mean by 'compile through C++'? The .cs.dso files are made when you exec a .cs file from script.
#4
07/07/2008 (8:22 pm)
Well when i execute a cs file it does not make any dso files at all :(
#5
07/07/2008 (9:09 pm)
Well i have my problem fixed. I found the fix to make it work. Thank you guys!