Tilemap: Tilemap.TilesJSON not updating properly - part 3

Bugs will be moved here once resolved.

Post » Mon Jul 06, 2015 3:44 pm

Problem Description
Everything is here (full description, capx file and steps to reproduce), so I just pate a link to the post instead of rewriting everything.
https://www.scirra.com/forum/viewtopic.php?f=146&t=149248&p=946729#p946729

In short, after saving and loading back Tilemaps from json files they are not fully loaded. Looks like tiles at certain sizes in Tilemaps are not displayed/rendered in the runtime. While data in json files: "w", "h", "data" (and everything else) is correctly saving and loading.

Operating System and Service Pack
Win 8.1 64

Construct 2 Version ID
r209
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003

Post » Wed Jul 15, 2015 2:15 pm

The thread you linked to contains a .capx with a number of events. Could you attach a minimal example made from scratch as per the bug report guidelines?
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Wed Jul 15, 2015 3:50 pm

EDIT: all made in r209 on Win 8.1 64

Here you go
https://dl.dropboxusercontent.com/u/34375299/Construct%202/bugs%20and%20fixes/Load_Tilemap2.capx

I left some stuff just to make things more clearer and easier - "BG" tiled background to visualize the size of the Tilemap you can draw on, Scroll events to let you... Scroll :)


It goes like this

- run the file
- make the Board (tilemap) bigger using Width/Height buttons - for example set Width to 30
- draw something on the Board (LMB - draw, RMB - erase, MMB - scroll layout)
- hit save
- reload - to start with default settings
- use file chooser and select saved file

This is how it looks like after saving
Image


And this is after loading previously saved file
Image


When you Load the file while previewing it in debugger you can see that the "Board" Tilemap is actually loading correctly - size, placement etc etc. But after some point saved tiles are not visible, and also after this point you can't draw anything on the tilemap but you still can draw without any problems on the part where tiles are visible.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003

Post » Thu Aug 06, 2015 1:43 pm

I finally got to the bottom of this, it turned out to be related to the tilemap version of the collision cells optimisation. It should be fixed in the next build... hopefully that's the end of the tilemap issues!
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Thu Aug 06, 2015 1:45 pm

Nice! Thank you!
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests