Action Map question.
by Chris "Dark" Evans · in Torque Game Engine · 12/20/2001 (8:10 pm) · 1 replies
In actionMap.cc, under actionMap::DumpActionMap there's an else statement with a comment that says:
Why does it say not to change the following line? I had to comment it out to make my game secure. What's it for?
It doesn't appear to do anything, I can't find anything that looks for it, or verifies it. I'm just wondering if I will have any side-effects.
I'm only distributing the dso's with my game. I don't want people to have access to the console, or anything else that has to do with the scripting engine. By manually reading the action map file, and the prefs.cs files I'll make sure there isn't any third-party code in there (since they get executed like any other script and can have just as much power over the game). I wanted to get rid of that comment to make it easier. So far it works fine.
Dark
...
else
{
// IMPORTANT -- do NOT change the following line, it identifies the file as an input map file
dStrcpy( lineBuffer, "// V12 Input Map File\n" );
iostrm.write( dStrlen( lineBuffer ), lineBuffer );
}
...Why does it say not to change the following line? I had to comment it out to make my game secure. What's it for?
It doesn't appear to do anything, I can't find anything that looks for it, or verifies it. I'm just wondering if I will have any side-effects.
I'm only distributing the dso's with my game. I don't want people to have access to the console, or anything else that has to do with the scripting engine. By manually reading the action map file, and the prefs.cs files I'll make sure there isn't any third-party code in there (since they get executed like any other script and can have just as much power over the game). I wanted to get rid of that comment to make it easier. So far it works fine.
Dark
Torque Owner Tim Gift