Saving an array that was loaded in from binary data

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.
  • Hey all!

    I have a possibly noob question, so apologies in advance!

    I am making a mining game with a grid-based map. Think Minecraft or Terraria but top-down. For this I use an array, which loads in a .arr file that is included in the binary data. This file's path is "D:\Projects\Mini Miner\Maps".
    On an Android device I can load the file just fine, resulting in a map full of objects. However when I try to "Save array to file" using the same path it freezes the game, perhaps logically so.

    Any tips on how I can ship the game with an array/map, with a way to save changes back to it?

    Thank a ton in advance!

    - Wouter

  • You cannot save to a binary
    Binary is included with your package, it cannot be saved as again as a binary file, only loaded

    If you want to save it, then you have to save it in a different location, then load from that location (also, the path you enter is a windows specific path)
    You can have it load from binary for first time, then after first save, it will load from the new location

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

Participate now!

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