Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old November 2, 2010, 19:15   #1
chris
PosChengband Maintainer
 
Join Date: Jan 2008
Posts: 702
chris is on a distinguished road
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
chris is offline   Reply With Quote
Old November 2, 2010, 19:57   #2
Nomad
Knight
 
Nomad's Avatar
 
Join Date: Sep 2010
Location: England
Posts: 958
Nomad is on a distinguished road
Quote:
Originally Posted by chris View Post
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.
Nomad is offline   Reply With Quote
Old November 2, 2010, 20:03   #3
chris
PosChengband Maintainer
 
Join Date: Jan 2008
Posts: 702
chris is on a distinguished road
Quote:
Originally Posted by Nomad View Post
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
chris is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASCII or Tiles? EvilScoop Vanilla 30 August 30, 2014 02:36
Z / Z+ with tiles? Cazliostro Variants 4 September 11, 2010 14:20
Which tiles do you use? Magnate Vanilla 13 March 5, 2010 02:09
Zangband with tiles ? garu Variants 5 October 30, 2009 18:44
3.1 - Tiles bug? pndrev Vanilla 15 January 24, 2009 18:48


All times are GMT +1. The time now is 10:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.