Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old May 28, 2007, 01:05   #1
aricz
Rookie
 
aricz's Avatar
 
Join Date: Apr 2007
Posts: 22
aricz is on a distinguished road
NCurses

Hello.

1. Do anyone here play V angband or any of its variants using NCurses?

If 'YES' then why do I keep getting problems playing roguelikes in console (alt+ctrl+F1-F6)

The colors are messed up. Take a look at this:

Color 0: 'BLACK' .. correct color
Color 1: 'WHITE .. It's white, but not bright white
Color 2: 'SLATE' .. same as 'Color 1'
Color 3: 'ORANGE' .. not sure if this color is red or orange
Color 4: 'RED' .. same as 'Color 3'
Color 5: 'GREEN' .. correct color
Color 6: 'BLUE' .. correct color
Color 7: 'UMBER' .. same as 'Color 3'
Color 8: 'LIGHT DARK' .. same as 'Color 0'
Color 9: 'LIGHT SLATE' .. same as 'Color 1'
Color 10: 'VIOLET' .. correct color
Color 11: 'YELLOW' .. this color is not yellow, it goes towards red.. ORANGE
Color 12: 'LIGHT RED' .. same as 'Color 10'
Color 13: 'LIGHT GREEN' .. same as 'Color 5'
Color 14: 'LIGHT BLUE' .. same as 'Color 6'
Color 15: 'LIGHT UMBER' .. same as 'Color 3'

Ok, maybe not so easy to read this. But:

Color 0 and color 8 are BLACK
Color 1, color 2 and color 9 are WHITE
Color 3, color 4, color 7 and color 15 are RED/ORANGE
Color 5 and color 13 are GREEN
Color 6 and color 14 are BLUE
Color 10 and color 12 are VIOLET
Color 11 is ORANGE, where it should be YELLOW

By the way, I can't change the colors within the game with '%'.

Using Ubuntu 6.10

Anyone aware of this problem? Or am I the only one trying to play v angband, zangband and tome in console using ncurses? Or.... am I the only one having problems playing in console using ncurses. I'm of course not talking about running in virtual console in X here. Clean and pure textmode console. Hoping for happy answers.
aricz is offline   Reply With Quote
Old May 28, 2007, 06:07   #2
CJNyfalt
Swordsman
 
Join Date: May 2007
Posts: 289
CJNyfalt is on a distinguished road
The colors in ncurses are limited to bright and normal versions of white, black, red, green, blue, yellow, magenta and cyan.

However from your post it seems that the difference between the bright and normal versions doesn't show. It seems that I also have the same problem in Ubuntu 7.04, with bright colors working in x-term but not in console.
CJNyfalt is offline   Reply With Quote
Old May 28, 2007, 08:35   #3
aricz
Rookie
 
aricz's Avatar
 
Join Date: Apr 2007
Posts: 22
aricz is on a distinguished road
Exactly. So is this something the maintainers aren't aware of? Or they just don't care about it?

I know there's a hack out there made for V Angband using NCurses (I think they modified the 'main-gcu.c' file. v2.8 something, said to work with earlier and future versions of angband. Well, I did not manage to compile 3.0.6 or the newest version of angband using the "new" hacked 'main-gcu.c'. Have anyone tried this? Anyone know what I'm talking about? Anyone had the same problem?

And the keyboard. Using the keypad. Shift-running. None of them works. Yep, it works out when 'loadkeys newkeymap' and put new values in pref-gcu.prf. Why isn't this implemented in the linux-distro of angband? And the ESC-key with the 1sec delay. Yep, I know we can use '`' instead, it works like the ESC-key without delay. But uhm, why does it have to be like this?

Hope it wasn't too much whining. I know the maintainers are doing this for free. *Bows deeply* Just wondering why the linuxversion using NCurses is neglected (Is that the correct word? )

Thank you. Bom!
aricz is offline   Reply With Quote
Old May 28, 2007, 08:37   #4
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 43
Posts: 793
pav is on a distinguished road
Send a message via ICQ to pav
Escape delay can't be worked around in the game, it's "feature" of the console itself. It allows you to enter special key codes, if for some reason you don't have working special keys. Like, ESC 0 = F10 ...
__________________
See the elves and everything! http://angband.oook.cz
pav is offline   Reply With Quote
Old May 28, 2007, 10:01   #5
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by aricz View Post
Exactly. So is this something the maintainers aren't aware of? Or they just don't care about it?

I know there's a hack out there made for V Angband using NCurses (I think they modified the 'main-gcu.c' file. v2.8 something, said to work with earlier and future versions of angband. Well, I did not manage to compile 3.0.6 or the newest version of angband using the "new" hacked 'main-gcu.c'. Have anyone tried this? Anyone know what I'm talking about? Anyone had the same problem?
I use the NCurses port all the time; there haven't been any hacks to be able use it for quite a while--you just need to define USE_NCURSES (as you almost certainly do already).

Testing on my virtual install of Debian Etch, playing in console looks fine. There's nothing I can do about this--it seems Ubuntu-specific, and you want to go find someone in the Ubuntu world to complain at, not me.

Quote:
And the keyboard. Using the keypad. Shift-running. None of them works. Yep, it works out when 'loadkeys newkeymap' and put new values in pref-gcu.prf. Why isn't this implemented in the linux-distro of angband? And the ESC-key with the 1sec delay. Yep, I know we can use '`' instead, it works like the ESC-key without delay. But uhm, why does it have to be like this?
Again, nothing to do with us. Just use the backtick as escape; I've got completely used to it. Other than that, I don't know what you mean by "loadkeys newkeymap", but (I imagine) the reason the curses port isn't supplied with any useful macros is because key values differ between computers, making any made on one computer either useless or erroneous on another.
takkaria is offline   Reply With Quote
Old May 28, 2007, 10:57   #6
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 58
Posts: 9,565
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Quote:
Originally Posted by takkaria View Post
Testing on my virtual install of Debian Etch, playing in console looks fine. There's nothing I can do about this--it seems Ubuntu-specific, and you want to go find someone in the Ubuntu world to complain at, not me.
I'm using Kubuntu Feisty, and the colours are all distinct for me. Some of them do seem slightly unusual (grey is slightly blue, for example).
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old May 28, 2007, 11:19   #7
aricz
Rookie
 
aricz's Avatar
 
Join Date: Apr 2007
Posts: 22
aricz is on a distinguished road
Someone told me the way Angband tries to change the colors with NCurses is buggy. I don't remember where I read it, but, since you actually get the correct colors using NCurses in REAL textmode in console (not X), this is getting more and more weird. I talked to someone in #angband yesterday and he told me the same as you, had non problemo with colors using NCurses. All he had to do was to load a new keymap so his keypad and shift-<direction> would work out.

Guess I have to go with Debian Etch instead..
aricz is offline   Reply With Quote
Old May 28, 2007, 17:06   #8
GSN
Rookie
 
Join Date: Apr 2007
Posts: 21
GSN is on a distinguished road
What is your $TERM value? Looks like your terminal entry only supports 8 colors or bright colors are switched off (this is a known feature with some background programs like dynafont that allow you to get 512 different characters on the screen at the same time at the expense of bright colors).

Instead of Esc, you can press ` with the same result.
GSN is offline   Reply With Quote
Old May 28, 2007, 18:19   #9
aricz
Rookie
 
aricz's Avatar
 
Join Date: Apr 2007
Posts: 22
aricz is on a distinguished road
Quote:
Originally Posted by GSN View Post
What is your $TERM value? Looks like your terminal entry only supports 8 colors or bright colors are switched off (this is a known feature with some background programs like dynafont that allow you to get 512 different characters on the screen at the same time at the expense of bright colors).

Instead of Esc, you can press ` with the same result.
Hmmmm, perhaps that's the problem. I have:

TERM = "linux"

I'm a newbie to the world of linux, so help would be appreciated
aricz is offline   Reply With Quote
Old May 28, 2007, 20:16   #10
aricz
Rookie
 
aricz's Avatar
 
Join Date: Apr 2007
Posts: 22
aricz is on a distinguished road
Thanks GSN (and to everyone who wasted time on this thread), what you said made me find the solution. 'Consolechars' .. I just loaded a new screenfont and uhm.. tada, everything worked nicely.

Sorry for the whining *shame shame*

Now, at last! Playing the new version of V Angband in console.. ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh!!
aricz 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 08:01.


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