Hello, I’m really new here, not just at the forum but as a user of this program, so, I wanted to know what is the information stored inside the ‘data’ field in the exported file.
I’m trying to develop a game just for fun, and I exported my tilemap I created in json format, so I can load it inside my game in a easy way.
But, then I thought something like, what is the value of inside this array?
I found out that the field is an array of Gids (Global IDs), but, the reason I’m asking this is because my exported .json file, has some crazy IDs inside this array, something like: (copy-pasted) 3221225493, 1610612751 and 21.
This is the question:
These numbers represents different tiles inside a same image. But, how can I read this? Is there some format regarding it or it’s something internal to the tiled application? How can I know which ID references which tile in the json file?
Ah, the information is not corrupted as I tried to open the file using tiled, and it worked as expected.
- This is the image i’m using right now, which has those crazy IDs
- This is the entire map
And this is a printscreen of the data matrix inside the “data” field in a background layer, that has only the gray bricks and the red carpet in the image:
- I editted it in sublime text 3 adding a ‘\n’ character to separate the lines of that big array to a more friendly matrix view, which represents the entire image.
I uploaded as a image bc when i try to upload the .json or .tmx file it says that I can’t because I’m new to this forum.