• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Problem Reading ini Files

T

TheTrophieStars

Guest
I'm working on a dialogue system and I am having trouble getting game maker to read my ini file.

Code:
ini_open("Dialogue.ini");
iniPage = 0;

while(ini_read_string(string_lower(myName), string(iniPage), "-451") != "-451")
{
    myText[iniPage] = ini_read_string(string_lower(myName), string(iniPage), "-451");
    show_debug_message(myText[iniPage]);
    iniPage++;
    
}
ini_close();
This should flip through a section of my ini file (which is ordered like an array) to assign the text there to an actual array. I can't figure out why this isn't working properly.
 
T

TheTrophieStars

Guest
I think my issue is that I don't understand how to include files into my project. It has something to with the "working directory" but I don't fully understand what that is.
 
Top