Allowable .cs files in release
by Robert Serocki · in Torque Game Builder · 04/08/2006 (11:27 am) · 5 replies
Hi.
I've read that main.cs is the only .cs file that's allowed, but whenever I test my game, a prefs.cs gets generated.
I commented out an export line in main.cs but the prefs file is generated regardless. I grepped for other instances of prefs.cs that might be causing the file to be generated, but either I wasn't thorough enough, or it wasn't mentioned anywhere else.
So... my question is, is it okay that the prefs.cs file gets generated when a t2d game is played by John Q. Public? If not, how do I get this not to be generated?
-thanks in advance
I've read that main.cs is the only .cs file that's allowed, but whenever I test my game, a prefs.cs gets generated.
I commented out an export line in main.cs but the prefs file is generated regardless. I grepped for other instances of prefs.cs that might be causing the file to be generated, but either I wasn't thorough enough, or it wasn't mentioned anywhere else.
So... my question is, is it okay that the prefs.cs file gets generated when a t2d game is played by John Q. Public? If not, how do I get this not to be generated?
-thanks in advance
#2
04/09/2006 (5:31 am)
The prefs.cs is "allowable", but not a good idea to deliver--it will contain specific (and in some cases, possibly personal, if for example you've implemented a password checking option for your game, and save the password off in the prefs) information for you and your computer.
#3
04/09/2006 (11:29 pm)
Any .cs file can be a security threat, even main.cs. Someone can write their own code there and then schedule() it. I'm not sure what malicious code they could write but I'd rather not give them the opportunity. Of course, they will have to know the language to do that.
#4
04/10/2006 (1:17 am)
Hmm isn't prefs.cs autogenerated on startup to allow the options dialog at all?
#5
@Joe: Absolutely true, but there is a difference IMO between people actively hacking into your code/scripts, and you handing them personal information in a prefs.cs file generated for YOUR development computer!
04/10/2006 (8:15 am)
@Marc: Correct....prefs.cs (as well as a few others) will be loaded if present, but will be written over during game exit (and possibly a few other scenarios as well).@Joe: Absolutely true, but there is a difference IMO between people actively hacking into your code/scripts, and you handing them personal information in a prefs.cs file generated for YOUR development computer!
Torque Owner Jason Cahill
Default Studio Name