Hello again,
I'm unfortunately having trouble loading another aspect of my game after saving: Array indices. I may need another pair of eyes to spot what I'm doing wrong.
I have six arrays in the frame to load, but I just want to focus on the first one for this post.
Here's my code for saving the array indices in order:
Please login to see this attachment.
Please login to see this attachment.
Please login to see this attachment.
This produces a plain text save file as shown in this example:
Please login to see this attachment.
However when I try to load the Arrays at the saved indices with the code below:
Please login to see this attachment.
Please login to see this attachment.
The Array is loaded in at the default values of X=1, and Y= 0: (I've tested this and verified it is indeed the default values, and not that it's being forced to be 1 and 0 from some other event)
Please login to see this attachment.
I've heard that this means there isn't any data in the Ini object, but as far as I'm aware the code I have loads in the correct file which has the data that's supposed to be loading in, so why is this happening?