The Daily Click ::. Forums ::. Klik Coding Help ::. [.ini] Can save but not retrieve....
 

Post Reply  Post Oekaki 
 

Posted By Message

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
26th July, 2003 at 19:20:10 -

In Tgf, i've managed to save a pile of stats to an .ini, problem free.
I've saved the values of a lot of counters into the .ini file, but how do i set the counters to the values stored in the .ini so i can make a "load game" function ?

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
26th July, 2003 at 19:28:56 -

Did you save them in a group? If not, then I suggest setting that first.

Then you simply use the Set Value function under the counter and click Retrieve Data From Object. From the list of objects, select the INI then Get Value.

BTW before you retrieve data in TGF you need to set the Group and Item (it cant be done from within the Get Value function like it can in MMF).

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
26th July, 2003 at 19:52:18 -

ah, thank you

 
n/a

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
26th July, 2003 at 20:16:08 -

then, can you tell me how to make a normal textstring display a text following by a string from an ini ?

i've made it so the txt object uses
Set Alterable String to >

"Loading" + string of$( "Ini" )

That just displays "Loading". But if i just use

strinf of$( "Ini" )

then the string from the ini is put in the text

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
26th July, 2003 at 22:39:37 -

That should work, I've done it before. Just make sure you've set the group and ini before you try and load the string. If you cant get it to work send me an example and I'll have a look.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Kramy



Registered
  08/06/2002
Points
  1888
27th July, 2003 at 12:44:30 -

When the character you're playing picks a name, have it save the name as a string in a group.
(for example, group [player stats] item name=name here )

Then when you load the game have it take that name and change the alterable string of a text object.
(for example, change alterable string to "Loading " + string of$( "Ini" ) + "'s saved game."
To getassuming bob is the char's name)
Loading bob's saved game.

 
Kramy

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
28th July, 2003 at 06:02:51 -

Kramy: I already mentioned that twice

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Kramy



Registered
  08/06/2002
Points
  1888
28th July, 2003 at 15:34:27 -

*shrugs* I use examples to explain things.

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click