Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 11 12 [13] 14 15

Author Topic: Dfterm3 v0.3.1 (2014-04-23)  (Read 89058 times)

lethosor

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #180 on: June 01, 2014, 03:00:59 pm »

It doesn't actually stream the screen itself - instead, it retrieves raw ASCII data from the screen and sends that. Tileset support would be hard because it requires either a way to (a) obtain an image of the entire DF window and send that (which would take ~300 times more bandwidth, require rewriting the screen data-sending protocol, and require a way to grab raw screen data with DFHack, which I'm pretty sure doesn't exist), or (b) a way to render tilesets in the browser, which is also challenging and would probably require WebGL to avoid being really slow (which some browsers don't support yet, including most mobile browsers, where speed is already more of an issue with the current system). I'm leaning towards the second option, although I haven't figured out exactly how DF renders tilesets - what I have right now only supports basic (2-color) tilesets like the default ASCII and these.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

palu

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #181 on: June 01, 2014, 04:27:54 pm »

Here's a page from the wiki (It's from 40d, not sure how much has changed): http://dwarffortresswiki.org/index.php/40d:Tilesets#How_colors_other_than_white_and_magenta_work
Logged
Hmph, palu showing off that reading-the-instructions superpower.
The internet encourages thoughtful, intelligent discussion and if you disagree I hate you.

nuke01

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #182 on: June 03, 2014, 04:26:47 pm »

I downloaded the server .exe and installed it before getting the standalone plugin for DFHack which I put into my Masterwork folder. Unfortunately when I run the game it doesn't seem to notice the fact the .dll is there in the plugin folder and if I type enable it doesn't show up on that list either. What'd I do wrong?
I did the exact same thing and have the same problem! I'm running Masterworks 5.00, would somebody upload a r4 compatible plugin for windows please? pretty please? thx
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #183 on: June 04, 2014, 12:50:03 am »

Windows plugin compatible with the r4 version of DFHack: https://sukima.trankesbel.com/dfterm3/0.3/r4/dfterm3.plug.dll

I could not test it so I'll have some of you test it before I put it on the first page.
Logged
I make dead people. Dfterm3

nuke01

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #184 on: June 04, 2014, 05:17:01 am »

Windows plugin compatible with the r4 version of DFHack: https://sukima.trankesbel.com/dfterm3/0.3/r4/dfterm3.plug.dll

I could not test it so I'll have some of you test it before I put it on the first page.

Thx, I just tried it. It couldn't start because protobuf.dll wasn't found. I looked inside the Dwarf Fortress folder and there is a protobuf-lite.dll there. Hmm, what else can I tell you. I'm playing Masterworks, render method is Standard. Should I change anything of that?
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #185 on: June 04, 2014, 08:26:56 am »

Windows plugin compatible with the r4 version of DFHack: https://sukima.trankesbel.com/dfterm3/0.3/r4/dfterm3.plug.dll

I could not test it so I'll have some of you test it before I put it on the first page.

Thx, I just tried it. It couldn't start because protobuf.dll wasn't found. I looked inside the Dwarf Fortress folder and there is a protobuf-lite.dll there. Hmm, what else can I tell you. I'm playing Masterworks, render method is Standard. Should I change anything of that?

I'm recompiling the plugin and doing proper testing. Hopefully will not take more than an hour or two.
Logged
I make dead people. Dfterm3

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #186 on: June 04, 2014, 09:14:37 am »

Try redownloading the Windows plugin from URL I gave you. I tested it and it worked. Now it should not ask for any .dll that isn't already included with DFHack.

I think the current Linux version of the plugin for r4 might not work anymore with the changes I saw in DFHack.
« Last Edit: June 04, 2014, 09:26:29 am by Adeon »
Logged
I make dead people. Dfterm3

nuke01

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #187 on: June 04, 2014, 04:59:04 pm »

My god, I can't believe it, it's working now! :)

Thank you good sir!
Logged

nuke01

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #188 on: June 04, 2014, 05:17:56 pm »

Sry that I have another request for you, so shortly after I got helped.
But is it possible to adjust the portrange websocket opens up/needs? Because I can only open up a few of them. So far websocket tried to make connection on 60841,54996,50652,41912, etc. Thats quite a huge range to open up to the Internet...

In case I'm not clear, I'm talking about this messages:
Quote
DATE : New connection WebSocket interface from [::fffff:ip]:PORT

That seems to be the only thing between me and playing df on the go. thx!
Logged

expwnent

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #189 on: June 04, 2014, 07:23:51 pm »

I thought I had already posted to watch, but apparently not.
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #190 on: June 04, 2014, 07:33:22 pm »

Sry that I have another request for you, so shortly after I got helped.
But is it possible to adjust the portrange websocket opens up/needs? Because I can only open up a few of them. So far websocket tried to make connection on 60841,54996,50652,41912, etc. Thats quite a huge range to open up to the Internet...

In case I'm not clear, I'm talking about this messages:
Quote
DATE : New connection WebSocket interface from [::fffff:ip]:PORT

That seems to be the only thing between me and playing df on the go. thx!

There is only one open WebSocket port on the server (which is 8000(?) by default). The ports you see are the client-side ports that are used to communicate individual connections (you can Google up ephemeral ports to see what's that about). They are not open to the Internet so you don't have to worry about it.

If you open up the command line and run Dfterm3 from there, you can use --help switch to see what command line arguments you can give, which includes changing the port settings.
Logged
I make dead people. Dfterm3

nuke01

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #191 on: June 05, 2014, 08:56:31 am »

I understand. Please tell me if I'm annoying you with this, I just want to help to make this work. My goal: Play df via dfterm while being connected to a mobile network.

So first I tried to connect via my pc, then via my tablet over wifi. this is working. So I then tried to connect to it via 3G.
this was not working. I opened up 8080 & 8000 on my nat, now i would at least get to the "choose your name" screen. after talking with you I still tried to just give my host machine into the DMZ and deactivated my firewall. still I always would get "No connection to server" on the login screen.

Now I tried to debug the chrome browser on android, it seems this request fails:


the console gave me back this (I used "dfterm --websocket=8000 --websocket-http=8080):
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/ 1.1" 304 -1 "" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/resources/interface.css 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/resources/bootstrap/bootstrap.min.css 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/js/timing.js 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/resources/bootstrap/bootstrap-theme.min.css 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/resources/dfterm3_term.css 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/resources/interface.js 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/dfterm3_ports.js 1.1" 200 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/resources/bootstrap/bootstrap.min.js 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/js/terminal.js 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"
XX.XX.XX.XX - [05/Jun/2014:13:40:36 +0000] "GET /playing/js/playing.js 1.1" 304 -1 "http://remote.hidden.at:8080/playing/" "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36"


so I'm out of ideas, what should I try next?

EDIT:
I now also added some error handling functions to your playing.js and it seems I get in the socket.onerror function this
"WebSocket connection to 'ws://remote.hidden.at:8000/' failed: Connection closed before receiving a handshake response"

and I added an closeEvent to onclose function which gave me back and error code of 10006, which according to this is low level error which means the connection closed abnormally...
« Last Edit: June 05, 2014, 09:14:48 am by nuke01 »
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #192 on: June 05, 2014, 09:15:08 am »

Spoiler (click to show/hide)

I have to say, I cannot come up with anything to help you. If it works through wifi from different computers then it would suggest that the problem is not in Dfterm3. From the log I can see that the WebSocket connection never makes it through (or at least I cannot find any mentions of it) but the HTTP connections work. You could try using a different WebSocket port in case the ISP of the 3G connection is blocking 8000 for some reason. In any case, this looks like outside the domain I can help you with.

Logged
I make dead people. Dfterm3

nuke01

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #193 on: June 06, 2014, 06:12:25 am »

I will try the next time I'm on a different wifi and not on 3G to report back,  but that may take until next week
Logged

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: Dfterm3 v0.3.1 (2014-04-23)
« Reply #194 on: June 20, 2014, 09:31:01 pm »

Are there plans to update the plugin for dfhack r5, since there's a single official and new release available?
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.
Pages: 1 ... 11 12 [13] 14 15