INI and INI++ workaround needed

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.
  • I'm currently using the INI++ in my game, but it doesn't support Unicode, which I need. So I have to rip it out and replace it with the regular INI object.

    This brings me problems. With INI++ that stores the data in the object, so I can decrypt the file, load it, encrypt the file, then continually refer to the data stored in the object throughout the gameplay.

    With the regular INI, it doesn't store the data (I believe?), so I'd have to continually decrypt/encrypt every single call (which would be overkill since I refer to the data 100s of times).

    Is there any workaround to this? Like instead of encryption I could just use plain text and the regular INI, then I'd need some object that gets an md5 or hash of an entire file to verify it's not been altered. I've seen the QuickHash one but not sure if it works on files?

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

    Edited 3 times, last by Panchos (December 24, 2014 at 1:23 AM).

  • I hit the same wall and the amount of work was too much so I gave up translations.
    Though if you are the guy behind "The Escapists" from what I can tell it has been a huge success, so I really, really hope you can figure a way around! Good luck! :)

    Currently working on Please login to see this link.
    Released games: Please login to see this link. and Please login to see this link.

  • Arrays should work, they support Unicode, and they are fairly unreadable. However, it would require making some sort of save file converter (whether automatically done on launch of the game or manually activated by the user), though that shouldn't be too hard to do, it's basically just taking the data from the INI file and stuffing it into the Array, and then saving the Array to wherever it's supposed to save it to. :)

    My Please login to see this link. (which I actually use), my Please login to see this link. (which I mostly don't use), and my Please login to see this link. (which I don't use anymore pretty much at all really). If there are awards for "'highest number of long forum posts", then I'd have probably won at least 1 by now. XD

  • Binary Array may be suitable, I haven't looked into this object yet, it's next on my to-do list. But I had a lot of success with the regular binary object and unicode. I was just handling compression, not actual variables, but I assume the array functions will allow you to treat it like a table of variables.

    Please login to see this link.

Participate now!

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