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:
Oh well, I didn't know if it would, it was just a suggestion.
Kramy
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
27th July, 2003 at 02:09:20 -
Spiderhead - Loading movies externally is as easy as loading a song with dmc2. You use the exact same code as you do for music in the same folder: Appdrive$ + Appdir$ +"movie.mpeg."
You can save inside the exe - it has been done - but it's tricky to fiddle around with and might be detected as a virus. So it's not worth it.
IE stats are saved someplace else.