I have used the debugger yesterday for 3 hours trying to load an array with just 3 strings in it. The file loads through a IOS method.
Cocos then maps the NSDictionary to CCDictionary all the structure in a recursive mode.
It’s hard to follow the recursive visit which jumps forth and back however I didn’t see any evidend error.
CCDictionary uses C++ stdlib to map all the data structures.
All seams right but when I extract the array with
CCArray *items = (CCArray *) dictionary~~>objectForKey;
int n_entities = items~~>count();
I get a meaningless number while I should have 3.
However your proposal to have arrays stored in files might be a good strategy.
I guess that the plist file format wastes much disk space (the file is 152kb right now and it should be much smaller).
So perhaps I’m dropping the plist technique and try to create a binary file.
Do you know what class can I use to load binary data? have you experienced this?
The problem is that I’m exporting data from a java application (which I created as a level editor) to a binary file which should be imported by the cocos app.
I’m curious to see the final dimensions of the data.