Help needed with INI++ 1.5!

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.
  • Hi all. I'm trying to test out the INI++ 1.5 (latest version - January 2017) and have noticed that the help .html seems to correspond to an older version. I can get it to work when loading an object positions+values when in the game and can see it writing to the file I've set in the game folder, but it just won't load. I can't tell if I'm just doing something wrong when loading the file or not... I can't seem to find any examples where a file is saved and then loaded and the options presents when loading\saving\etc a file action is created is a bit confusing.

    It can't be permissions in Windows 10 as I can see it writing to the file.

    Can anyone help?

  • So I gave up on the INI++ object, thinking it either has an issue or I just don't know how to use it - so I used the Array Object instead and had the same issue... I saw it write my .arr file but then would refuse to load it.

    Then I realised, this isn't the days of Windows XP anymore - I'm using Windows 10 and I'm saving my file lazily to the game's folder - which is definitely not how I would want it in my final product anyway as this is definitely not a good practice. I then saved my array to C:\ProgramData\Test and it worked.

    Therefore, I think it was actually permissions after all. So there's a chance I can go back to using INI++ and it will read and write the file correctly. My issue now is deciding where to have my game save it's files - what is the best practice for this? As I want my game to work on all Windows platforms from, ideally, Windows 7 and upwards at least. Is it possible to use %appdata% in my file path?

  • You are correct it is permissions.

    Windows has a set of different directors (folders) defined on where to save your data and programs depending on what you are trying to do. For example what if a computer is used by more than one person and they each have an "account" on the same computer. Where you save your data will either allow both users to have access to the data OR only one.

    You need to google and read up on the Microsoft standards in this regard.

  • Hi guys - where do you guys all save files? I can save a file if it's to a "hard coded" path - for example, C:\ProgramData\Test\ but this is not really correct. I'm trying to make it save into the user's local profile - but I can't get things like %APPDATA% to work. What does everyone do nowadays for save game paths?

  • OK guys - can anybody help me here. No matter where I save to, using the File object to locate the Users\[username]\appdata folder, a folder I would expect the current user to have full access to, I can get the .ini to write but as soon as I close my application the file is wiped. If I manually set the .ini path to C:\ProgramData\[game folder] it all works. I'm at a loss! This is on Windows 10. Any ideas?

Participate now!

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