Bay 12 Games Forum

Please login or register.

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

Author Topic: Co-op Dwarfmode (online simultaneous multiplayer)  (Read 114211 times)

TheAngerSpecialist

  • Escaped Lunatic
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #120 on: May 17, 2020, 05:55:21 pm »

Hello, I am trying to use this mod to help my brother learn to play Fortress mode, and just because it is fun to play together. We've been able to get it up and running, however, we'd both like to have access to someof the convenient features of the LNP. Of course, I'm aware that this mod has conflicts with other df-hacks and extensions. We're willing to do some trial and to figure out which ones will break it and which ones will continue to work. I could be happy if the only thing I got working was the Dwarf labor manager window that is enabled by default in LNP (The menu that lists all your dwarves and has a table with each labor available, the dwarf's ability and whether or not it's enabled. Not Dwarf Therapist, the one in Dwarf Fortress.)
Has anyone been able to install dfplex on an LNP? Is it possible (if, for example, I replace the df install and dfhack with the correct version)?

Thanks.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #121 on: May 17, 2020, 11:27:50 pm »

EDIT: Also, what version of Visual Studio do you have installed? You need either the 2015 or 2017 toolchain installed.
As far as I know, you need exactly the 2015 toolchain. You can install that in Visual Studio 2017, but there are some ABI differences between the toolchains, so you need to use the one that matches DF (2015).
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.

flabort

  • Bay Watcher
  • Still a demilich, despite the 4e and 5e nerfs
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #122 on: May 18, 2020, 11:05:22 am »

Ah, I see. You may need to edit that file, perhaps in particular to edit the -G and -T options to cmake. What error message are you getting?

EDIT: Also, what version of Visual Studio do you have installed? You need either the 2015 or 2017 toolchain installed.

EDIT: Also, what version of Visual Studio do you have installed? You need either the 2015 or 2017 toolchain installed.
As far as I know, you need exactly the 2015 toolchain. You can install that in Visual Studio 2017, but there are some ABI differences between the toolchains, so you need to use the one that matches DF (2015).
I have 2017, and this is the error I get:
Spoiler (click to show/hide)
If I truely need to get the 2015 toolchain, how do I do so? If this is some other error, how do I resolve it?
Logged
The Cyan Menace

Went away for a while, came back, went away for a while, and back for now.

bloop_bleep

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #123 on: May 18, 2020, 11:18:22 am »

Try editing the generate-MSVC-all.bat file and editing the last command to be:

Code: [Select]
cmake ..\..\.. -G"Visual Studio 15 Win64" -T v141 -D CMAKE_INSTALL_PREFIX="%_DF_PATH%" -D BUILD_DEVEL=1 -D BUILD_DEV_PLUGINS=1 -D BUILD_STONESENSE=1 -D CMAKE_C_COMPILER="%CMAKE_C_COMPILER%" -D CMAKE_CXX_COMPILER="%CMAKE_CXX_COMPILER%"

I have CMAKE_C_COMPILER set to C:\Strawberry\c\bin\gcc.exe  and CMAKE_CXX_COMPILER set to C:\Strawberry\c\bin\g++.exe as environment variables. Replace those paths with the analogous paths for your Strawberry Perl installation (which is usually required to compile DFHack anyway).

I'm actually not sure why I'm specifying gcc and g++ as the compilers, but it seems to work on my system... Maybe leave those off for now, lol.

As for installing the VC2015 toolchain, I would probably just install Visual Studio Community 2015, which should include it.
« Last Edit: May 18, 2020, 11:35:29 am by bloop_bleep »
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

lethosor

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #124 on: May 18, 2020, 11:35:39 am »

If you use GCC to build DFHack for Windows, it will definitely crash on startup. I'm not as sure about MSVC 2017, or how to get the 2015 toolchain if you don't have it. https://docs.dfhack.org/en/latest/docs/Compile.html seems to say that either the 2015 or 2017 toolchain should work. I know Ragundo recently ran into a startup crash that he fixed by switching to 2015, but we're not sure if the 2017 toolchain was the actual cause or not.

Edit: regarding the error, it looks like you might not have msbuild installed at all? You could try the build tools link from https://docs.dfhack.org/en/latest/docs/Compile.html#microsoft-visual-studio-2015 - it looks like that might also be the 2015 toolchain specifically. Note that I don't build on Windows, so I don't know if any of this will help for sure.
« Last Edit: May 18, 2020, 11:38:42 am by lethosor »
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.

bloop_bleep

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #125 on: May 18, 2020, 11:38:53 am »

Well, my installation is not crashing on startup. My build runs MSVC, actually. I'm not actually sure why I have those options to cmake like that, I was just looking at the scripts as I have them set up from a while ago, which seems to work, but you might be able to just leave those off. I was fiddling a LOT with them.

Additionally you may need to add some things to PATH. Looking here, I have the CMake bin directory, and C:\Strawberry\perl\bin, C:\Strawberry\perl\site\bin, and C:\Strawberry\perl\vendor\lib\auto\XML\LibXML in my PATH.

I also had to edit the build/install scripts so they find the vcvarsall.bat file.
« Last Edit: May 18, 2020, 11:46:01 am by bloop_bleep »
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

lethosor

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #126 on: May 18, 2020, 11:58:23 am »

I suspect the -T option is overriding them, then. In general, I wouldn't recommend attempting to specify GCC on Windows,n case it ends up actually being used.

The Strawberry Perl paths are documented here: https://docs.dfhack.org/en/latest/docs/Compile.html#perl-strawberry-perl. I would ask that if you notice any that are necessary but missing from the docs (or anything else missing, for that matter) that you open a GitHub issue or PR, or report it in the DFHack thread. Building on Windows is complicated, but it is far better to have working instructions in one official place than changes to the instructions scattered across several forum threads.
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.

white-rabbit

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #127 on: May 18, 2020, 02:18:41 pm »

Version 0.2 is out! Compatible with DFHack 0.47.04-r1.

Changelog TBA.
Logged

Naeght

  • Escaped Lunatic
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #128 on: May 18, 2020, 03:18:32 pm »

HI everyone. Great tool!
I wanted to use it to teach a friend of mine some basic DF, but we have a distortion on the display of tilesets no matter which one we use.

https://imgur.com/a/cb6wRES

Those green tiles appear no matter wich tileset we manage to configure. Anyone has any idea what's happening? Or how i could diagnose it?
Logged

white-rabbit

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #129 on: May 18, 2020, 04:30:30 pm »

HI everyone. Great tool!
I wanted to use it to teach a friend of mine some basic DF, but we have a distortion on the display of tilesets no matter which one we use.

https://imgur.com/a/cb6wRES

Those green tiles appear no matter wich tileset we manage to configure. Anyone has any idea what's happening? Or how i could diagnose it?

I'm not sure exactly, but you can get some graphical problems if the three tilesets (text, area, and map) are different sizes. Make sure you've set all three in config.js, or try connecting to localhost:8000/dfplex.html?tiles=curses_800x600.png&text=curses_800x600.png&overworld=curses_800x600.png (on your machine after starting the game). This uses URL parameters to set the tileset in the browser.

Additionally, you can try using a different browser -- I've had no problems with Firefox.
« Last Edit: May 18, 2020, 04:33:10 pm by white-rabbit »
Logged

flabort

  • Bay Watcher
  • Still a demilich, despite the 4e and 5e nerfs
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #130 on: May 18, 2020, 08:18:13 pm »

Version 0.2 is out! Compatible with DFHack 0.47.04-r1.

Changelog TBA.
Sweet!
Now I don't have to struggle any more with trying to compile the darn thing :D

Edit: New issue, now my browser isn't connecting, and the game isn't having any issues playing in the main window. dfhack is reporting that I'm trying to connect, but the browser only says "Connection Error - Click to retry", with an empty FPS box in the corner, and "- players" in another corner.

Edit2: dfplex_server.log has something interesting to say.
Code: [Select]
A new client has joined.
  Client addr: "???"
  Client is admin.
Further, stdout.log has no text whatsoever, while in the older version (which I installed with the batch file), the file had the lines
Code: [Select]
[2020-05-18 19:28:01] [DFPLEX] Dwarfplex websocket serving on 1234
[2020-05-18 19:28:01] [DFPLEX] (Do not connect to this in your browser.)
which I assume means something. So since that's not happening in this version... what did I break?
« Last Edit: May 18, 2020, 09:07:22 pm by flabort »
Logged
The Cyan Menace

Went away for a while, came back, went away for a while, and back for now.

white-rabbit

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #131 on: May 18, 2020, 09:35:46 pm »

Edit: New issue, now my browser isn't connecting, and the game isn't having any issues playing in the main window. dfhack is reporting that I'm trying to connect, but the browser only says "Connection Error - Click to retry", with an empty FPS box in the corner, and "- players" in another corner.

Edit2: dfplex_server.log has something interesting to say.
Code: [Select]
A new client has joined.
  Client addr: "???"
  Client is admin.
Further, stdout.log has no text whatsoever, while in the older version (which I installed with the batch file), the file had the lines
Code: [Select]
[2020-05-18 19:28:01] [DFPLEX] Dwarfplex websocket serving on 1234
[2020-05-18 19:28:01] [DFPLEX] (Do not connect to this in your browser.)
which I assume means something. So since that's not happening in this version... what did I break?

Hmm, try editing data/init/dfplex.txt to change the port, perhaps that will work? It's strange that you don't see anything regarding the 1234 websocket port in the stdout.
Logged

flabort

  • Bay Watcher
  • Still a demilich, despite the 4e and 5e nerfs
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #132 on: May 19, 2020, 10:39:04 am »

Changing 1234 to 1235 doesn't work, and in fact the dfplex terminal stops saying new connection when I load localhost:8000. dfplex_server.log also does not even register the attempt to log in.

Changing it back to 1234, and setting staticport to 9000 has the expected effect that nothing loads on localhost:8000 and instead the page loads on localhost:9000, but the error remains. dfplex_server.log does register the attempt to connect, but still has the ??? address.

Does this bit at the end of stderr.log matter? Especially the port 5000 bit?
Code: [Select]
Starting the TCP listener.
Starting IO thread.
Listening on port 5000
Starting DF input capture thread.
DFHack is running.
Invoking: enable dfplex
Websocket server starting on port 1235 using IXWebSocket.Console is shutting down properly.
Wait, actually, looking at this, the last bit is similar to what stdout.log had in the previous version. The rest is actually in the old version's output, so I'm assuming the port 5000 bit is fine.
Logged
The Cyan Menace

Went away for a while, came back, went away for a while, and back for now.

bloop_bleep

  • Bay Watcher
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #133 on: May 19, 2020, 10:48:20 am »

Firewall may be blocking those ports. Try port 80, that's usually not blocked.
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: Co-op Dwarfmode (online simultaneous multiplayer)
« Reply #134 on: May 19, 2020, 11:52:38 am »

Missing feature report: Trying the example on the discord with Phoebus/Wanderlust settings; it seems the mouse doesn't work (which is necessary for world painter).
Pages: 1 ... 7 8 [9] 10 11 ... 13