Can't loading .ini/.txt from Binary files

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, is there any way I can load .txt or .ini files from binaries to INI? I have a project that uses +50 .ini files and I need this feature, otherwise players will be able to change game data.
    I tried to load .ini and .txt from binaries, but it didn't work.
    I also heard that binaries don't work if you load them on C drive and the player plays from D drive. Is that true?

  • INI files can be embedded with Data Elements. You then extract them with System object (first one in event editor), then pass the original path to Bin Temp File Name expression to get the extracted path, which will be in Windows Temp folder. You can then load that in INI.
    However, it will be read-only, you can't re-embed the file into Data Elements after modifying it. So, you should copy them to App Data, using File Object expression to get the app data path, and open it there, where it will be kept.

    Binaries do work if you load from a different drive. However, you'll need access permissions, obviously - what some people miss is they write to the C:\ root folder, or C:\Program Files, which are admin-write-only, and so normal programs running with user (not admin) permission level can't access them. Which is why installers request admin permission to run, so they can write to Program Files. Application settings and modifiable data is then saved to somewhere in app data folder.

    But no, there is no limit on what drive you can use from where.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Hello, I tried your method by extracting files from binaries, but it doesn't work. Well, it works, but only on my PC (I made an .exe, deleted all .ini files and ran the game). Could the problem be that I leave the names of the binaries with their paths in Explorer?

    (1 event - extracting a binary file. 2 event - setting the ini file to BinFileTempName$)

    Please login to see this attachment.Please login to see this attachment.

  • This is correct order of events. Looks OK. Also check INI Object properties - it may override path to App Data.
    Also check this is enabled:

    Please login to see this attachment.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Well, that should be everything. Why not check the binary temp file is created at that temp path? It's either the creating or the loading that's failing.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

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