The Daily Click ::. Forums ::. Klik Coding Help ::. ini question
 

Post Reply  Post Oekaki 
 

Posted By Message

tetsuya_shino



Registered
  12/08/2004
Points
  491
20th December, 2008 at 11:39:22 -

Greeting. I know I might sound kinda silly asking an ini question, but it's been a while since I used one. My question is how do I save or load more then one value in one command? I want to save and load 16 values. i can get it to work fine if I just load one, but if I try to read or write more then one, it just gives the same value to all the counters. Thanks for any help.

 
n/a

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
20th December, 2008 at 12:02:18 -

* Start of frame
= INI : set value (item)

Thats it. Write the item name e.g "shotgunAmmo", and give it a number, probably wise to assign it to your shotgun ammo counter from the game. If you want to add more data to your INI, keep adding these events with different item names.

You might want to assign the INI to your game folder like this
* Start of frame
= set current file : Appdrive$+Appdir$+"Save.ini"
now the save file will appear in your game folder.

To load do this in your load frame
First set the INI file like you did before, like this.
* Start of frame
= set current file : Appdrive$+Appdir$+"Save.ini"

Then set your in game values (e.g shotGunAmmo) like this
* Start of frame
= Set shotgunammo to ItemValue( "Ini", "shotGunAmmo")


Edited by Willy C

 
http://www.robocaptain.com

tetsuya_shino



Registered
  12/08/2004
Points
  491
20th December, 2008 at 12:26:45 -

Thanks for the quick reply. But there is a small problem. tgf will save the correct vaules on the ini, but when try to load them, the numbers loaded aren't the same as the ones saved to the ini.

 
n/a

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
20th December, 2008 at 12:27:46 -

Hum. TGF... it's been a while.
Can you upload you file so we can have a look?

Edited by Willy C

 
http://www.robocaptain.com

tetsuya_shino



Registered
  12/08/2004
Points
  491
20th December, 2008 at 13:28:25 -

edit - I got it working now, thanks.

Edited by tetsuya_shino

 
n/a
   

Post Reply



 



Advertisement

Worth A Click