The Daily Click ::. Forums ::. Klik Coding Help ::. Multi INI values (looong) )
 

Post Reply  Post Oekaki 
 

Posted By Message

ClownLove



Registered
  04/03/2003
Points
  84
15th June, 2003 at 02:23:29 -

Hey peoples!

I'm working on a rather... big project, and i've encountered a problem. You see, there's about almost 50 values (and counters) during the game, each is somehow interlinked with each other. (I haven't experimented with the problem, as i've been away from my comp' When the user goes to 'save', how can I save all the values, each under their own identification (like name) so they may be individually loaded. (So basically, a easier way to do this, and if this idea would work) Here is an idea that i had, but it probably is flawed. Heres an eg:

-Set group "resources"
-Set item "grain"
-Set value to Counter<grain>
-Set item "timber"
-Set Value to Counter<timber>
... (and so it repeats for 50 more times )

As you can guess,this is a very long time consuming idea, and it probably doesn't work anyways. I have comptimplated using the loop object, (I've never used it before and am unsure if it will suit this problem)

Sorry if it's hard to understand, but if anyone has trouble, I'll make it a lil easier .


Thanks for your time

 
punk & disorderly

ClownLove



Registered
  04/03/2003
Points
  84
15th June, 2003 at 02:26:48 -

Oh BTW, I've only got access to the internet for the rest of tonight (Its 5:25), so if anyone could quickly reply, that would be damn awesome

 
punk & disorderly

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
15th June, 2003 at 02:30:43 -

So do u want a faster way of doing that? instead of doing it 50 times?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ClownLove



Registered
  04/03/2003
Points
  84
15th June, 2003 at 02:33:44 -

Yeah, thats it

 
punk & disorderly

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
15th June, 2003 at 02:41:52 -

I take it you're using TGF and INI, right? Get the INI+ object, it can do stuff like "Set Value of item 'grain' in group 'Resources' to 3" for example, as well as the usual INI stuff.

The MMF INI can do all this anyway.

 
gone fishin'

ClownLove



Registered
  04/03/2003
Points
  84
15th June, 2003 at 02:42:48 -

its MMF actually, but i cant test anything out, also, the damn friggin thing don't work either :@ :@ :@

 
punk & disorderly

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
15th June, 2003 at 02:46:20 -

Perhaps it's 1.5 only or something. It's http://membres.lycos.fr/virtuaart/MMfusionGfactory/iniplus.zip if you need it, though

 
gone fishin'

ClownLove



Registered
  04/03/2003
Points
  84
15th June, 2003 at 02:47:24 -

Ahh, thanks Shen. After thinkign about that, that will work...
So, it would go a little like this -

Wait... But i'd first have to create "Grain" and all those items in the .ini file first before i can save those values... But, I spose that wouldn't take too long...

Thanks anyways dude

 
punk & disorderly

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
15th June, 2003 at 02:50:46 -

It works just like an INI file, it makes the groups and items for you

 
gone fishin'

ClownLove



Registered
  04/03/2003
Points
  84
15th June, 2003 at 02:52:43 -

Okay then, I'll have to get MMF working and try it. Thanks alot man, should save alot of time so i can discover more harder problems

Thanks

 
punk & disorderly

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
15th June, 2003 at 05:11:12 -

ARGH! One of you get a differant avatar! It's driving me insane

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click