Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 12, 2017, 13:52   #101
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 749
Gwarl is on a distinguished road
I've been looking at colours and I need some help.

I can set the colours on the terminal emulator by passing in an array of hex strings when initialising it. There are two default colour sets, calling themselves tangoColors and xtermColors. The problem is, what angband thinks is light red, the ordering of colours in the terminal emulator clearly intends to be magenta.

To be specific, the colour R in angband terms is seen as colour 13 in the colors array (counting from black=0). If R -> 13 is meaningful to angband in any way and I could determine the mapping of letters to ints I could explicitly set all 28 colours. If not I'll have to look into it more deeply.
Gwarl is offline   Reply With Quote
Old June 12, 2017, 14:25   #102
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 749
Gwarl is on a distinguished road
Okay, z-color.h was what I was looking for. I'll get to work.

Edit: I think the odd colours may actually be angband's fault. I found this in main-gcu.c line 982:

Code:
		colortable[COLOUR_L_RED]    = (COLOR_PAIR(PAIR_MAGENTA) | A_BRIGHT);
Okay yeah angband thinks we have 8 colors available so it's trying to work with them. If I can tell the terminal emulator to pretend it's a 256 color terminal not an 8 color terminal we should be okay.

Triple edit: No I'm hopelessly confused now. We're defining 8 color pairs, and mapping each of our 28 colours to a colour paired with black. Why?

Final edit: I think we should have decent color support now

Encore edit: Bear with me

Okay I think colors are fixed. shift-running in PCB is still impossible for now but I'm looking into it.

Last edited by Gwarl; June 12, 2017 at 17:26.
Gwarl is offline   Reply With Quote
Old June 12, 2017, 22:54   #103
MITZE
Adept
 
Join Date: Jan 2017
Location: Pennsylvania, United States
Posts: 110
MITZE is on a distinguished road
Thumbs up Webserver works!

Just had a nice afternoon playing PosCheng while chatting with Gwarl--the webserver works!
__________________
Everything you need to know about my roguelike playstyle:

I took nearly two years to win with a single character in PosChengband.
MITZE is offline   Reply With Quote
Old June 13, 2017, 04:02   #104
debo
Veteran
 
debo's Avatar
 
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,364
debo is on a distinguished road
Did the server move away from angband.live, or is nodejs just dead or something? I'm getting 502s from nginx.
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
debo is offline   Reply With Quote
Old June 13, 2017, 12:19   #105
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 749
Gwarl is on a distinguished road
Quote:
Originally Posted by debo View Post
Did the server move away from angband.live, or is nodejs just dead or something? I'm getting 502s from nginx.
nodejs server died. Sorry. Back now.
Gwarl is offline   Reply With Quote
Old June 13, 2017, 17:08   #106
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,079
wobbly is on a distinguished road
Played poschengband a little & had a few issues. The chat window is covering my hps in the display. When I go to change pickup/destroy settings (_), down arrow registers as 2, and Ctrl-W (save & quit) closes my browser window (in firefox).
wobbly is offline   Reply With Quote
Old June 13, 2017, 17:27   #107
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 749
Gwarl is on a distinguished road
Okay, I can fix things to adapt based on screen resolution. (Guessing the problem there is having fewer pixels across than me).

The numpad/directional key stuff is not easy but I'm working on it. Ultimately I might have to patch PCB with bits lifted from V.

I'm not sure if I can suppress all of the browser shortcuts, but isn't it ctrl+X to save&quit?
Gwarl is offline   Reply With Quote
Old June 13, 2017, 17:31   #108
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,079
wobbly is on a distinguished road
Ctrl-X saves the game (and works perfectly fine). Ctrl-W saves & quits the mognomitor or whatever the pickup/squelch thing is called(The thing you get to pressing _). I've found a work around for now but it's quite awkward.

To clarify I can use the arrows in-game by turning on numlock. However I can't do that in the mog-what-ever you call it.
wobbly is offline   Reply With Quote
Old June 13, 2017, 17:37   #109
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 749
Gwarl is on a distinguished road
Okay if the mogaminator is the issue there I think I can get as far as letting people edit their .prf files in the browser seperately before very long. Control/escape sequence handling will take longer.
Gwarl is offline   Reply With Quote
Old June 13, 2017, 19:01   #110
MITZE
Adept
 
Join Date: Jan 2017
Location: Pennsylvania, United States
Posts: 110
MITZE is on a distinguished road
Exclamation Server's borked again!

Title says it all.
__________________
Everything you need to know about my roguelike playstyle:

I took nearly two years to win with a single character in PosChengband.
MITZE 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


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


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