Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAN game connection seems broken #90

Open
stephanemagnenat opened this issue May 1, 2023 · 1 comment
Open

LAN game connection seems broken #90

stephanemagnenat opened this issue May 1, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@stephanemagnenat
Copy link
Contributor

stephanemagnenat commented May 1, 2023

In my home, the client connects to the host and is seen by the host, but on the client side, an empty screen is show forever.

I'm using local network (addresses 192.168.178.XX), the problem happens with both the two computer on Ethernet, and with one Ethernet one Wi-Fi. I am using a Fritz router (FRITZ!Box 5490, FRITZ!OS: 07.29).

Connecting through YOG works.

@stephanemagnenat stephanemagnenat added the bug Something isn't working label May 1, 2023
@stephanemagnenat stephanemagnenat changed the title LAN game seems broken LAN game connection seems broken May 1, 2023
@stephanemagnenat stephanemagnenat added this to the 0.9.6 milestone May 1, 2023
@DeathByDenim
Copy link

I came across this too yesterday. The issue seem to be from commit 8974c4e which involves a perhaps overzealous killing of warnings.

In src/LanFindScreen.cpp:136, there is the declaration of Glob2TabScreen, but it's missing the creation of MultiplayerGameScreen* mgs in the next line.

Should be this:

			Glob2TabScreen screen(true);
			MultiplayerGameScreen* mgs = new MultiplayerGameScreen(&screen, game, client);
			
			
			listener.disableListening();
			int rc = screen.execute(globalContainer->gfx, 40);
			listener.enableListening();
			client->setMultiplayerGame(boost::shared_ptr<MultiplayerGame>());
			if(rc == -1)
				endExecute(-1);
			delete mgs;

It does show the player name twice for some reason for someone joining the game though. Not sure why that is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants