Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old June 28, 2010, 03:05   #1
Twilight's Avatar
Join Date: Jan 2009
Location: Sweden
Posts: 58
Twilight is on a distinguished road
Message handling patch for Angband 3.1.2r1980

Hi all.

I've fiddled around for a few days with trying to fix some issues with the predefined colors for messages. I'll just post the readme and a screenshot. I think it's kinda nifty with a slim use of message.prf to just color dangerous events. In the screenshot of my message window I had played around in wizard mode for a while and the color scheme is a little bit off, but you get the idea.

I'll attach the patch here or send it to the dev's or both later on.

Message handling patch for Angband 3.1.2r1980
by Tomas Dedorson (Twilight).

This patch makes the code use the available msg_types so
/lib/pref/message.prf and lib/xtra/sound/sound.cfg can get
maximum use.

This fixes several issues with messages not using message
types for color. For instance melee messages weren't
functioning properly, breaths couldn't be configured etc.

What this means is that almost all 150 message type colors
can be defined in message.prf and be useful. This is not only
aestetically pleasing, but you can configure it to only highlight
dangerous events like shrieks, create traps, summons, specific
breaths or whatnot.

As a sidenote if you're one of those who wants soundeffects
you can configure the same messagetypes in sound.cfg and the
sounds will be played as well. Or you could download the
Dubtrain Sound Pack linked from the Angband homepage

lib/pref/message.prf has been initialized with all possible
message types.
attack.c Message handling and also a grammar bug.
cmd-obj.c Corrected message type using a staff.
cmd3.c Message handling.
dungeon.c Message handling.
effects.c Message handling.
spells2.c Message handling.
monster/melee2.c Message handling.
object/obj-util.c Message handling.
player/timed.c Message handling.

Edit: It's kind of a lowres screenshot. Hope its viewable.
I guess the patch should have been called message color patch.
To be clear: this patch does not change anything gameplay-wise, but
makes the game make full use of message.prf.
Attached Thumbnails
Click image for larger version

Name:	messages.jpg
Views:	287
Size:	82.5 KB
ID:	457  
It's better to burn out than to fade away!

Last edited by Twilight; June 28, 2010 at 10:01.
Twilight is offline   Reply With Quote

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
strange message, gold drop problem? PowerDiver Vanilla 2 January 14, 2010 08:32
Pref file handling PaulBlay Development 9 February 24, 2009 17:40
Small feature patch for Angband SVN PaulBlay Development 8 February 23, 2009 09:49
message display improvements DaviddesJ Vanilla 9 April 3, 2008 10:35
Stange message Diogenes Vanilla 4 October 25, 2007 15:04

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

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