Game Development Community

Compiling things to starter.fps

by Tony Nguyen · in Torque Game Engine · 01/22/2006 (4:09 pm) · 1 replies

How do I compile things to starter.fps?
i searched couldnt find a thing related

and i wanted to add:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5286
Mysql DB, SQLite

and if anyone ever did it How am i supposed to do with:
Quote:ConsoleMethod (MySQL, GetRowCellDirect, const char*, 4, 4, "MySQL.GetRowCellDirect (ResultID, FieldNr)")
{
MySQL* pThis= dynamic_cast (object);

return pThis->GetRowCell (atoi (argv[2]), atoi (argv[3]));
}

ConsoleMethod (MySQL, GetRowCell, const char*, 4, 4, "MySQL.GetRowCell (ResultID, FieldName)")
{
MySQL* pThis= dynamic_cast (object);

return pThis->GetRowCell (atoi (argv[2]), argv[3]);
}

ConsoleMethod (MySQL, NumFields, S32, 2, 2, "MySQL.NumFields()")
{
MySQL* pThis= dynamic_cast (object);

return pThis->NumFields();
}

ConsoleMethod (MySQL, GetFieldName, const char*, 4, 4, "MySQL.GetFieldName (ResultID, FieldIndex)")
{
MySQL* pThis= dynamic_cast (object);

return pThis->GetFieldName (atoi (argv[2]), atoi (argv[3]));{

#1
01/22/2006 (8:14 pm)
Keep in mind that there are two aspects of Torque development: TorqueScript, and source code.

To add in that resource, you need to modify source code, using a c++ compiler for the platform you are using (windows I am assuming). There are dozens of threads regarding various compilers that can be used. Once you've successfully added the resource and compiled, it generates a new executable that you use.

Which brings you to scripting: starter.fps is simply a mod that contains script "adjustments" that control game flow, etc. while running your executable. You'll want to (once you've finished the step above) use the script commands (which are implemented by the ConsoleMethods you list to expose the functionality to TorqueScript) to accomplish the various roles.

Small suggestion: I've been somewhat monitoring your questions as you have begun to use the forums, and it seems as if you've just recently started using Torque...you have currently selected one of the harder aspects of Torque development to "get started" with. It may help you out in the long run to take things a bit more slowly, and experiment more strictly with script and script resources/tutorials to get a better understanding of Torque basics before you move on to implementing database persistence/login management, which can be quite a complex task.