incredibleMachines / 30PP

Player and Uploader App for 30 Park Place
0 stars 0 forks source link

PlayerApp Crashes on Init Command Response #1

Closed piuggi closed 10 years ago

piuggi commented 10 years ago

Parsing error:

libc++abi.dylib: terminate called throwing an exception

Happens at:

string aLocation = args.json["events"].get(eventIndex, "event not found").get("assets", "assets not found").get(i, "asset i not found").get("location", "location not found").asString();

https://github.com/incredibleMachines/30PP/blob/master/PlayerApp/src/Event.cpp

aLocation is passed as an array not a string.

We will need to add another location type field for geolocating.

Additionally location should likely become titled as Drop Zone or Content Zone.