Page MenuHomeFeedback Tracker

JSON loader can't load multiple maps
New, UrgentPublic

Description

Trying to load multiple maps from a json file back into a class causes a crash. Saving multiple maps into json does not cause a crash. Loading a single map from json into a class does not cause a crash. This crash only happens when trying to load multiple maps back into a class.

JSON ERROR:
Reading variable: data
Expecting instance
Reading variable: MapTestTwo
Expecting map
Map's key type can be only int, string and enum
Function: 'Error'
Stack trace:
scripts/1_Core/Dayz/proto/endebug.c:44
scripts/3_Game/Dayz/tools/jsonfileloader.c:29
...Continues into the mod path

Having a json class that contains the variables, saving and loading within itself

autoptr TStringIntMap MapTestOne = new TStringIntMap;
autoptr TStringIntMap MapTestTwo = new TStringIntMap;
JsonFileLoader<TestJson>.JsonLoadFile(jsonPath, this);

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce

Create a class that contains multiple maps
Save that to generate the JSON
Try to load the JSON back into the class