Lolcroc / CraftingAutomat

A vanilla-flavoured autocrafter.
6 stars 9 forks source link

Can't join LAN server #17

Closed Zadnicaff closed 2 years ago

Zadnicaff commented 2 years ago

Forge version: 39.0.10 1.18.1 Mod version: 1.2.2

When I try to join LAN server with no other mods I get this: error

Lolcroc commented 2 years ago

I'm not sure if this is related to my mod. Can you post a link to your latest.log in the logs directory directly after you reproduce this error?

Zadnicaff commented 2 years ago

Sure: latest.log

Lolcroc commented 2 years ago

The log looks clean. I have tried to recreate your error with 2 local clients on a bare install of Forge + Crafting Automat. However I can connect through LAN just fine. Have you tried hosting on the other client?

There are some recent discussions on Reddit that suspect this is a problem native to Forge. I have found this solution, could you try it?

Zadnicaff commented 2 years ago

Hosting on the other client and setting the network on both machines to private didn't work.

I've also tried this with Create and Flywheel mods and it gave me the same error, so it looks like this isn't only specific to your mod.

The best solution I could find is to run a separate server instead of the ingame "Open to LAN" option.

dragon3025 commented 2 years ago

I'm having the same problem, when only this mod is installed. My sister gets kicked right after joining when I host a LAN server. I tried setting both connections to private, but it didn't work. Forge: 1.18.1-forge-39.0.14 (I also tried it with 39.0.5 previously) My latest log: latest.log

Since this could be a forge issue: I created an issue for it here: https://github.com/MinecraftForge/MinecraftForge/issues/8377

Lolcroc commented 2 years ago

This issue was non-existent pre-Caves and Cliffs. I don't know why Forge devs claim this problem is "not them", as it's clearly already affecting multiple mods. There is some networking in Crafting Automat that I can try to disable (through config), but it means you'll have to test the result yourself. I'll give you an update later

RavenFayrin commented 2 years ago

My friend and I tested everything we had running and it was the Create mod causing the problem. Every other time I tried to connect with this mod or that, or just with Forge it worked fine. It was when we added Create that it refused.

dragon3025 commented 2 years ago

My friend and I tested everything we had running and it was the Create mod causing the problem. Every other time I tried to connect with this mod or that, or just with Forge it worked fine. It was when we added Create that it refused.

I had this problem when only Crafting Automat was installed, but there are others having a problem with the create mod also. What ever this is, it seems to be affecting people differently.

Lolcroc commented 2 years ago

@dragon3025 I have made a test version for you here. It's important that the LAN host installs the fix, and sets syncronizeTickSettings in their config file to false. I assume it's not necessary that other players install the fix, but you could try anyway.

dragon3025 commented 2 years ago

Thank you, it tested it out and it worked.