Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 26, 2017, 15:05   #51
t4nk
Swordsman
 
Join Date: May 2016
Posts: 306
t4nk is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
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.
t4nk is offline   Reply With Quote
Old May 28, 2017, 04:07   #52
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,563
Estie is on a distinguished road
My warrior died to Vecna, I made a dump, but I dont understand how I can access it.
Estie is offline   Reply With Quote
Old May 28, 2017, 11:04   #53
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 590
Gwarl is on a distinguished road
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.
Gwarl is offline   Reply With Quote
Old May 28, 2017, 12:48   #54
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,563
Estie is on a distinguished road
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.
Estie is offline   Reply With Quote
Old May 28, 2017, 13:04   #55
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 590
Gwarl is on a distinguished road
Quote:
Originally Posted by Estie View Post
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.
Gwarl is offline   Reply With Quote
Old May 28, 2017, 14:08   #56
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,563
Estie is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
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
Estie is offline   Reply With Quote
Old May 28, 2017, 23:55   #57
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 590
Gwarl is on a distinguished road
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 is offline   Reply With Quote
Old May 29, 2017, 12:33   #58
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 590
Gwarl is on a distinguished road
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 is offline   Reply With Quote
Old May 29, 2017, 13:27   #59
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 590
Gwarl is on a distinguished road
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.
Gwarl is offline   Reply With Quote
Old May 29, 2017, 14:48   #60
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,858
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
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
__________________
"Physician, heal thyself."
takkaria 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 04:18.


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