mifki / df-twbt

Text Will Be Text
186 stars 30 forks source link

Can't assign tile '0' in the raws with twbt mode #18

Open fricy opened 10 years ago

fricy commented 10 years ago

I noticed this problem first with the Obsidian tileset which uses Alt tiles for grass animation. Using 2D/Standard/twbt_legacy the game renders correctly, but with twbt mode the tileset is unusable, the grass tiles are flickering to black continuously. I first thought the bug is with the animated part, but looks like the plugin can't interpret the "0th tile".
The vanilla raws for grass look something like this: [GRASS_TILES:'.':',':'`':'''] while Obsidian uses this code: [GRASS_TILES:0:216:0:216]

Substituting 0 with any other number or character (tried ',' and 39 for ') fixes the problem, so the bug is something to do with mapping the first tile (0) in any given tileset. Latest test was with 2.26, behavior can be observed in previous versions of the plugin.

pronvit commented 10 years ago

Oh I thought 0th tile is always empty.. Ok, I'll fix this.