Youda008 / DoomRunner

Preset-oriented graphical launcher of various ported Doom engines (an alternative to ZDL)
GNU General Public License v3.0
205 stars 13 forks source link

Unable to launch multiplayer game via Doom Runner #71

Closed mikeangelparra closed 1 year ago

mikeangelparra commented 1 year ago

I am using the linux version of gzdoom 4.8.2, not the flatpak version.

When I try and launch a multiplayer game through Doom Runner, I receive no feedback and nothing happens. I try and join the game on another PC in hopes it launched in the background, but failed to join. If I copy the command provided by Doom Runner to launch a multiplayer game into the terminal AFTER attempting on Runner, it will say port already in use. It seems Runner leaves an instance of gzdoom hogging port 5029. If I run "killall -9 gzdoom" and then try again via terminal, multiplayer launches just fine.

Youda008 commented 1 year ago

Hm, that's strange. Until 1.6 DoomRunner doesn't hold any joinable instance of the Doom process, it starts it detached and then it's left alone. So when the Doom quits, the process should exit and release all resources immediatelly. I tried it myself in my Ubuntu, and the GZDoom quited normally. I don't think this is an issue of DoomRunner. Something seems fishy in your system. Please beware that when GZDoom ends, it leaves this kind of "good bye" window open until clicked on the screen. obrazek Maybe it's stuck in this state?

Youda008 commented 1 year ago

@mikeangelparra I did some testing and i found what's happening there. The problem is that unlike in Windows, in Linux the GZDoom doesn't show the loading dialog that says "Waiting for players", instead it just writes it to a terminal and waits. That means if you click Launch from DoomRunner that was not started from terminal, this output gets thrown away and not displayed, so it seems like nothing is happening, but the GZDoom is already running and waiting for clients to join the server. And if you click Launch again, it will try to start second GZDoom and that one will fail because the port is already used by the first one.

Look at this image

For these cases i created this feature image I suggest you use it. In next release i will make this option default for Linux.

Youda008 commented 1 year ago

In version 1.6.1 I improved the launcher's behaviour in this scenario on Linux. But those who already used 1.6 at least once will still have to manually enable the "Show engine's standard output" option shown above, because 1.6 initialized it to off by default.

mikeangelparra commented 1 year ago

Thank you so much! Sorry it took me so long to get back to you, been busy with work lately. Your work on this project is much appreciated, thank you again