Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Experimental webserver (http://angband.oook.cz/forum/showthread.php?t=8378)

t4nk May 26, 2017 15:05

Quote:

Originally Posted by Gwarl (Post 121182)
I already wrote an interface for playing a roguelike with javascript, with mouse support, graphics and a few animations/special effects (my lightning bolts were rather pretty). It's fairly agnostic about how the game logic works in that while it does expect the associated game logic backend to send outputs in a certain format, one could specify another format and leave most functions unchanged.

Great. I think we can even get Vanilla to use your effects (Vanilla Angband has very sensible event driven architecture).

Quote:

If you could prepare a frontend with a given mapping of input strings/ints etc to game commands, and then serialize outputs in a sensible way (JSON is convenient but I wouldn't send visible/known terrain that way, probably an octal number), I could then do all the parsing and drawing to the screen with javascript.
Sounds like a plan. Different variants would probably require slightly different frontends (at least stuff like Poschengband, that forked off Vanilla 20+ years ago). But they all use Angband's good old term package (written by Ben Harrison, if I'm not mistaken), so the differences should be minimal.

Quote:

This could maybe even be still a pty? Like playing angband on a console, type in a code that describes the command you want to send to the game, console echoes serialized gibberish representing updates to known information. The client then still reads/writes to a pty running an angband process the way it's done at the moment, except the rendering is done in the client rather than through curses.
Yes, that sound very good.

Quote:

That would be pretty fantastic IMO, shall we discuss here or email?
You can contact me at t4nk074 at openmailbox dot org, but I think it would be better to discuss most things here (on this forum) - this stuff might be of interest to other people!
Tell you what, I'll have quite a bit of free time starting at 4th of June, so I can begin working on the new frontend then.

Estie May 28, 2017 04:07

My warrior died to Vecna, I made a dump, but I dont understand how I can access it.

Gwarl May 28, 2017 11:04

Hey, watched you play for a bit yesterday. As far as the dump goes.. that's weird.

So I was looking through the user directories to find the file.

It doesn't exist? And nor do my dumps? All the /user/ folders are somehow empty?

But nevertheless you can see your dump here:

http://angband.live/user/Estie/master/Estie.txt

Which like I say makes no sense because according to my ftp client /public/user/Estie is an empty folder. Hmm.

Estie May 28, 2017 12:48

I have have to say I am not going to play on the server anymore. Between inability to configure keys, delay and a different colour code it is just too painfull. I have to strain my eyes to "read" the screen and am getting a headache after prolongued play, and everything is taking about 3 times as long.

Gwarl May 28, 2017 13:04

Quote:

Originally Posted by Estie (Post 121223)
I have have to say I am not going to play on the server anymore. Between inability to configure keys, delay and a different colour code it is just too painfull. I have to strain my eyes to "read" the screen and am getting a headache after prolongued play, and everything is taking about 3 times as long.

Can I persuade you to at least keep checking the thread for updates? I should be able to fix most of that, eventually.

Estie May 28, 2017 14:08

Quote:

Originally Posted by Gwarl (Post 121225)
Can I persuade you to at least keep checking the thread for updates? I should be able to fix most of that, eventually.

No worries, I am of course going to follow. Its just that right now I need to recover :)

Gwarl May 28, 2017 23:55

Just set a high score to beat: http://angband.oook.cz/ladder-show.php?id=20794

Now I can get back to working on it. I'll be playing all my games online now to encourage myself to fix things.

Gwarl May 29, 2017 12:33

Starting to think I should be compiling angband into wasm so the executable runs client side and the role of the server is limited to receiving/broadcasting tty streams. You could even put that in an embedded browser so it's just angband wrapped up in a new frontend with built in livestreaming. That's the only way I can think of to solve the latency problem with software.

Gwarl May 29, 2017 13:27

Also since I am not great with the css side of things but I'm fairly sure that's what was screwing up the display, I'm just going to work on the assumption that everyones monitor is 1366x768. If anyone has a smaller monitor like 1024x768 let me know so I can try and handle that case. I'm not going to get into 'responsive design' just yet but supporting slightly smaller screens is probably only twice the work so I'm willing to do it if there's demand for it.

takkaria May 29, 2017 14:48

Quote:

Originally Posted by Gwarl (Post 121236)
Also since I am not great with the css side of things but I'm fairly sure that's what was screwing up the display, I'm just going to work on the assumption that everyones monitor is 1366x768. If anyone has a smaller monitor like 1024x768 let me know so I can try and handle that case. I'm not going to get into 'responsive design' just yet but supporting slightly smaller screens is probably only twice the work so I'm willing to do it if there's demand for it.

I think it's worth supporting 1280x768, not least because my laptop is 1280 wide :)


All times are GMT +1. The time now is 17:23.

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