The Daily Click ::. Forums ::. Klik Coding Help ::. INI Help!! Urgent!!!
 

Post Reply  Post Oekaki 
 

Posted By Message

Wicked Studios



Registered
  25/10/2004
Points
  460
24th October, 2005 at 16:33:43 -

Sorry if this sounds like a stupid question but my MMF skills are a little rusty. I'm coding something for the Klik Academy Halloween Compo and I'm kinda running behind, been having a problem with INI. First, how do you set the file being used to the same directory as the game is in? Like I want the game to save in the same file as the .exe itself, and does it have to be the full program to do this? Second how do you load and save INI files in one command, instead of this:
Set File to 1 + Set Group to 1 + Set Value to 1 over and over? I get errors when I try to do the one step thing. Please help me out guys, I'd really appreciate it, since I can't really do a whole lot until this is finished and the compo ends saturday (I'm making a fairly large game). Thanks in advance!

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
24th October, 2005 at 16:55:26 -

Setting to your game directory:
appdrive$ + appdir$ + "Myini.ini"
The game doesn't need to be compiled, it will save the INI wherever the game is running from, even if it is the source running.

If you set the file, all commands from there will be in that file. Same goes with the Group. Ex. Set file to myini.ini, create group blah, create group blah2. Both groups will be created in myini.ini. Works the same for Items in a group.

Understand?

Image Edited by the Author.

 
thinking is like pong, it's easy, but you miss sometimes.

Wicked Studios



Registered
  25/10/2004
Points
  460
24th October, 2005 at 18:55:55 -

Thank you very much, this is just what i needed.

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."
   

Post Reply



 



Advertisement

Worth A Click