Bay 12 Games Forum

Please login or register.

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

Author Topic: Dfterm2 0.16, server software for playing Dwarf Fortress remotely  (Read 250149 times)

Elvang

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #105 on: March 25, 2010, 01:16:52 am »

If you type /slot it'll list the number of available slots as (current slot/number of slots + 1 [index starts at 0]). For example, on a 2 instance server /slot will show (0/2) when in position 0, and let you switch to slot 2 and show (2/2) while telling you its an invalid slot at the top where it normally says /launchdf.

Also, UI suggestions to make it easier to distinguish which slot a person is talking about. Messages from a different slot are a different color, with system messages as white. When you switch slots the chat colors switch accordingly.
Spoiler: 2 instance server (click to show/hide)
Spoiler: 3+ instance server (click to show/hide)
« Last Edit: March 25, 2010, 01:21:40 am by Elvang »
Logged
The Practicalities of Fire Imp Defense
Tileset fonts for dfterm/telnet
Win 0.34.11 SDL with 7 binary patched bugfixes
Quote from: They Dig
I have come here to drink booze and breach HFS... and I'm all out of booze.

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #106 on: March 25, 2010, 03:53:19 am »

If you type /slot it'll list the number of available slots as (current slot/number of slots + 1 [index starts at 0]). For example, on a 2 instance server /slot will show (0/2) when in position 0, and let you switch to slot 2 and show (2/2) while telling you its an invalid slot at the top where it normally says /launchdf.

Also, UI suggestions to make it easier to distinguish which slot a person is talking about. Messages from a different slot are a different color, with system messages as white. When you switch slots the chat colors switch accordingly.
Spoiler: 2 instance server (click to show/hide)
Spoiler: 3+ instance server (click to show/hide)

Fixed the slot bug and implemented a similiar color system than in your 3+ instance server. They will appear in next version.
Logged
I make dead people. Dfterm3

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #107 on: March 25, 2010, 03:14:52 pm »

hi,
something is wrong.

i run 40d19.2 and dfterm. dfterm ends with:
"A running DF instance can be attached to slot 0."

putty on localhost 8000 opens and closes immediately afterward
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #108 on: March 25, 2010, 04:28:18 pm »

hi,
something is wrong.

i run 40d19.2 and dfterm. dfterm ends with:
"A running DF instance can be attached to slot 0."

putty on localhost 8000 opens and closes immediately afterward

That happens when dfterm can't find its files. Check your dfterm installation and that dfterm can find the script file (dwarf_fortress_term.lua) it needs.
Logged
I make dead people. Dfterm3

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #109 on: March 25, 2010, 04:37:11 pm »

hi,
something is wrong.

i run 40d19.2 and dfterm. dfterm ends with:
"A running DF instance can be attached to slot 0."

putty on localhost 8000 opens and closes immediately afterward

That happens when dfterm can't find its files. Check your dfterm installation and that dfterm can find the script file (dwarf_fortress_term.lua) it needs.


Hi, thank you for fast answer!
does "installation" means something else than "unzip"?

I created .dfterm directory in dwarf fortress folder and unzipped dfterm there, then started
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #110 on: March 25, 2010, 04:40:04 pm »

...output is like this...


C:\Program Files\df.40d19.2\.dfterm>dfterm.exe
Dwarf Fortress-to-Terminal server program version Mar 24 2010 10:21:26
Server FPS is 30
Server port is 8000
Server hosting address is 0.0.0.0
Will try to autodetect DF version and memory configuration.
Checking if lua script dwarf_fortress_term.lua is available.
Successfully ran through the script. Checking if it defined event().
It did. Scripting enabled.
Now listening on 0.0.0.0:8000
Using path  for slot 0
Using working directory  for slot 0
A running DF instance can be attached to slot 0.


putty starts and dies
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Elvang

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #111 on: March 25, 2010, 04:56:54 pm »

It looks like you didn't define a path for it to find DF. Add a DFWORK: and DFPATH: line to your dwarf_fortress_term_conf.txt. DFWORK should point to the folder the DF executable is in, while DFPATH points to the actual DF executable.
« Last Edit: March 25, 2010, 05:00:01 pm by Elvang »
Logged
The Practicalities of Fire Imp Defense
Tileset fonts for dfterm/telnet
Win 0.34.11 SDL with 7 binary patched bugfixes
Quote from: They Dig
I have come here to drink booze and breach HFS... and I'm all out of booze.

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #112 on: March 25, 2010, 05:09:25 pm »

great! works like a charm

please include these params in config in next version, for future dfterm newbie :)
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #113 on: March 26, 2010, 04:04:42 am »

great! works like a charm

please include these params in config in next version, for future dfterm newbie :)

Good thing you got it to work. I'm still a bit puzzled about the putty disconnecting part, because it should allow you to connect and see the chat and waiting screen even if DF is not even installed. But if it works I guess there's nothing to complain about.  :)
Logged
I make dead people. Dfterm3

GuyonBroadway

  • Escaped Lunatic
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #114 on: March 27, 2010, 07:53:40 am »

Being the telnet illiterate i am, I'm having trouble getting others to connect to the server.

I follow your quick tutorial for dummies yet i do not know hot to allow others to join.

I asked them to join via my IP address and someone using windows 7 telnet.  I'm not sure if they were connecting via port 8000, but after mentioning that they though it was a port problem (and me saying that you needed to connect via port 8000) they said, "nope still not"

There is probably something silly and fundamental going on here but any help would be most appreciated, thanks.
Logged

Elvang

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #115 on: March 27, 2010, 11:42:41 am »

With dfterm running, try using this. If it can't connect then the problem is probably on your end somewhere.

If you're behind a router you'll likely need to port forward. Firewalls might need exceptions depending on how you installed them. If you use a block list of some kind (programs such as Peer Guardian and Peer Block on windows) check the log and make sure their ip isn't being blocked.

Another possibility is your isp blocks traffic on certain ports to prevent the spread of malware and such. Try a much lower port ( <1024) or a completely random one.
Logged
The Practicalities of Fire Imp Defense
Tileset fonts for dfterm/telnet
Win 0.34.11 SDL with 7 binary patched bugfixes
Quote from: They Dig
I have come here to drink booze and breach HFS... and I'm all out of booze.

daysanew

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #116 on: March 28, 2010, 03:26:49 pm »

I'm having a problem using version v0.1.3. It won't find my game in memory. When I load it up it just says

Dwarf Fortress-to-Terminal server program version Mar 24 2010 10:21:26
Server FPS is 30
Server port is 8000
Server hosting address is 0.0.0.0
Will try to autodetect DF version and memory configuration.
Checking if lua script dwarf_fortress_term.lua is available.
Successfully ran through the script. Checking if it defined event().
It did. Scripting enabled.
Now listening on 0.0.0.0:8000
Using path E:\df19\dwarfort.exe for slot 0
Using working directory E:\df19\ for slot 0
A running DF instance can be attached to slot 0.



As you can see I set the directory and exe path, and I've tried adding quotes, making lowercase e: (my drive is e not c), took the \ from the work directory etc, but it still won't find it.
But I grab a copy of 0.1.2c and it finds it just fine and everything seems to work.
Not sure whats up, I just XP home.
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #117 on: March 28, 2010, 03:51:21 pm »

I'm having a problem using version v0.1.3. It won't find my game in memory. When I load it up it just says

Dwarf Fortress-to-Terminal server program version Mar 24 2010 10:21:26
Server FPS is 30
Server port is 8000
Server hosting address is 0.0.0.0
Will try to autodetect DF version and memory configuration.
Checking if lua script dwarf_fortress_term.lua is available.
Successfully ran through the script. Checking if it defined event().
It did. Scripting enabled.
Now listening on 0.0.0.0:8000
Using path E:\df19\dwarfort.exe for slot 0
Using working directory E:\df19\ for slot 0
A running DF instance can be attached to slot 0.



As you can see I set the directory and exe path, and I've tried adding quotes, making lowercase e: (my drive is e not c), took the \ from the work directory etc, but it still won't find it.
But I grab a copy of 0.1.2c and it finds it just fine and everything seems to work.
Not sure whats up, I just XP home.

Starting from 0.1.3, DF is not started or attached to immediately. You need to connect to dfterm first and write /launchdf from chat. If DF is running, it will attach to DF at that point or launch it, depends on how you configured it. The reasoning behind this is to spare the resources of the server when there's no game going on, dfterm can run and people can connect and chat even when DF is not running.



« Last Edit: March 28, 2010, 03:53:14 pm by Adeon »
Logged
I make dead people. Dfterm3

daysanew

  • Bay Watcher
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #118 on: March 28, 2010, 06:12:01 pm »

Ok thanks, though when trying this out it did seems to catch DF when I started the game after Dfterm was launched.

The only suggestion I really have is updating and improving that manual and tutorials. I didn't see in any of them that I had to start the game from Dfterm itself, or even then the need to have the config file pointing the dir and exe, though the manual did mention how. I believe the most important of the two is updating the tutorial. This isn't a complaint, just a suggestion. I really like where this is going and how this works. I haven't had time to really look at all the details, but if there isn't a way for an admin to control who has, well control at the time, then that would be something worth implementing too.
Either way, good job, really enjoy it.
Logged

Adeon

  • Bay Watcher
  • Obey.
    • View Profile
Re: Dfterm, Dwarf Fortress in a terminal (v0.1.3 - 24/3/2010)
« Reply #119 on: March 29, 2010, 09:26:40 am »

Ok thanks, though when trying this out it did seems to catch DF when I started the game after Dfterm was launched.

The only suggestion I really have is updating and improving that manual and tutorials. I didn't see in any of them that I had to start the game from Dfterm itself, or even then the need to have the config file pointing the dir and exe, though the manual did mention how. I believe the most important of the two is updating the tutorial. This isn't a complaint, just a suggestion. I really like where this is going and how this works. I haven't had time to really look at all the details, but if there isn't a way for an admin to control who has, well control at the time, then that would be something worth implementing too.
Either way, good job, really enjoy it.

Thank you. I'm planning more fine grained user control in later versions (user registering and stuff, if a server admin wants that). Writing the initial documentation was very...painful to say the least. The dummy guide in the post is for 0.1.2, I probably should update that too (when I can be bothered...ehehehe...)
Logged
I make dead people. Dfterm3
Pages: 1 ... 6 7 [8] 9 10 ... 46