For tgf (and mmf) What is the extention that allows you to save data (IE stats and such) Inside of the program... I know there is one... but i dont know were it is... : |
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Actually, the hiscore object saves its values to c:\windows\gfscore.ini (cncscore.ini for MMF/CNC). Not sure if it does this at runtime though, or after the app is closed.
Hi-score is no better than INI. Use Binary object to save data, encrypt the data, and save it so you have security. You can save data to the end of the EXE using the File object but it's more trouble than it's worth.
taking about storing data inside does any1 know how to store a MPEG or AVI movie inside a game? because i have problems trying to locate the movie when outside (its not as easy as DMC2 locating). Any1 know answer?
You probably already know this, but using .\ looks in the same directory is the exe file. I use(for example) .\saves\[player name].dat or .\players\[player name].sav for the locations of saving games.
Oh, just realized I didn't describe that well.....well, if you install the movie files with a game(assuming you're not making a movie player) you could use .\cinematics\[cinematic name].mpeg to load movies.
I usually use the ini though because I've never done anything related to playing movies, just lots with saved games.
In MMF, you can create a project and get that to build external files into the exe. But these cannot be changed later, so they only work for videos, music, etc. To refer to a file built into the app, simply type its name into the expression editor.
Eg: If I build the app with a txt file called 'Bernard.txt' in it, I can retrieve it by typing the following into the 'open file' action of the edit object: