Autosave ?

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Autosave ?

Post by Juutis »

Hi,

I was just wondering if there's a way to autosave the game. I really wouldn't like my game to be one of those "Oh, so I died and my last save was three levels ago... " -games.

And if I want my pawns to save their states in level changes and save/load games do I have to use player attributes for all of them? Is there a way around this?

Aaaand...
SaveAttributes(char *FileName );

Saves the current player attributes to an ascii file of a specified name.
What does this mean, exactly? Yes... I know it saves the player attributes, but can it be used on something useful?
Pain is only psychological.
hike1
RF FAQ-Keeper
Posts: 607
Joined: Tue Jul 05, 2005 4:19 am
Contact:

Post by hike1 »

It writes an attributes.txt in my root Realityfactory directory, automatically I guess, don't remember asking for it.


1300
0
1300
healthpotion
2
0
50
manapotion
1
0
50
stamina
200
0
200
light
0
0
1
countdown
0
0
1
experience
0
0
99999
mana
420
0
500
armor
50
0
200
bullet
50
0
500
bolts
50
0
500
arrows
50
0
500
grenade
49
0
500
crossbow
0
0
1
axe
0
0
1
sword
0
0
1
bow
0
0
1
spellcast
0
0
1
grenadecast
1
0
1
bat
0
0
1
gold
50
0
1500
oxygen
300
0
300
Officekey
0
0
1
Officekeymap
0
0
1
Jailkey
0
0
1
Mazemap
0
0
1
lockpick
0
0
1
cat
0
0
1
help
1
1
1
labyrinthne
0
0
1
labyrinthsw
0
0
1
labyrinthmid
0
0
1
HealthPack
2
0
9
Liftbelt
1
0
1
Mines
10
0
10
CurrentMine
0
0
10
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Yeah... but can that be used later in the game somehow or is it just a sort of debug thingie? Is there any way to read attributes from a .txt file?
Pain is only psychological.
Post Reply