Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 7, 2017, 20:00   #1
Gwarl
Apprentice
 
Join Date: Jan 2017
Posts: 85
Gwarl is on a distinguished road
Experimental webserver

Okay I know I have two threads already but for the sake of having a releveant title here's a new one.

I've set up a server where you can login and play angband or an available variant online:

http://gwarl.xyz/

The code for the server is here:

https://github.com/OwenGHB/angband-webclient

It's still very much in an experimental stage. It isn't pretty yet but you can play angband on it.

Features I'm going to add soon are spectating, recording, and watching recorded games. I want to add simple per-game chatrooms where spectators can comment on live games. Then there are long term plans I have - I'll keep the thread updated as I go.

Pull requests etc welcome.
Gwarl is offline   Reply With Quote
Old May 7, 2017, 21:46   #2
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,260
Estie is on a distinguished road
So how do i create an account ?
Estie is online now   Reply With Quote
Old May 7, 2017, 22:47   #3
Gwarl
Apprentice
 
Join Date: Jan 2017
Posts: 85
Gwarl is on a distinguished road
Hitting register once gives the 'confirm password' field, if you hit register again and the passwords match you get an account. It's surprisingly hard to make login forms that aren't horribly confusing - I know this one needs work, I just thought I'd send it live rightaway rather than waiting to get everything perfect.
Gwarl is offline   Reply With Quote
Old May 9, 2017, 01:55   #4
bio_hazard
Knight
 
bio_hazard's Avatar
 
Join Date: Dec 2008
Posts: 554
bio_hazard is on a distinguished road
Cool- Angband worked (via Firefox on OSX if it matters). It feels a little slower than normal but not too horrible. I'll have to figure out the commands- tried to quit and ended up closing out my whole browser lol.

Definitely excited to try Pos- I haven't played yet because of the whole osx thing.
bio_hazard is offline   Reply With Quote
Old May 9, 2017, 11:50   #5
Gwarl
Apprentice
 
Join Date: Jan 2017
Posts: 85
Gwarl is on a distinguished road
Quote:
Originally Posted by bio_hazard View Post
Cool- Angband worked (via Firefox on OSX if it matters). It feels a little slower than normal but not too horrible. I'll have to figure out the commands- tried to quit and ended up closing out my whole browser lol.

Definitely excited to try Pos- I haven't played yet because of the whole osx thing.
The angband process is actually running on the remote server so there will be latency depending on your connection (the server is in Europe). This means it will be straightforward to add spectating facilities.

Although now I think about it if angband were compiled directly into wasm one could serve up binaries to be run on the client and then open a socket to the server to share the output between users, which would alleviate the cpu load on the server. It would not be quite as secure against cheating but that probably isn't a huge concern. I might try that at some point, but this works for now and I need to build interfaces for the site anyway.

And yeah, making it easy to try new variants without hunting them down and compiling them was a big motivation behind doing this. The setup process for each variant is slightly different though. I'll start adding more in one by one, Sil is a high priority but it's particularly difficult to work with and will need me to make a few changes to the code to get the directory/save file handling more in line with other variants.

It would be nice to eventually get the entire angband plus repository compiled and available to play.

Last edited by Gwarl; May 9, 2017 at 11:57.
Gwarl is offline   Reply With Quote
Old May 17, 2017, 19:23   #6
Gwarl
Apprentice
 
Join Date: Jan 2017
Posts: 85
Gwarl is on a distinguished road
Spectating games is now possible (the list of live games is somewhat buggy), but will be more fun after I add a chat box - possibly embedding the irc channel. Code changes are on github. In no particular order the other things to do next are updating poschengband to the latest version, adding routines to get, compile and replace the latest version of the V development branch, use ttyrec for recording games, and provide links to download character dumps. Expanding the list of variants would also be nice (NPP and ToME 2.4.~ are at the top of the list. No Sil yet, sorry).

After all that, I'll add a game mode to use a current competition savefile/variant, hopefully by the time the next one comes around.
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


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


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