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.
  • Sorry but I just had to make a new thread about this as It's just mind-boggling to me that I cant get it to work..

    It is possible to load an external file using the array object on iOS right? So far I've had no sucess and I've tried three methods so far:

    1. Add file to data elements - binary files, then load just using the filename.arr. This does not seem to work at all for me, tried different files, different file extensions, no luck. I've exported the whole project several times, the file does not seem to be included, but then it could be packed into "Application.cci" I guess?

    2. Adding the file to the project in Xcode, again then loading using just the filename.arr. Still does not work. I've tried placing it in different folders withing Xcode, but nothing works.

    3. Putting the file in a folder and adding the whole folder to Xcode, then loading the file using "folder\filename.arr". I can see the folder and file in Xcode so it seems to be placed correctly, but it just will not load.

    I feel there needs to be a good official description on how to achieve this, it should not be this much trouble should it? What am I missing? Help greatly appriciated!

  • This is how i do it on Android, and AFAIK its the exact same routine:

    1) Add file to data elements - binary files.
    Copy the whole path to the file:
    eg. "c:\users\SirEatAlot\array.arr"

    2) Event:
    start of frame:
    load file: "c:\users\SirEatAlot\array.arr"

    3)Build & Run.
    If it doesn't work, uninstall the app completely from your phone, then build & run.

    That should be all you need to do!
    note: copy the WHOLE path to the file, not just "filename.arr".

  • Last I tried if you include the array file as binary data and then load (without using any special paths, Fusion iOS runtime handles data directories automatically) it will work. Make sure you're correctly loading the data.. I don't think the file will show up anywhere if you include it as binary data so the only way to know if it's working is to test loading on the device.

    Check out my Game on Itch.io
    Please login to see this link.

  • Not to bring up a dead topic but there was no clear solution stated to either option. The above worked first time out of the box for me. Thanks Macca02!

    Please login to see this link.

  • The first option will not work if the file added to the binary files section was in a subfolder of the source MFA file. The subfolder path is then stored along with the file and is needed to load it. If that is the case then simply add the subfolder path when loading the file ("mysubfolder/filename.arr" instead of "filename.arr")

    If the file was NOT in a subfolder or same folder then we remove the entire subfolder part and you simply load the resource by name ("filename.arr" should work).

    If you are using windows file paths it will try work out a relative path to the resource. This should "just work" in most cases.

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

  • @Please login to see this link.

    Quote

    2) Event:
    start of frame:
    load file: "c:\users\SirEatAlot\array.arr"

    Where is this "load file" thingy? I can´t find it.


    ---------------------------
    So.. Does anyone have a MFA-file example where it works to read/load/use a binary file with android? That, would help.

    Best Regards // Daniel P

    Edited once, last by SMASHINGmedia (July 20, 2014 at 1:54 PM).

Participate now!

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