Stupid ini's going haywire
This is ini --> [color:#009900]INI[/color]
This is player --> [color:#3333FF]Player[/color]
This is Dynamite --> [color:#CC0000]Dynamite[/color]
[color:#009900]INI[/color] sets Value 20 to item "xpos" in group "slot1"
[color:#009900]INI[/color] sets Value 50 to item "ypos" in group "slot1"
[color:#3333FF]
Player[/color] sets X possition to item "xpos" of ini
[color:#3333FF]Player[/color] sets Y possition to item "ypos" of ini
[color:#009900]
INI[/color] stuffs up and sets [color:#3333FF]Player[/color]'s possition to 0,0
[color:#CC0000]
Dynamite[/color] checks e:/game/savegame.ini and the xpos says 20 and the ypos says 50.
What does [color:#009900]Player[/color] go to 0,0 instead of 20,50?
Re: Stupid ini's going haywire
Have you set the INI's group to "slot1" before you attempt to read the items from it?
Re: Stupid ini's going haywire
yes, It sets the item "xpos" and "ypos" into the value in the frame before it sets its positions.
Re: Stupid ini's going haywire
Woops, I had to set the file. It's fixed now :)