mapeditor/rs-tiled

Tile ID is strange

Closed this issue · 5 comments

tmx file

let file = File::open(&Path::new(&fname)).unwrap();
let reader = BufReader::new(file);
let mp =  parse(reader).unwrap();

info!("{:?}", mp);

Output

I am going to look through the code to see if I can locate the issue.

Similar problem here - IDs are all as expected on 0.7, but on 0.8 they're all either 0 or 1. Very strange. I couldn't see anything obvious on the git blame, though.

I just switched to master and the problem went away.

I'm also having this issue. The IDs have little correlation to the ones that appear in tilemap.tmx.

Can confirm that master fixes this, sorry about the spam 👍

[dependencies]
tiled = { git = "https://github.com/mattyhall/rs-tiled" }
bjorn commented

Since this issue was reported fixed on master back in January 2020 and the current 0.9.5 release is from May 2021, I'm going to assume this can be closed. :-)