User Tag List

Results 1 to 10 of 10

Thread: Default Array \ Binary Data

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Question Default Array \ Binary Data

    This has probably been asked before both by me and others, but i couldn't find relevant information using search.

    My two main projects are using an external array file to store huge lists with gamedata.

    The array file is included as Binary Data under Data Elements. And it works great when i export to .exe or as a flash .swf application.
    But it does not work when i export to IOS.
    Is this still a bug that needs to be fixed or is this not ever going to work? Is there any workaround or another way to include a bunch of data?

    I did get another game to work by using list objects, but unless i put the list object really far away from the frame it will take up most of the screen, and i can't imagine it's a good way to store data.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    It should work. Can you send me your application?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Sure, i uploaded an example here: http://www.gameyey.com/arraytest.zip
    the zip has the .mfa, a simple array file which is put as "C:\arraytest.arr" and included as binary data. and the exported ios project and a .swf export

    if you run the .swf it will display:

    "Start of list
    line1
    line2
    line3
    line4
    End of list" (even if the original arraytest.arr is removed)

    when i run the ios project on my ipod touch it displays:

    "Start of list




    End of list"

    Meaning the array file is not loaded correctly.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Sorry for nagging/post bumping, but i would really like to get a response on this. Am i doing something wrong? Or is it just not possible to include an array file with ios applications?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I'll have a look next week (I was away last week)

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    OK, it seems, that I have forgotten to put the code to load directly from a binary file included in the application. So it does not work.
    The simplest solution for you to get it working, would be to include the arraytest.arr file in XCode project, it is really simple.
    Right click on the Resources entry in the XCode project, and choose Add Files to "Your project", and choose the file.
    Of course, you must now build the application as an iOS Application (cci), and not an iOS Project (as you would have to include it again).
    This problem is also present for list and ini files.
    Sorry for that.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I suspected something like that, thank you for taking a look at this for me.
    The problem is also currently present in another runtime.. i'll post in the relevant forum.

    So when i have the file in the resources folder, should it be loaded as just the filename "arraytest.arr" or is there any path? I would love to test it, but i don't have a mac at the moment

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Just use the name of the file. You can anyway, on your pc, have a full pathname to the file: the ios runtime only takes into account the name and extension...

  9. #9
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    François did this ever get sorted?

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Yes, Andos redid all the loading routines some time ago : they all use the same, which looks
    a) in the applcation bundle
    b) if not found in the binary data

Similar Threads

  1. Is RC4 going to support binary data (array)?
    By SoftWarewolf in forum Android Export Module Version 2.0
    Replies: 8
    Last Post: 29th January 2013, 08:59 AM
  2. Binary array data conversion?
    By GameDragon in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd August 2012, 12:28 PM
  3. Default Array \ Binary Data
    By SoftWarewolf in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 1st March 2012, 11:17 PM
  4. array as binary data
    By SoftWarewolf in forum iOS Export Module Version 2.0
    Replies: 10
    Last Post: 22nd August 2011, 07:14 PM
  5. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •