-
array as binary data
Hey, i am trying to include array file(s) with my game, it works fine in flash etc, but it didn't work when i tested the ios exported version on my ipod touch.
on the array object i choose "files - load array from file" then on the selector that shows up i choose the array file i want to include.
then on the binary data tab i choose the same file.
running in mmf works great, flash works great, and in ios it doesn't work?
-
Re: array as binary data
The file system is different in iOS - I think you want to use a calculation then just enter your filename in quotes, eg "MyArray"
Then when you unzip your project, add the file MyArray manually by dragging it to the Resource folder in XCode.
I haven't done this yet, but check out Jeff's Cave Diver example - he creates an ini file. Also this discussion about ini/arrays may help
-
Re: array as binary data
ah, i think we are on to something.. but i managed to crash it doing that, EXC_BAD_ACCESS on a bunch of stuff..
the game crashes as soon as it loads if i have the .arr files in the resources folder.
-
Re: array as binary data
Loading array is not in this version. It is in beta test right now. Please wait for the first official update. (we will also put load files from binary files included in the application, which is simpler than putting it in the project)
-
Re: array as binary data
Yep, I have had the same issue SoftWarewolf.. waiting patiently for the update.
-
Re: array as binary data
I will implement load binary dada earlier next week.
-
Re: array as binary data
oh.. why does it say this on the limitation list?
"support external files:
Array
INI
Hi-score
They load/save files from/to the bundle of the application. You can include default files for the Array and INI objects (and the List object in the next update)."
and actually the list object is working, it's just a bit slow and troublesome because it's creating a huge list on the screen :P
anyway, hoping for a quick fix (getting it next week instead of waiting for a bigger update?) or a work-around plausibly? ^^
-
Re: array as binary data
Can someone please confirm the load from .arr still doesn't work on the iOS?
-
Re: array as binary data
Send me the mfa and the arr file please...
-
Re: array as binary data
Francois are you saying that this should be working? Is it possible I am simply doing something wrong when I drag these source files into XCode? I cannot get INIs to work either as I noted in the other forum, but my real goal is to get the Array object to load from my .arr file.