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."
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?
Edited by the Author.
thinking is like pong, it's easy, but you miss sometimes.
"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."