The Daily Click ::. Forums ::. Klik Coding Help ::. Acessing part of an array from a savefile
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
26th October, 2008 at 22:34:31 -

Hi, I had a quick question concerning multiple save files. You know how in some games when you go to continue, you'll have to choose between one of three files to play on? And you know how most times those savefiles might have information about that file displayed there like total time played, gold pieces earned, character level and etc?

I want to do something like that. My savefiles are all arrays, which concerns me because I don't want to just go and open up all 3 saves and get the information that way since with MMF1.5 having 2 big arrays open at the same time would sometimes mysteriously swap variables for no reason other than to screw with me. Would it be possible to, on the start of the frame, get some specific parts of those arrays without opening the whole things? Like say if the first array slot was for character level I could get just that first spot and then display "Save File 1, Character Level: 15" or something like that?

Any help would be great, thank you!

EDIT: *Accessing, that is.

Image Edited by the Author.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
27th October, 2008 at 14:34:45 -

Aw, nevermind you can't. I figured out another way to do this but you do have to load the whole files in the end. Thanks anyhow.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
27th October, 2008 at 14:42:37 -

You could also make a short INI file whenever you save a game that contains preview information. Like this
[Save1]

level=15

[Save2]
level=8

This doesn't affect the actual save file, but is useful for shorter loading times in the Load Game screen.

 
a/n
   

Post Reply



 



Advertisement

Worth A Click