Cataclysm-dda: Tileset composer wont recognize offsets for sprites that are the default dimension.

Created on 31 Jul 2020  路  5Comments  路  Source: CleverRaven/Cataclysm-DDA

Describe the bug

Using the tool compose.py, wont recognize the offeset fields for sprites that have the same dimensions as the tileset default.

Steps To Reproduce

  1. Go to the cuteclysm repository https://github.com/pixel-32/CDDA-tileset
  2. Compose the tileset using the script at Cataclysm-DDA\tools\gfx_tools
  3. Notice that despite especifying an offset in tile_info.json the creatures.png sprite sheet has no offset defined in the script geneated tile_config.json file.

Expected behavior

Offset field is respected

<Bug> Tiles / Sound [Python]

All 5 comments

At first glance it looks like intended behavior and is specifically defined in the code. What's the use case of having offset for default-sized tiles?

The offset helps reinforce the illusion of visual depth within the set. especially when character/monster sprites are offset. As, the tileset is curently trying, but failing, to do

I may be able to help with that a bit later. Can you meanwhile please add a screenshot to demo what result you want compared to what you get with current version?

Sure thing.

This is what I have.
image

vs the offset I'd like
image

so it looks like removing the explicit check for standard() should do what you want.

if I could just get vips to work on one of my machines I would be able to test that.

Was this page helpful?
0 / 5 - 0 ratings