JSON map data

Being plagued by current tileset has incomplete flag data, I decided to give the proverbial finger to the editor and take matter into my own hands... and now I am trying to dissect the map data json files.
1690956814068.png

I understood so far that the the "data" is all the tiles of four layers. I noticed that there were tiles assigned to coordinates that should have been empty, and in some places of the map there even was a tile with number "-1". This is obviously not a valid tile reference, so I just replaced it with "0". And VOILA! The bug is gone! отлично!

So I also went to the buggy map I had reported about earlier, and looked into the json file and lo and behold, there is also a handful of tiles with number "-1" in there! Replacing it and the error is gone and the map loads normally!

So... before I go dancing that I have finally found a solution to the problem... can anybody with knowledge of the json files confirm that "-1" is indeed a faulty reference? Please note that I still have not been able to reproduce what causes the "-1" to find its way into the json files in the first place.
Being plagued by current tileset has incomplete flag data, I decided to point the proverbial finger to the editor and take matter into my own hands... and now I am trying to dissect the map data json files.
View attachment 271897
I understood so far that the the "data" is all the tiles of four layers. I noticed that there were tiles assigned to coordinates that should have been empty, and in some places of the map there even was a tile with number "-1". This is obviously not a valid tile reference, so I just replaced it with "0". And VOILA! The bug is gone! отлично!

So I also went to the buggy map I had reported about earlier, and looked into the json file and lo and behold, there is also a handful of tiles with number "-1" in there! Replacing it and the error is gone and the map loads normally!

So... before I go dancing that I have finally found a solution to the problem... can anybody with knowledge of the json files confirm that "-1" is indeed a faulty reference? Please note that I still have not been able to reproduce what causes the "-1" to find its way into the json files in the first place.
Myself and a friend tried peering into the .jsons, and while we saw some interesting stuff, our findings were inconsistent and not replicable. Try the fix I linked a moment ago on your other post. For us, dealing with it at the .json level was a bigger headache than it was worth.

Shame official sources don't have more to say about this now long standing issue.
Sadly the tileset itself has nothing to do with it (at least in my case) since other maps using the exact same tileset do not have any problems.

In one case I even ended up recreating the map from scratch, in exactly the same way, and there was no problem.

So I guess that if copy-paste of the tileset flags does not work, you might want to consider looking for tile references of "-1", and replace them with "0".

And yes it is very disappointing that there is no official word on this recurring problem.

Original thread: https://forums.rpgmakerweb.com/threads/json-map-data.159952/