Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 6 7 [8] 9 10 ... 15

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

Voxus

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #105 on: October 15, 2013, 05:13:56 am »

Windows 8 user had some problems so far, when I tried to access the admin panel the page was unstyled, and clicking form buttons resulted in it taking me to none-exsistance pages, as such I took a peek around and tried the url 127.0.0.1:8081/web-interface/admin, and then everything worked! Not sure what cases that, and not sure if it is specific to windows 8, but there you go.
Logged

Voxus

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #106 on: October 15, 2013, 06:11:06 am »

Hurmm, so I've always wanted to play DF on my tablet, and this is pretty close, however sadly keyboard input is not working, I believe this is b/c the iPad doesn't trigger keyboard input until a field is selected, or more accurately i can't just select the term element and press buttons, i have an external keyboard as well. I'm working on a couple ideas since i know some JScript, such as triggering window keypresses, but no luck yet.

Update:
Got window bound events working, it's buggy as all heck specifically on my ipad, so more work to be done on that, considering making my own touch keyboard on the page as it were, or at-least a numpad, not sure exactly how i'll do it, I suppose all else fails iOS coding is a go? Can't imagine it'd be impossible.
« Last Edit: October 15, 2013, 06:25:45 am by Voxus »
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #107 on: October 15, 2013, 09:55:52 am »

Windows 8 user had some problems so far, when I tried to access the admin panel the page was unstyled, and clicking form buttons resulted in it taking me to none-exsistance pages, as such I took a peek around and tried the url 127.0.0.1:8081/web-interface/admin, and then everything worked! Not sure what cases that, and not sure if it is specific to windows 8, but there you go.

The interface is actually supposed to redirect to http://127.0.0.1:8081/admin/ if you write something else like http://127.0.0.1:8081/admin (missing slash at the end) but apparently, according to this report, it doesn't work in all circumstances.

Update:
Got window bound events working, it's buggy as all heck specifically on my ipad, so more work to be done on that, considering making my own touch keyboard on the page as it were, or at-least a numpad, not sure exactly how i'll do it, I suppose all else fails iOS coding is a go? Can't imagine it'd be impossible.

If I understood correctly that you might want to code an iOS application that accesses Dfterm3 then that is possible; however the Dfterm3 currently does not have a well-defined network API that you could write against. If there is interest, I might work on providing something like that.

Or you could continue to attempt to fix the current interface to work better with tablets. If you have code that could be useful for Dfterm3, you can show it to me and I can adapt it.
Logged
I make dead people. Dfterm3

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #108 on: October 15, 2013, 11:40:32 pm »

is there a way to do the old tty method?  Like being able to do both?

I don't see another solution for android/iphone devices without a bt keyboard.

However one could root android, flash with a loopback run, install linux inside linux deploy, open a webbrowser, and then have access to a kb again, but that's way way overkill...

Anyway to overlay a keyboard in the browser that takes web clicks as input?

Etherdrinker

  • Bay Watcher
  • ☼Etherdrink☼
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #109 on: October 17, 2013, 02:34:01 am »

Oh holy Armok! An pretty potential for play in a tablet!

A pretty good option to get a new one, cause I broke my last one...  ty to my 24 hours work turns, get a drowsiness attack and it falls and the screen get the full force of the impact...

More on topic, what possibility has (not now I know is an Alpha) to play in an Android Tablet? actually, Opera browser are adding code from Chromium, so if you can run it in Google Chrome, you can run it nearly for sure in the next generation of Opera browsers.

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #110 on: October 17, 2013, 03:29:58 am »

is there a way to do the old tty method?  Like being able to do both?

It is relatively easy to add alternative UIs and have them run at the same time as the other UIs. It's just that it doesn't look like a whole lot of people want the tty interface instead of the web interface so I haven't done any work on that so far.

Do any of you really want the tty interface like in Dfterm2? I find it difficult to predict what my users really want.
Logged
I make dead people. Dfterm3

zlurker

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #111 on: October 17, 2013, 03:51:47 pm »

I'm having trouble opening ports to use DFterm3 but my friend keeps complaining they don't want to overheat their laptop trying to host even though they could port forward easily. Is there any real extra strain put on the host? Cause off-handedly the way things look to run I don't see how.
Logged

Limash

  • Escaped Lunatic
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #112 on: October 17, 2013, 04:26:41 pm »

is there anyway to get it to work with windows xp?
Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #113 on: October 17, 2013, 07:23:25 pm »

Tty would solve the problem w tablets  i think web browsers great. No need for extra software but tty would give me my on screen keyboard i think

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #114 on: October 18, 2013, 01:13:39 am »

is there anyway to get it to work with windows xp?

Dfterm3 itself will not run on Windows XP. As far as I know, there are no tricks to get it to work.

It will work on Windows XP if I spare the time to make it compatible with older versions of Windows. I won't promise it will happen any time soon though for which I am sorry.
Logged
I make dead people. Dfterm3

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #115 on: October 20, 2013, 12:59:20 am »

I've made binary Dfhack Dfterm3 plugins available for both Windows and Linux (see the first post). These do not require custom Dfhack. In Dfterm3 0.4 I will no longer provide custom Dfhack builds because vanilla Dfhack works just fine.
Logged
I make dead people. Dfterm3

Voxus

  • Bay Watcher
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #116 on: October 20, 2013, 05:34:17 pm »

If I understood correctly that you might want to code an iOS application that accesses Dfterm3 then that is possible; however the Dfterm3 currently does not have a well-defined network API that you could write against. If there is interest, I might work on providing something like that.

Or you could continue to attempt to fix the current interface to work better with tablets. If you have code that could be useful for Dfterm3, you can show it to me and I can adapt it.

Yea, that's what I'm suggesting, I'll let you know what I make of it, at the moment all I did was remove the key bindings from playing.js lines 232 onwards and replace them with ones bound to the whole window, from there if you select the chat you can type into that to control the game, but it's not effective, I'm gonna work on an iOS app that access it for fun, not sure what kind of deadline you could expect or whatever so don't hold your breath but whatever I do it's open source and I'll update you guys.

is there anyway to get it to work with windows xp?

Just throwing in my two cents on this, if this works on linux it'd be easy to set up DFTerm3 on a virtual machine, something like VMWare player, that's an all free solution to making it cross compatible.
I use VM's all the time when I want to host something locally without opening any sort of security hole.

This has the downside of VM overhead and the time and effort in installing VMWare player and a distro on that VM, but there are pros to this solution as well, and because DF and DFTerm are entirely processor based and don't need GPU acceleration, VM's will have nearly no problem at all working with them.



On interface issues:
Doing some JS work atm to help with the interface just for fun, the code is commented to some degree and should be decently readable.
This is around line 202 in playing.js:

Code: [Select]
            //List of keys to preventDefault() for.
            var prevented_keys = [
                8, 9,                                                   //Backspace, Tab: Text entry and screen control.
                32,                                                     //Unknown: Unknown.
                33, 34, 35, 36,                                         //PgUp, PgDown, End, Home: Navigation.
                37, 38, 39, 40,                                         //Arrow keys: Numlock navigation.
                112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 123,  //Fn Keys excluding F11: Used for Hotkeys system.
            ];

            //List of keys to totaly ignore.
            var ignored_keys = [
                122,                                                    //F11: Makes game full screen on host computer.
            ];

            var key = function(prefix) {
                return function(event) {
                    if (ignored_keys.indexOf(event.which) > -1) return false;
                    if (prevented_keys.indexOf(event.which) > -1) event.preventDefault();

                    socket.send(prefix + JSON.stringify(
                                { which: event.which
                                , code_point: 0
                                , shift: event.shiftKey
                                , alt:  event.altKey
                                , ctrl: event.ctrlKey }));
                }
            }

This fixes Function keys to work properly for navigating Hotkey locations in the game, it ignores F11 because by default F11 makes DF full screen on the host computer, which is rather inconvenient, and it seemed more appropriate for F11 to enable full screen on your browser. F12 changes TTF on/off which is handy if you forgot to turn it off when setting up the client.

I'll be taking a look around the GIT page for this, I saw something about canvas on there and that interests me so I might take a stab at that.
« Last Edit: October 20, 2013, 10:06:31 pm by Voxus »
Logged

DarkArtemisFowl

  • Bay Watcher
  • Worlds together, worlds apart.
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #117 on: October 26, 2013, 10:11:23 pm »

Dear Adeon,

Let me just say you are absolutely awesome for making this. Now my friends and I can play DF with multiplayer, and with ease. If you had a PayPal link I would throw my money at the screen right now. But for now, +50 internets.

Artemis
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #118 on: October 27, 2013, 02:34:12 am »

Dear Adeon,

Let me just say you are absolutely awesome for making this. Now my friends and I can play DF with multiplayer, and with ease. If you had a PayPal link I would throw my money at the screen right now. But for now, +50 internets.

Artemis

Thanks. I feel uneasy about accepting money for something like this so there will be no donations.
Logged
I make dead people. Dfterm3

reexe

  • Escaped Lunatic
    • View Profile
Re: Dfterm3 v0.3 (2013-10-06)
« Reply #119 on: October 27, 2013, 02:21:30 pm »

Hi i am new to dwarf fortress and i love what u are doing! it enables me to try and learn the game from work and so on ^^
I would very much like to see two things added, first the ability to use "Phoebus" in the web-interface, and second telnet support :)

Thx for ur awesome work!
+rep
Logged
Pages: 1 ... 6 7 [8] 9 10 ... 15