Page MenuHomeFeedback Tracker

JSON loader can't load multiple maps
Closed, ResolvedPublic

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

Event Timeline

CptCookie updated the task description. (Show Details)Jul 17 2019, 10:31 PM
3Vaker added a subscriber: 3Vaker.Aug 4 2019, 6:17 PM
lava76 added a subscriber: lava76.Oct 20 2020, 12:03 AM
Geez closed this task as Resolved.May 27 2022, 11:27 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello CptCookie.
The problem has been fixed internally and the fix will appear in one of the upcoming updates.
Regards,
Geez

maca134 added a subscriber: maca134.EditedAug 1 2022, 4:37 PM

This isn't fixed yet?

Getting same error, same problem with multiple maps.