Is it possible to have a text file with certains parameters?
by Corin · in Torque Game Engine · 01/15/2005 (7:25 am) · 4 replies
About the author
#2
01/15/2005 (3:33 pm)
Is it too hard for people to edit a script file directly? (Not appropriate for all situations, but for things like level editing it can work well.)
#3
Anyway, your call on what works best. Best of luck!
01/18/2005 (12:34 am)
You could give him a script file that just has the variables he needs to edit, ie, $value1 = "blah"; $value2 = "blah"; $value3 = 1214;
Anyway, your call on what works best. Best of luck!
#4
You can also use XML, as there's some resources to do that. I'm always a fan of the simple solutions, though.
01/18/2005 (10:41 pm)
Sure, just write some script to asssign the values, eh?You can also use XML, as there's some resources to do that. I'm always a fan of the simple solutions, though.
Torque Owner Eric Lavigne
bool FileObject::openForRead ( string filename )
bool FileObject::openForWrite ( string filename )
bool FileObject::openForAppend ( string filename ) bool FileObject::isEOF ( )
Are we at the end of the file?
string FileObject::readLine ( )
Read a line from the file.
void FileObject::writeLine ( string text )
Write a line to the file, if it was opened for writing.
void FileObject::close ( )
Close the file.