Help with Tiles!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris
    PosChengband Maintainer
    • Jan 2008
    • 702

    Help with Tiles!

    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
    Knight
    • Sep 2010
    • 958

    #2
    Originally posted by chris
    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.

    Comment

    • chris
      PosChengband Maintainer
      • Jan 2008
      • 702

      #3
      Originally posted by Nomad
      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

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎