INI not saving on ios device

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.
  • So I didn't run into this problem at all with my first game. But this time around I've got an ini with more variables in it. Not sure if that is causing the problem, but here's the issue.

    When the player completes a stage that stage's item value in the INI is set to 1.
    On the stage select screen, that stage's icon calls on that item value and sets it to one of it's alterable values. If set to 1 the stage shows "complete".

    The problem I'm having is that sometimes it doesn't seem to be writing the ini at the end of the level. I get back to the stage select and it's still showing up as incomplete. If I play the level several more times, it will eventually show up as cleared. There seems to be no rhyme or reason to why it works sometimes, and doesn't other times.

    I've now set it to change the ini in multiple situations. First, when the player passes the goal post, it sets the ini value to 1. Then, in the event that triggers the fade out, I've duplicated the action. I still run into the problem.

  • The INI object reloads the INI file when a frame changes.
    We had no bugs in the ini object since a lot of time. Are you sure the saving actions are called every time?

    Francois
    PM: Please login to see this link.

  • Are you asking if it's possible that it's not READING the ini, as opposed to not WRITING?

    It's possible, but the thing is, all the previously cleared stages always show up as cleared. Meaning, if it's been cleared once, I don't have the problem again. Which suggests that it's not an error in reading from the ini, but writing it. On the stage select screen, it is an ALWAYS event that sets the value to that of the ini, so I'm pretty sure it would grab it eventually. Here is an image of what I'm doing:

    Please login to see this picture.

    I am about to go in and throw some fastloops on to see if that remedies the problem.

  • Ok, this has gotten very strange.

    I added a counter in each stage so that I could visually see what is happening. The counter is "Always" set to the value of that stage's ini value.

    When you pass the check point (Player X is greater than X of checkpoint) the ini value is changed to 1. As shown above.

    The counter then changes to show me that the ini is in fact working. So as soon as he passes that checkpoint, the counter changes to a "1".

    HOWEVER:

    If I die in the stage, the frame is restarted (I use a Jump to frame command, not restart frame, but it jumps to the same frame)

    Once the stage restarts, I notice that the Counter is now reading a "1".

    Huh?

    Now if I complete the stage, it will not count it.

    If I exit the stage (back to the map screen) and re-enter, the counter is back to 0. If I complete the stage without dying, everything works fine.

    My first thought is that since the player object is destroyed when you die, the "Player X is greater than Checkpoint X" command is screwing up, but that doesn't make sense to me since the counter doesn't change until the frame restarts. Also, this is happening on the boss stages as well, which don't change the ini based on your position, it changes once the boss is destroyed.

    The other strange thing, is that since the counter is reading 1 once the stage restarts, doesn't that mean the ini value is 1? If that's the case, exiting back to the map screen should show that the level has been completed, but that's not happening.

    And of course there is the fact that this is only happening on the actual device, not when testing on PC.

  • I should also note that there is another ini value that is saved in the stages. Each stage has a "Gold gem". When the player collides with it, the gem is destroyed, and in value "this level's gem" is set to "1". The same problem occurs if you die, and then get the gem. It does not count it as collected. You have to get it without allowing the frame to restart.

  • There is a bug in the 'Restart frame' action and if you jump to the same frame.
    Some people have been working around this problem by first jumping to a blank frame and then back to the frame.

    The bug prevents strings from working the way they are supposed to and this indirectly affects the INI object.

    We are still working on this.

    Please login to see this picture. Please login to see this link. - Please login to see this picture.

Participate now!

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