Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0012073 [DCSS] Bug Report minor always 2019-09-28 03:56 2019-09-28 07:46
Reporter kitchen_ace View Status public  
Assigned To
Priority normal Resolution open  
Status confirmed   Product Branch 0.24 old branch
Summary 0012073: tile_player_tile affects display of player on new starting screen with icons
Description I have 'tile_player_tile = tile:felid_3' set in my rc, with conditional lua to set it for when I'm a felid. Because the lua doesn't get parsed until the game starts, this sets my tile for the starting screen during weapon choice.
Additional Information
Tags No tags attached.
Attached Files png file icon 0Rj4Dhc.png [^] (58,451 bytes) 2019-09-28 03:56

- Relationships

-  Notes
(0033447)
aidanholm (developer)
2019-09-28 07:22

Thanks for reporting! The problem here seems to be that when the rcfile is initially loaded (before you choose a character) the lua lines are filtered out, and your custom tile is set. Once you actually choose a character and begin a game, the rcfile is completely reloaded, this time with lua lines taken into effect, and the tile should be displayed correctly.

It's basically impossible to solve this "properly", i.e. display your custom felid tile on the weapon choice if and only if you just chose a felid, because it's impossible to statically parse arbitrary lua code.

One possible fix is to filter out the entire block guarded by the lua conditional when first running the rcfile. This was not done before presumably because it's slightly more complex.

In the meantime, you could work around this by setting the option from lua with crawl.setopt()
(0033448)
kitchen_ace (reporter)
2019-09-28 07:46

Thanks. I had already applied the workaround, but I know that it's common among people who use tile_player_tile to set it conditionally.

Depending on whether inline lua filtering gets changed, it might be worth a mention in the tile_player_tile entry in options_guide.txt

- Issue History
Date Modified Username Field Change
2019-09-28 03:56 kitchen_ace New Issue
2019-09-28 03:56 kitchen_ace File Added: 0Rj4Dhc.png
2019-09-28 07:22 aidanholm Note Added: 0033447
2019-09-28 07:23 aidanholm Status new => confirmed
2019-09-28 07:46 kitchen_ace Note Added: 0033448


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker