Save and Load from INI++ has gone wrong out of nowhere!

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.
  • Help! For no reason at all this method of saving has screwed up. The method of logging global values to INI++ has just stopped working. I had this sorted last year and now I've come to sort it into a new engine I've made, it's just not working any more. Having spent the last few hours driving myself nuts, I'm wondering if there's been any updates which made this break or something.

    Start of frame = Apppath$ + "data\Saved.ini"

    Then for Manual Saving:
    Set Group "SaveStats"
    Set Item " HPVal" in group "SaveStats" to value HPVal (Setting=0)

    When you press load game:
    Set Group "SaveStats"
    Set GlobalValueA to GetItemValue( "Ini++ v1.5 Object", "SaveStats", " HPVal", HPVal )

    Can somebody help please. I hate having to keep going back to fix things that were fine it keep dragging me back and slowing me down.

    *I'm using the INI++ because of the bugs in the 1.5 version I was told about last year.

    I make Odd cartoons, talk shows and hopefully in the future, some decent games ;)

  • Its working for me.
    Are you sure you also have an event for "Save ini file"?
    Secondly, do you try to run this from Fusion or from an exported file? Remember that Apppath$ is the location to the app. If you run this as a test in Fusion, I am not sure if there will even be an Apppath. Try export it, and run.

    Ill upload my project to you, so you can try if mine works. Export it to your desktop, and run the exe.

    Please login to see this attachment.

  • Cheers, Kentronisk. I've just got it to save by altering the save.ini event and inputting the apppath at the beginning of the frame, outside of the load/save event groups. Now I'm just trying to make it load.

    I make Odd cartoons, talk shows and hopefully in the future, some decent games ;)

  • Right, it's just the sodding load code now. I can't see what's wrong with it.
    So as a tester, I have the starting options save when you you set them up and start a new game. This works. SFX/Music/Atmos/Vocals volume levels save to global values and to the ini++.
    Then it comes to loading.
    I tried starting frame with the Apppath load, then Set group, then the above code
    ***Set HPVal to GetItemValue( "Ini++ v1.5 Object", "SaveStats", " HPVal", HPVal )
    What am I missing? I restart the game, go to title screen and the options are set to defaults, but the INI file is still the saved game, so it's not calling the INI?

    I make Odd cartoons, talk shows and hopefully in the future, some decent games ;)

  • EDIT: SOLVED***


    Sorry, there was a piece of rogue code in my global events and a save position code which had gotten mixed up with the INI save and that was causing the error. After a little fiddling on each seperate frame it started to work again. I had a massive crash out at the beginning of the years and pretty much lost most of my game work so catching back up has been a ball ache. Thanks for your help, you put me on the right path.

    I make Odd cartoons, talk shows and hopefully in the future, some decent games ;)

    Edited once, last by MaynardStaly (November 24, 2015 at 12:21 AM).

Participate now!

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