Saved Array Indices are not loading in even with correct data? [Fixed]

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 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?

  • I have isolated the relevant objects and events into a single frame and the problem still persists, below is my game save code from start to finish, where I am trying to load the Array Indices:

    Please login to see this attachment.

    Something is wrong with this code and I don't know what. The default values for the GetItemValue function are loaded in, which should indicate the absence of data in the ini file, but as shown below, the ini file is loaded in via the debugger:

    Please login to see this attachment.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!