PDA

View Full Version : Help with Tiles!


chris
November 2, 2010, 19:15
OK, I'm getting desperate. I added a new class to my variant and now the player tile is a black square when using old tiles. I'm trying really hard to locate the code that actually determines what tile to use for the player.

I managed to find the code that actually draws the stuff (Term_pict_win in main-win.c) but I can't find where this stuff might be set for the player. The tile used varies with player class, player race, and player level (I think) so it is not hard coded the way it is for monsters.

Any pointers would be really appreciated! Thanks :)

Nomad
November 2, 2010, 19:57
OK, I'm getting desperate. I added a new class to my variant and now the player tile is a black square when using old tiles. I'm trying really hard to locate the code that actually determines what tile to use for the player.

I managed to find the code that actually draws the stuff (Term_pict_win in main-win.c) but I can't find where this stuff might be set for the player. The tile used varies with player class, player race, and player level (I think) so it is not hard coded the way it is for monsters.

The tile assignments are all done with pref files. The special player mappings for different class/race combinations are in xtra-xxx.prf for the old tiles, xtra-new.prf for the Adam Bolt tile set, and xtra-dvg.prf for the David Gervais tiles.

chris
November 2, 2010, 20:03
The tile assignments are all done with pref files. The special player mappings for different class/race combinations are in xtra-xxx.prf for the old tiles, xtra-new.prf for the Adam Bolt tile set, and xtra-dvg.prf for the David Gervais tiles.

Thanks a million! I don't think I would have found those on my own :eek: