Can't read INI files...
Posted 02 September 2010 - 04:43 PM
I'm not sure if this is a bug, or a "feature" and was wondering if I was doing something wrong, or if others have run into this too. When I create a simple INI file for reading in notepad, I seem to be unable to read it in game maker (it seems to open the INI file, I just get the default value assigned to the variable I'm assigning the value from the key to).
I noticed that if I write the INI file with game maker, then I can read the INI file. I can even modify the game maker created INI and have it continue to work. I am not at the computer I have it on right now, but my next step was to open up both in a hex editor and see if Game Maker adds anything specific to the file header that it may be looking for when opening.
Has anyone else run into this issue? If so, has anyone figured out what causes it?
p.s. I am making a level creator in GM, so it's not really an issue I need help solving as it's irrelevant to my game, just a PITA to figure out why it was happening and I'm wondering if others have experienced it, and in the future if there's something I can add to the file header to not run into this.
Posted 02 September 2010 - 05:04 PM
Posted 02 September 2010 - 05:17 PM
I then deleted my INI file, used the GM functions to write the INI file with the exact same section, key and value, then on next run commented it out and the default value was no longer being returned. I was able to replicate that behavior on both the Mac and Windows versions of GM.
Posted 02 September 2010 - 06:46 PM
Posted 02 September 2010 - 07:34 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users