On May 16, 3:33=A0am, Andrew Sidwell <takka...@[EMAIL PROTECTED]
> wrote:
> Andrew Doull wrote:
> > Hi,
>
> > I'm in the process of considering converting across to using '256'
> > colours in Unngband. I'm more likely to go with the 19 or so colours
> > offered 'off the shelf' by Sangband than the shades in NPPAngband.
>
> > The main thing driving this is the ridiculous number of monsters in
> > Unangband, which results in more than a few instances of different
> > monsters with identical appearance in the game. A secondary
> > consideration is the ego monster code, which requires the same monster
> > be distinguished by several different shades of colour.
>
> > This is really a question for Diego or anyone else who's made the
> > transition and is familiar enough with the platform code.
>
> > Outside of the util.c and cave.c code, and the various bits of
> > initialisation of colour prefs in cmd4.c and files.c, do I have to
> > mess with the display code or platform specific code that much? As far
> > as I can tell, no. There's some nice adaptive code by Leon that
> > attempts to 'best guess' the appropriate colour for windows and SDL
> > palette based displays, but this doesn't appear essential.
>
> It looks like you've actually done this in the SVN version, so is there
> any chance you could point me at the relevant revisions? =A0I've had a
> browse through but I'm not quite sure which commits brought in sup****t
> for the extra colours. =A0Also, what difficulties did you run into?
>
> (I've been wanting over-16 colour sup****t in V for a while...)
>
> --
> Andrew Sidwellhttp://rephial.org/
It was surprisingly easy - the big problem was the projection colours,
which potentially still causes crashes for some bizarre reason. The
long term solution there is to adopt the Sangband projection colours
method.
As it transpires, Angband sup****ts 256 colours already 'out of the
box'. I think Mikolaj had one issue with platform sup****t.
I'd probably need to hand roll a patch for vanilla as there is several
differences to Angband. Let me know a low risk time to do this e.g.
following a release.
Andrew


|