Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old January 26, 2017, 23:23   #1
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 401
Gwarl is on a distinguished road
SSH server

I've set up a server to ssh into with a few different variants to pick from:
rogue@195.110.59.234:1111 (or -p 1111 for some systems)

I'm not sure which forum to put this in! I'll try here.

Currently savefiles and scorefiles are shared by everyone. The next thing I want to do is set up a login system for private savefiles. I want to keep scorefiles common to everyone though, and that will have to be done for each variant one by one.

Other things I'd like to look into at some point are how to allow spectating games, and piping i/o through a browser. Or in-game morgue file uploads to the angband ladder.

Angband itself fails to run - the server is debian based and the current debian package doesn't seem to play well in the console - version 3.3.2 is there, I was able to get 4.0.5 running in the console but with some display issues - currently refuses to run in my ssh client.

But for now if you don't care about savefiles and just want to play some angbands without having to install them all, it works.
Gwarl is offline   Reply With Quote
Old January 27, 2017, 00:15   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,653
Donated: $60
Nick is on a distinguished road
This is an excellent initiative.

Angband 4.0.5 and FAangband both fail for me too, with error "Angband requires UTF-8 support"; here's the piece of code which prints that error:
Code:
	if (setlocale(LC_CTYPE, "")) {
		/* Require UTF-8 */
		if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
			quit("Angband requires UTF-8 support");
	}
Maybe that helps?
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old January 27, 2017, 18:46   #3
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 563
fph is on a distinguished road
Try running it with
Code:
LC_ALL=en_US.UTF-8 ./angband
__________________
Dive fast, die young, leave a high-CHA corpse.
--
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote
Old January 27, 2017, 18:46   #4
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 401
Gwarl is on a distinguished road
I did get as far as finding that line - I think I just deleted, but I managed to get as far as having 4.0.5 run as pictured when I execute it as root.

If I recall it involved editing some locale settings, but it's still not a playable solution and probably needs some real work to fix.
Attached Thumbnails
Click image for larger version

Name:	utflaw.jpg
Views:	72
Size:	18.0 KB
ID:	1498  
Gwarl is offline   Reply With Quote
Old January 28, 2017, 15:25   #5
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 401
Gwarl is on a distinguished road
Quote:
Originally Posted by fph View Post
Try running it with
Code:
LC_ALL=en_US.UTF-8 ./angband
Okay, that worked!

(when compiling from the download on this site - not when compiling from the git source)

I'm looking into dgamelaunch to see if it can be repurposed for angband.
Gwarl is offline   Reply With Quote
Old January 29, 2017, 13:56   #6
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 401
Gwarl is on a distinguished road
After a good bit of wrangling I both have dgamelaunch running and launching into angband - which then quits out after the loading screen with 'Couldn't open savefile'. I'm going to have to look closer at the internals of the programs to figure out what's going on there, if possible I'd rather make an angband shaped dgamelaunch than a dgamelaunch shaped angband.
Gwarl is offline   Reply With Quote
Old February 1, 2017, 01:42   #7
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 401
Gwarl is on a distinguished road
Done! A high level unix guru would probably have had that done in an hour, but I learned a lot about linux and c and angband in the process.

You can now log in and play the latest release of angband with your own savefile and a shared scorefile. I doubt spectating works yet but I'm done for the night.
Gwarl is offline   Reply With Quote
Old February 1, 2017, 11:18   #8
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,653
Donated: $60
Nick is on a distinguished road
OK, this runs on a standard mac terminal, but the floors appear as '?'. I tried loading the other font-*.prf files from /lib/customize, but it did nothing or made it worse. I think you could probably fix this by replacing the current font-gcu.prf with:
Code:
# File: font-gcu.prf

# This file contains definitions allowing Angband to make use of the
# "alternate character set" on VT100-compatible terminals.

# Terrain features

# open floor
feat:open floor:*:0x01:0x2e

# magma vein with treasure
feat:magma vein with treasure:*:0x83:0x2a
# quartz vein with treasure
feat:quartz vein with treasure:*:0x83:0x2a
which just uses '.' for floors and '*' for treasure instead of trying to be fancy; or probably even by just removing font-gcu.prf.

On a linux terminal angband won't open - 'p' does nothing. It is a terminal inside a VM running on a mac, but it worked OK for Angband 3.3.2 when you had that running.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old February 1, 2017, 13:35   #9
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 401
Gwarl is on a distinguished road
Quote:
Originally Posted by Nick View Post
OK, this runs on a standard mac terminal, but the floors appear as '?'. I tried loading the other font-*.prf files from /lib/customize, but it did nothing or made it worse. I think you could probably fix this by replacing the current font-gcu.prf with:
Code:
# File: font-gcu.prf

# This file contains definitions allowing Angband to make use of the
# "alternate character set" on VT100-compatible terminals.

# Terrain features

# open floor
feat:open floor:*:0x01:0x2e

# magma vein with treasure
feat:magma vein with treasure:*:0x83:0x2a
# quartz vein with treasure
feat:quartz vein with treasure:*:0x83:0x2a
which just uses '.' for floors and '*' for treasure instead of trying to be fancy; or probably even by just removing font-gcu.prf.

On a linux terminal angband won't open - 'p' does nothing. It is a terminal inside a VM running on a mac, but it worked OK for Angband 3.3.2 when you had that running.
Okay, I've changed these settings.. I can't confirm whether that's fixed the problem because I wasn't seeing it on my end, but hopefully that will have done it.

I've also noticed that the game doesn't seem to have created a scorefile so I'll have to look into that.
Gwarl is offline   Reply With Quote
Old February 1, 2017, 14:01   #10
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,653
Donated: $60
Nick is on a distinguished road
Cool, that works well now. Also working fine in linux terminal, the problem was I hadn't made it big enough
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick 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
MAngband server back online PowerWyrm Variants 0 April 19, 2016 13:31
Playing via SSH Whelk Vanilla 2 November 28, 2009 21:48


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


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