Colours in inventory (trunk)


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

User avatar

Zot Zealot

Posts: 991

Joined: Monday, 15th April 2013, 15:10

Location: Augsburg, Germany

Post Friday, 9th August 2013, 21:38

Colours in inventory (trunk)

  Code:
Dungeon Crawl Stone Soup version 0.13-a0-2648-g56e3d78 (webtiles) character file.

I appreciate the removal of nausea (thanks, devs) and started with trunk version.

In 0.12 the items in my inventory have been shown in different colours, e.g. yellow for potions of curing and heal wounds, white for artefacts etc.

In trunk the colours have gone. When I start the game the following lines might show the problem:

  Code:
Warning: Cannot find file "standard_colours.txt". (~/.crawlrc:264)
Warning: Cannot find file "food_colouring.txt". (~/.crawlrc:277)
Warning: Cannot find file "menu_colours.txt". (~/.crawlrc:281)

This obviously refers to the following lines of my rc-file:

  Code:
include = standard_colours.txt
#
#   yellow     = preferred food                    ($preferred)
#   darkgrey   = cannot be eaten at all            ($inedible)
#   lightred   = causes rot                        ($rot-inducing)
#   magenta    = dangerous to use, mutagenic       ($dangerous, $mutagenic)
#   red        = considered "evil" by your deity   ($evil)
#   lightgreen = poisonous                         ($poisonous)
#   brown      = contaminated, may cause nausea    ($contaminated)
#
# You can change colours by using something like
# $contaminated := magenta

include = food_colouring.txt

# There is elaborate colouring of items in the inventory (and other menus)
# depending on their usefulness, taking species and other criteria into account.
include = menu_colours.txt

However, it works in 0.12 and I just copied my rc from 0.12 to trunk. What has changed now? How I can I get colours back?

Dungeon Master

Posts: 1613

Joined: Thursday, 16th December 2010, 21:54

Post Friday, 9th August 2013, 22:15

Re: Colours in inventory (trunk)

In trunk you don't need those includes, the default stuff is always included. Does your config change any colours after the includes? If so it probably clears and overwrites the defaults in the process.

For this message the author Kate has received thanks:
Turukano
User avatar

Zot Zealot

Posts: 991

Joined: Monday, 15th April 2013, 15:10

Location: Augsburg, Germany

Post Saturday, 10th August 2013, 08:13

MarvinPA wrote:In trunk you don't need those includes, the default stuff is always included. Does your config change any colours after the includes? If so it probably clears and overwrites the defaults in the process.

As I partially use your rc it's nice to get the answer from you.

I did the following things:

  • Removal of the colour related includes
      Code:
    include = standard_colours.txt
    include = food_colouring.txt
    include = menu_colours.txt

  • Afterwards I removed the following colour related lines:
      Code:
    ###################
    # Message colours #
    ###################
    $inedible     := darkgrey
    $evil         := red
    $preferred    := yellow
    $rot-inducing := lightred
    $mutagenic    := magenta
    $dangerous    := magenta
    $poisonous    := lightgreen
    $contaminated := brown

    ### standard colours to be used for message highlighting
    $danger   := lightred
    $warning  := yellow
    $boring   := darkgrey
    $item_dmg := $danger

    msc := message_colour
    menu := menu_colour

    # Multi-turn
    channel.multiturn = mute

    # Allies
    msc = mute:returns to your side
    msc = mute:a demon appears
    msc = mute:puff of smoke
    msc = mute:carefully avoids
    msc = mute:is recalled
    msc = mute:wall.*burn.*your
    msc = mute:dissolves? into (sparkling lights|shadows)
    msc = mute:you swap places
    msc = mute:your.*(looks stronger|shudders|resist)
    msc = mute:(stumbles backwards|holds.*ground)
    msc = mute:(something|your).*(misses|does no damage)
    msc = mute:your.*(blinks|safely over|gestures)
    msc = mute:(phases out.*|misses) (your|something).*
    msc = mute:your.*but does no damage
    msc = mute:your.*(picks up|drops)
    msc = mute:your.*basks in the mutagenic energy

    # Prayer
    channel.pray = mute

    # Jiyva
    : if you.god() == "Jiyva" then
    msc = mute:slurping|squelching
    msc = mute:splits in two
    msc = mute:You feel.*(less hungry|power returning|better)
    : end

    # Interface
    msc = mute:Cast which spell\? \(
    msc = mute:^Casting.*
    msc = mute:Confirm with \. or Enter, or press \? or \* to list all spells\.
    msc = mute:Press\: \? - help, Shift-Dir - straight line, f - you
    msc = mute:for a list of commands and other information
    msc = mute:melds.*
    msc = mute:Switching to.*
    msc = mute:Switching back.*

    # Other
    msc = mute:This raw flesh tastes terrible
    msc = mute:melds into your body
    msc = mute:begins to bleed from.*wounds
    msc = mute:writhes in agony as.*flesh
    msc = mute:An air elemental.*itself.*the air
    msc = mute:You feel a.*surge of power

    # 11.10.12 (Ds mutations)
    msc = mute:is very cold
    msc = mute:is frozen
    msc = mute:you freeze
    msc = mute:appears unharmed
    msc = mute:your spines
    msc = mute:resists

    # Default colours
    msc = $danger:drains you
    msc = $danger:feel drained
    msc = $danger:strangely unstable
    msc = $danger:curare-tipped.*hits you
    msc = $danger:Space warps.* around you
    msc = $danger:Space bends around you
    msc = $danger:sense of stasis
    msc = $danger:clumsily bash
    msc = $danger:goes berserk!
    msc = $danger:Forgetting.* will destroy the book
    msc = $danger:The blast of calcifying dust hits you!
    msc = $danger:You are engulfed in calcifying dust
    msc = $danger:is moving more slowly
    msc = $danger:^It .* you
    msc = $danger:You block its attack
    msc = $danger:constricts you

    msc = $item_dmg:acid corrodes
    msc = $item_dmg:catch(es)? fire
    msc = $item_dmg:freezes? and shatters?
    msc = $item_dmg:covered with spores
    msc = $item_dmg:devours some of your food
    msc = $item_dmg:rots? away

    msc = $warning:ticking.*clock
    msc = $warning:dying ticks
    msc = $warning:distant snort
    msc = $warning:odd grinding sound
    msc = $warning:creaking of ancient gears
    msc = $warning:floor suddenly vibrates
    msc = $warning:a sudden draft
    msc = $warning:coins.*counted
    msc = $warning:tolling.*bell
    msc = $warning:fails to return
    msc = $warning:no longer ripe

    msc = $boring:You start (resting|searching)
    msc = $boring:Unknown command
    msc = $boring:but (do no|doesn't do any) damage
    msc = $boring:(prevent|prevents) you from hitting

    menu = inventory:white:\w \+\s
    menu = inventory:white:\w \#\s
    menu = darkgrey:(melded)
    menu = darkgrey:.*useless_item.*
    menu = red:.*evil_item.*
    menu = lightred: cursed
    menu = inventory:lightgreen:.*equipped.*
    menu = lightmagenta:.*misc.*rune( of Zot)?
    menu = lightmagenta:.*orb.*Zot
    menu = white:.*artefact.*
    menu = lightblue:^unidentified .*(potion|scroll|wand|jewellery).*
    menu = lightblue:^unidentified .*weapon.*(runed|glowing)
    menu = lightblue:^unidentified .*armour.*(runed|glowing|embroidered|shiny|dyed)
    menu = yellow:heal wounds

    # Food
    menu = $inedible:.*inedible.*
    menu = $evil:.*evil_eating.*
    menu = $rot-inducing:.*rot-inducing.*
    menu = $mutagenic:.*mutagenic.*
    menu = $poisonous:.*poisonous.*
    menu = $contaminated:.*contaminated.*
Unfortunately, things look the same as before.

Btw, another question. # disables a line, is it possible to disable several lines (like /* and */ in C)?

Vestibule Violator

Posts: 1567

Joined: Friday, 21st January 2011, 22:56

Post Saturday, 10th August 2013, 08:44

Re: Colours in inventory (trunk)

Just remake your rcfile from scratch, copying pieces from 0.13 rcfiles.

For this message the author Galefury has received thanks:
Turukano

Tartarus Sorceror

Posts: 1776

Joined: Monday, 21st February 2011, 15:57

Location: South Carolina

Post Saturday, 10th August 2013, 11:35

Re: Colours in inventory (trunk)

Does := do the same thing as += in a crawl config file?
User avatar

Zot Zealot

Posts: 991

Joined: Monday, 15th April 2013, 15:10

Location: Augsburg, Germany

Post Saturday, 10th August 2013, 15:44

Galefury wrote:Just remake your rcfile from scratch, copying pieces from 0.13 rcfiles.

Ok, I did. It was some work:

  • started with standard 0.13 rc
  • added some parts from MarvinPA's rc
  • added cerebovssquire's list of uniques
  • added own lines from my 0.12 rc (getting a more prompt when I see dangerous foes etc.)
Colours are back, thanks! I'm surprised how useful these colours are.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 8 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.