The Daily Click ::. Forums ::. Misc Chat ::. Data saved inside...
 

Post Reply  Post Oekaki 
 

Posted By Message

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
23rd July, 2003 at 15:10:55 -

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... : |

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

Joshtek

Administrator
The Archivist

Registered
  02/01/2002
Points
  3841

Game of the Week WinnerHas Donated, Thank You!Mr BallPicture Me This Round 50 Winner!
23rd July, 2003 at 16:43:03 -

INI, I guess, but Array and Edit object and List can also do it

 
:: Joshtek ::


Oreos? GO! OREOS!

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
23rd July, 2003 at 16:45:07 -

You can't save data inside the exe

 
"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

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
23rd July, 2003 at 17:03:59 -

File object can let you append text or even other files to the exe, but getting them back again is a bit of a bother.

 
191 / 9999 * 7 + 191 * 7

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
23rd July, 2003 at 19:25:47 -

Zyx has enlightend me on that you can use a highscore table (hidden) to save values internally... Very handy.

Dim'... I had an idea for an extention and my thoughts went poof.


 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
24th July, 2003 at 05:20:03 -

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.

 
191 / 9999 * 7 + 191 * 7

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
24th July, 2003 at 11:39:28 -

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.

 
n/a

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
24th July, 2003 at 12:56:53 -

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?

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
24th July, 2003 at 13:00:53 -

The hard way, is to convert all the movies into
active objects with one large animation.

The easy way is just, to make paths relative and store it
in the same folder as the game is.

You can use the reg object, to 'hide' your values.
Altough it's not any better than using ini-objects or
something like them.

 
Image jenswa.neocities.org

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
24th July, 2003 at 13:04:58 -

i go try these, otherwise active object it is.

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Kramy



Registered
  08/06/2002
Points
  1888
24th July, 2003 at 21:14:14 -

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.

 
Kramy

Kramy



Registered
  08/06/2002
Points
  1888
24th July, 2003 at 21:16:56 -

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.

 
Kramy

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
26th July, 2003 at 09:03:49 -

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:

"Bernard.txt"

No location or anything, just the filename.

 
191 / 9999 * 7 + 191 * 7

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
26th July, 2003 at 09:41:55 -

kramy, i do that for DMC2 and i did it with the movie and it didn' t work

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Kramy



Registered
  08/06/2002
Points
  1888
26th July, 2003 at 11:02:24 -

Oh well, I didn't know if it would, it was just a suggestion.

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click