Author Topic: LAN - Multiplayer is not working - MegaGlest v3.13.0  (Read 6662 times)

TARA24

  • Daemon
  • Posts: 11
    • View Profile
LAN - Multiplayer is not working - MegaGlest v3.13.0
« on: 19 September 2017, 19:13:19 »
Hallo everyone,

today I tryed to play MegaGlest  v3.13.0 with my Kid I just can not figure out, how to play in Multiplayer when both Computers are on the same Network.
Both Computers (laptops) are with Linux mint 18 and they are found behind a Router.

On the first Computer I went to New Game/LAN game and then clicked on Host Game

and on the second computer clicked on Find Lan Games.
I also tried to connect direct from Terminal(console) with the following:
Code: [Select]
megaglest --connect=IP:PORT
No succes.

One more thing, there is no Firewall on both computer which block us, we play other Games without problems,

Tried also with Costume Game, but with the same rezult.

Do I need some extra settings to make it work on Linux  mint?
« Last Edit: 19 September 2017, 19:33:19 by TARA24 »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #1 on: 19 September 2017, 19:57:04 »
Hi Tara24,

the approach you took should normally work if both computers are on the same network segment:

On the first Computer I went to New Game/LAN game and then clicked on Host Game

and on the second computer clicked on Find Lan Games.

Can you share their local IP addresses? Are the first three bytes of their IP addresses identical? Are both of them connected through wires or though wireless, or is it a mix?

Do you have a firewall running on either computer?

Start the server as you did before. On the second computer (the client), can you try entering the IP address of the other system to connect to it manually (From main menu: New game -> LAN game -> (enter the servers' IP address, make sure "server port #" matches the one the server shows)?

Try repeating these steps after launching MegaGlest from a terminal:
  • Change into the directory MegaGlest is installed in (e.g. 'cd ~/megaglest')
  • run: ./start_megaglest --verbose
  • Navigate to New game -> LAN game -> Find LAN Games
  • Check the terminal window to see whether any error messages were printed
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #2 on: 19 September 2017, 21:10:45 »
Thank you for your fast replay.

Like I said, there is no firewall on both computers and we play other games and works fine, this one not.

Yes, first computer (192.168.0.112) is on cable and the second one (192.168.0.110) it is on Wireless and both use the same port (61357).
I don't see any reason, why should be this a problem.

Any way, I will try tomorrow ( I'm at work now) your suggestion from the terminal to see what comes out.

Thank you.

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #3 on: 20 September 2017, 13:40:15 »
This has been a problem since original glest. I gave up on it working back then, And only began playing MG when the serverlist came in, Because then at least it worked.
WiP Game developer.
I do danish translations.
"i break stuff"

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #4 on: 20 September 2017, 15:06:57 »
Hallo,

I tried everithyng. It does not working.

When I do:
Code: [Select]
megaglest --connect=192.168.0.112:61357I get:
Quote
megaglest --connect=192.168.0.112:61357
megaglest v3.12.0
Compiled using: GNUC: 50301 [64bit] platform: Linux-X64 endianness: little
GIT: [$Rev$] - using STREFLOP [SSE] - [no-denormals]
Connecting to host [192.168.0.112] using port: 61357
Auto Change resolution to (1600 x 900) from (800 x 600)
MainWindow forced change of resolution to desktop values (1600 x 900) instead of (800 x 600)
** #2 Socket peek error for sock = 23 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 23
** Disconnecting sock = 23
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0
** #2 Socket peek error for sock = 22 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 22
** Disconnecting sock = 22
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0

And for this:
Quote
Try repeating these steps after launching MegaGlest from a terminal:
Change into the directory MegaGlest is installed in (e.g. 'cd ~/megaglest')
run: ./start_megaglest --verbose
Navigate to New game -> LAN game -> Find LAN Games
Check the terminal window to see whether any error messages were printed

I get This:
Quote
n [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::end 495]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::end 501]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::end 508]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::end 516]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::~SoundPlayerOpenAL 350]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/sound/sound_renderer.cpp::cleanup 91]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/sound/sound_renderer.cpp::~SoundRenderer 117]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [renderer.cpp::~Renderer Line: 302]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [renderer.cpp::~Renderer Line: 313]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [renderer.cpp::~Renderer Line: 327]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [renderer.cpp::~Renderer Line: 332]
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::handleDebug Line: 405]
In [util.cpp::handleDebug Line: 409] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::logDebugEntry Line: 445]
In [util.cpp::init Line: 246]
In [util.cpp::init Line: 250] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
In [util.cpp::setupRequiredMembers Line: 227]
In [util.cpp::setupRequiredMembers Line: 231] ERROR threadLogger == NULL && SystemFlags::SHUTDOWN_PROGRAM_MODE == true
[2017-09-20 17:03:01] In [renderer.cpp::~Renderer Line: 338]
PBO Delete size = 2
In [util.cpp::Close Line: 330]
In [util.cpp::Close Line: 372]
In [util.cpp::Close Line: 392]
In [util.cpp::Close Line: 400]
In [util.cpp::~SystemFlags Line: 322]
In [util.cpp::~SystemFlags Line: 326]

« Last Edit: 20 September 2017, 15:28:16 by TARA24 »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #5 on: 20 September 2017, 16:17:24 »
I notice you are using 3.12 can you try the latest (3.13) to see if the problem still persists?

Thanks

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #6 on: 20 September 2017, 17:36:16 »
I really do not know why says 3.12, I'm on 3.13

EDIT:
OK, I just called a friend of mine, he is on Linux also, and he tried on his both computer in the same network a LAN game.
Does not work.

Is there anyone  ON LINUX who can explain if it works?
Thank you
« Last Edit: 20 September 2017, 17:50:43 by TARA24 »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #7 on: 20 September 2017, 22:13:08 »
The verbose output you posted (thanks) unfortunately does not hint on what may have gone wrong, so we may need to look into alternatives.

MegaGlest v3.13 (x86_64 / amd64 architecture), as downloaded from https://megaglest.org/download, shows this for me:

Code: [Select]
tomreyn@localhost:~/megaglest$ ./start_megaglest
megaglest v3.13.0
Compiled using: GNUC: 40804 [64bit] platform: Linux-X64 endianness: little
GIT: [Rev: 5607.967257e] - using STREFLOP [SSE] - [no-denormals]

And GNU file says:
Code: [Select]
tomreyn@localhost:~/megaglest$ file megaglest
megaglest: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=644621f3402ad6ce056767729f0fea2a1d85824f, not stripped

I suspect you are using a build created by someone other than us, such as your Linux distribution? Maybe you have more than one copy (different version?) of MegaGlest installed?

I would not expect different versions of MegaGlest to work together on a LAN game.

Unless the apparent version mismatch seems to be the cause, and unless Softcoder has better suggestions, I would suggest you edit glestuser.ini (https://docs.megaglest.org/MG/INI for details, it is usually located at ~/.megaglest/glestuser.ini) and set

Code: [Select]
DebugMode=true
DebugNetwork=true
DebugLogFile=/tmp/mg-debug.log
DebugLogFileNetwork=/tmp/mg-debug-net.log

Then reproduce the issue (start the game and try to connect to the running server on your LAN using the discovery option on the 'LAN game' menu), compress /tmp/mg-debug.log and /tmp/mg-debug-net.log into a zip or tar(.gz/.xz) file and make that archive available (by uploading it somewhere where we may download it from).

Be sure to remove those Debug... lines once you're done testing (or comment them out by prefixing lines with a hash # character).
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #8 on: 20 September 2017, 22:21:47 »
Well I first installed the game via repository:
Code: [Select]
sudo apt-get install megaglest
After I was playing in sigleplayer I tried to play it with my son.
It didn't work.

In came here and noticed that there is another version and deleted the one from repository:
Code: [Select]
sudo apt-get remove --purge megaglestAnd installed the 64Bit version (3.13) from www.megaglest.org (I think from here: https://github.com/MegaGlest/megaglest-source/releases/tag/3.13.0 ), but with same results.

Maybe this helps?
Thank you

Later Edit:

Tomorrow I'm going to install a fresh copy of Linux mint 18.2 (64BIT) please provide me (if is possible) a direct link to download the game via terminal, like:
Code: [Select]
wget xxxxxxx Thank you
« Last Edit: 20 September 2017, 22:34:10 by TARA24 »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #10 on: 20 September 2017, 23:22:51 »
I'm at work now, I'll give it a try tomorrow.
Thank you

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #11 on: 20 September 2017, 23:25:55 »
I have problems with the "Find LAN games"-Button too. BUT I am pretty sure searching for LAN game worked using ubuntu 14.04 with the exactly same MG version.

What does not work for me using ubuntu 16.04:
- "Find LAN games" does somehow not work. ( no broadcasts? are they somehow blocked ? )
- "Find LAN games" does not even work when I run a second MG on the same computer.

What works for me:
- Connecting from one computer to onther using: ./start_megaglest --connect=192.168.178.72:61367
- Connecting via LAN game menu using the IP if both computers use same server port, or I have to describe the server with port too like this: 192.168.178.72:61367

I think the main problem is the somehow not working broadcast of the server. Connecting directly should work.

UPDATE: Even running my own build from current git version does not find open games. Somehting must be different in ubuntu 16.04
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #12 on: 21 September 2017, 04:09:14 »
for me (on Ubuntu 16.04) its working fine on the same machine. I did however notice when playing with my son using 3.13 (I had Ubuntu and he ran Windows 8) while i hosted his 'find lan games' did not find me but he was able to punch in the IP Address and click connect.

On the same linux box i can click search hand it finds me, making me wonder if the problem is in fact something in the search logic on some systems.

Edit megalgest.ini in ~/.megaglest/glest.ini

change the line for this entry to true:

DebugNetwork=true

Save the file (on both systems) then retry. Once it faisl again psot the contents of both systems glest.log files.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #13 on: 21 September 2017, 22:00:20 »
I have collected more infos about the "Find LAN games" Problems:

Run Server in debug mode:
If I run in lan debug mode and I just run the server( for some seconds ) I get this log on the server : http://titi.megaglest.org/tmp/lan_problem/debug_hosting.log

You cannot find a game if 16.04 is hosting
You cannot find games when hosting on a 16.04 Ubuntu and you try to connect to it via "Find LAN game"-button

Crash when pressing "Find LAN game button":
If I host on a 14.04 Ubuntu and I try to join via "Find LAN game"-button from a 16.04 ubuntu, the game crashes! No crash happens when I connect via IP:port directly.
(click to show/hide)

And another crash using latest git version
(click to show/hide)

Everything works using steam version

Everything works using ubuntu 14.04
« Last Edit: 21 September 2017, 22:20:15 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #14 on: 22 September 2017, 00:47:45 »
Ok seems like the logic finding local IP Addresses in Linux did not always find them. I added more code to use another API call to get a list so please try out the GIT code and let me know if its fixed?

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #15 on: 22 September 2017, 00:49:58 »
Could you please provide a link where the GIT code is?

Thank you

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #16 on: 22 September 2017, 04:41:17 »
The latest dev snapshots for every commit are found here:

http://snapshots.megaglest.org/READ_ME_FIRST.html

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #17 on: 22 September 2017, 17:29:12 »
Latest git version works :D. Thanks softcoder!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #18 on: 22 September 2017, 18:17:36 »
@tomreyn

Today I installed a fresh coppy of Linux Mint 18.2.
After I installed the linux Mint, I clicked on your link and downloaded the game from there.

I installed the Game and had no problems.
After I got it installed, I run it from Menu/Games/MegaGlest v13.3.0 and nothing happen.

I opened the consoled ang went there:
Code: [Select]
cd megaglest/
and the fun begins...

1)
Code: [Select]
michael@Michi ~/megaglest $ ./megaglest
./megaglest: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory

I fixed with:
Code: [Select]
sudo apt-get install libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0

2)
Then tried again
Code: [Select]
michael@Michi ~/megaglest $ ./megaglest
./megaglest: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory

Fixed with:
Code: [Select]
sudo ln -s /usr/lib/x86_64-linux-gnu/librtmp.so.1 /usr/lib/x86_64-linux-gnu/librtmp.so.0

3)
Then tried again
Code: [Select]
michael@Michi ~/megaglest $ ./megaglest
./megaglest: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

Fixed with:
Code: [Select]
wget https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb
sudo dpkg -i libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb

4)
Then tried again
Code: [Select]
./megamichael@Michi ~/megaglest $ ./megaglest
./megaglest: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directoy

Fixed with:
Code: [Select]
wget http://ftp.de.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.12.20-8+deb7u5_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.13-2+deb7u2_amd64.deb

sudo dpkg -i libtasn1-3_2.13-2+deb7u2_amd64.deb
sudo dpkg -i libgnutls26_2.12.20-8+deb7u5_amd64.deb

5)
Then tried again
Code: [Select]
michael@Michi ~/megaglest $ ./megaglest
./megaglest: error while loading shared libraries: libGLEW.so.1.10: cannot open shared object file: No such file or directory

Fixed with:
Code: [Select]
wget http://de.archive.ubuntu.com/ubuntu/pool/main/g/glew/libglew1.10_1.10.0-3_amd64.deb
sudo dpkg -i libglew1.10_1.10.0-3_amd64.deb

Finally I managed to start the game with no errors:
Code: [Select]
michael@Michi ~/megaglest $ ./megaglest
megaglest v3.13.0
Compiled using: GNUC: 40804 [64bit] platform: Linux-X64 endianness: little
GIT: [Rev: 5607.967257e] - using STREFLOP [SSE] - [no-denormals]
Auto Change resolution to (1600 x 900) from (800 x 600)
MainWindow forced change of resolution to desktop values (1600 x 900) instead of (800 x 600)

Lan Game Still not working.
« Last Edit: 22 September 2017, 18:23:32 by TARA24 »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #19 on: 22 September 2017, 18:37:55 »
FYI normally the game should start using the script 'start_megaglest' as it maps the libs folder which contains needed dependencies.

Thanks

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #20 on: 22 September 2017, 18:39:23 »
Nop, is not working.

Fresh installed linux on both Computers

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #21 on: 22 September 2017, 18:43:52 »
Running ./start_megaglest (like in my previous post) would have been easier than what you went through there, since it would have helped you identify missing libraries in one go. Personally I would also not feel safe installing deb's downloaded from plain HTTP without validation - I bet your distribution provides compatible libraries (although I do not use it - I just know it is partially based on Ubuntu).

I think we can conclude by now that 'Find LAN game' does not always work with v3.13.0, and that this issue is limited to newer Linux distribution versions which make use of predictable network interface names.
So this is not going to work for you on v3.13.0, and I suggest you try a snapshot build (which, I would think, is, so far, compatible to v3.13.0). You could also build yourself, of course, but this would involve more work on your end.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #22 on: 22 September 2017, 18:50:23 »
The problem is not only this version. Linux mint provides (via apt-get)  3.12 and there is the same problem.
I think has something to do with Distro version or with some incompatibility between this game and Linux mint.

Like I said I have no problmes playing Other games.

Does anyone confirm that works on Linux mint?
If yes, which Distro vaersion and wich game version?

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #23 on: 22 September 2017, 20:34:34 »
Have you tried the snapshot, yet?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

TARA24

  • Daemon
  • Posts: 11
    • View Profile
Re: LAN - Multiplayer is not working - MegaGlest v3.13.0
« Reply #24 on: 22 September 2017, 21:37:07 »
Have you tried the snapshot, yet?

I lost too much time installing on both computers fresh copy of Linux mint + downloading/installing the game again.

Anyway I’m not sure if is a game problem, an Operating System Problem or a network problem.

Before I went to work (I’m at work now) I booted in windows on both computers, downloaded and installed the game for windows 64BIT and still the same problem.

I tried on one computer to be server and clicked on find lan game on the second one and viceversa.

Isn’t working.

Step wich I made:

One one computer went to new game / LAN game and added the IP address of that computer (192.168.0.112) and I let the default Server Port: 61357

On the second computer I go to LAN Game an type the ip of the first computer (192.168.0.112) and the port 61357 and click on Connect, nothings happened.

Tried also viceversa.

I can tell you a list of games which works fine in the same maner, one as server and second one as client and I have no problems.

I’ll give it a try tomorrow.
« Last Edit: 22 September 2017, 21:59:42 by TARA24 »