Just a quick question, my game runs fine reading in the level’s collision data from a JSON file. This works perfectly on windows but when I try to run it on Android, the game crashes once the level has loaded. I don’t understand why it will work on one platform and not the other. I’m using jsoncpp.cpp to parse my data.
The game runs fine (level will load but no collisions) if I comment out the JSON collisions bit.
I’m opening the file like this:
ifstream infile; infile.open (CCFileUtils::sharedFileUtils()->fullPathFromRelativePath(lvl.getCollisionFile()));
I’m getting my data like this:
const Json::Value vertices = shapes[i].get("vertices",0);
Is there a problem with the NDK? (I’m using NDK R8C)
Any general ideas?