Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 30, 2017, 16:06   #11
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 312
Gwarl is on a distinguished road
Quote:
Originally Posted by t4nk View Post
You mean like Dungeon Crawl's webtiles?
Ah, I already set up a service to play angband in a browser a while back, but I ran into difficulties getting all of the features from dgamelaunch working and inexplicable segfaults when trying to use anything but vanilla. I wiped it recently to start again, I'm asking about the x11 stuff because if it had worked and included graphics it would be a cheap way to add support for tiles.
Gwarl is offline   Reply With Quote
Old May 1, 2017, 01:36   #12
gameplay appreciator
Rookie
 
Join Date: Feb 2017
Posts: 24
gameplay appreciator is on a distinguished road
It's not a good idea to allow public access to a X windows server.
gameplay appreciator is offline   Reply With Quote
Old May 1, 2017, 03:06   #13
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,037
Donated: $40
Pete Mack is on a distinguished road
Quote:
Originally Posted by gameplay appreciator View Post
It's not a good idea to allow public access to a X windows server.
No lie. They shouldn't even be visible outside a firewall, let alone accessible.
Pete Mack is offline   Reply With Quote
Old May 1, 2017, 23:04   #14
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 312
Gwarl is on a distinguished road
Looks like the x11 thing is a non-starter, but does anyone know what the problem might be with spawning extra terminals? All of the subopts for -mgcu (i.e. -B) give me the same error

unable to prepare any 'display module'

I have the gcu ports for angband and poschengband running nicely in the browser (But I'll have to implement a login system before I make it public) but the extra terminals are a massive QoL improvement to playing angband - it should be possible so I want to do it.

You can get 'virtual terminals' in V if the main terminal is large enough, but I'd rather have the seperate terminals individually if at all possible.
Gwarl is offline   Reply With Quote
Old May 2, 2017, 00:12   #15
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,825
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
You can get 'virtual terminals' in V if the main terminal is large enough, but I'd rather have the seperate terminals individually if at all possible.
If I understand you right, the virtual terminals are all the curses supports. There's no way from inside a piece of software using curses to open new windows - you're just given a single grid of cells to update.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old May 2, 2017, 00:26   #16
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 312
Gwarl is on a distinguished road
so this:
http://pubs.opengroup.org/onlinepubs...es/newwin.html
refers to what I called 'virtual windows' in my last post?

Odd that it refuses to run with any of the -mgcu subopts if so.

Usage info for -mgcu is as follows:

* angband -mgcu -- [-a] [-b] [-B] [-nN]
*
* -a Use ASCII walls
* -b Big screen (equivalent to -n1)
* -B Use brighter bold characters
* -nN Use N terminals (up to 6)

But I know from experience and reading through old threads here that there's only support for 4 terminals using a single curses window. So where is the 6 coming from there?

I could probably eventually hack what looked like real subwindows out of it, I can at least try and make sure the virtual subwindows are available though.
Gwarl is offline   Reply With Quote
Old May 2, 2017, 00:36   #17
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,037
Donated: $40
Pete Mack is on a distinguished road
For this T4NK's new terminal would be best. It uses panels rather than screens, which is easier for a web interface. In any case, i'd recommend sticking to a single screen.
Pete Mack is offline   Reply With Quote
Old May 2, 2017, 02:54   #18
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,825
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
so this:
http://pubs.opengroup.org/onlinepubs...es/newwin.html
refers to what I called 'virtual windows' in my last post?
Yes, curses windows are 'virtual' windows - curses has to operate on any text output, including ones where there are no graphical windows.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old May 2, 2017, 04:44   #19
t4nk
Adept
 
Join Date: May 2016
Posts: 246
t4nk is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
Looks like the x11 thing is a non-starter, but does anyone know what the problem might be with spawning extra terminals? All of the subopts for -mgcu (i.e. -B) give me the same error

unable to prepare any 'display module'
You're getting strange errors... The only thing I can think of is you're somehow entering "-mgcu -- -n5" as a single string, so Angband tries to find a module called literally "gcu -- -n5" (instead of "gcu")?
t4nk is offline   Reply With Quote
Old May 2, 2017, 14:27   #20
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 312
Gwarl is on a distinguished road
Yup, you were right it was just my syntax. gcu subopts no longer cause a crash.

To get this clear though, to have angband run in multiple windows requires either the x11 port (which seems defunct?) or the windows port? I know SDL happens on a single screen and the subwindows there are 'virtual'.

How do people do it on linux? Does x11 work if you're running it locally?

I'll make a note to look at textui2 at some point, skimming the thread it seems like a lot of the problems it solves would be exacerbated over a network.

Could it be compiled into other variants? I think the ui code it's replacing is quite old, but I don't know if it's *that* old... Both the O and Z lines forked from 2.9.3 IIRC.
Gwarl 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
X11 Tile Support Blue Baron Development 4 June 12, 2013 01:29
Fixing the X11 port? AnonymousHero Development 4 October 7, 2012 11:23
Angband under X11 Magnate Vanilla 3 December 13, 2009 21:56
X11 Specifying Fonts / Geometry chadhogg Vanilla 7 August 31, 2009 19:10
Sound on Linux with X11 is it available. tuppe666 Vanilla 10 September 13, 2007 16:42


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


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.