aldehir / ut2004-patches

QoL patches for UT2004.
24 stars 1 forks source link

Can't start a LAN game properly #18

Open Astolfo2001 opened 1 month ago

Astolfo2001 commented 1 month ago

a few days ago, I tried to host a multiplayer game with somebody on Discord via 2 Virtual LAN programs: Radmin and ZeroTier

for the latter, my game wasn't showing in the local/LAN server browser despite us both being connected to the network in zerotier itself

and for the former, every time it tried starting the game, it would either crash or disconnect us both instead

what is wrong and how do I fix it?

aldehir commented 1 month ago

@Astolfo2001,

UT2004, like many games in its era, use broadcasting to advertise itself on LAN networks. This may pose a problem when using a VPN solution, since it doesn't know which network interface to broadcast.

You're better off connecting directly via IP of the person hosting the game instance.

Regarding the crashes, do you have any logs of this occurring? You should have log files inside your UT2004 System folder.

Astolfo2001 commented 1 month ago

my log files: ut2004-win64.log UT2004.log Editor.log server.log

Astolfo2001 commented 1 month ago

however I have heard of people getting Radmin and Hamachi to work with the game though: https://radmin-club.com/other-games/unreal-tournament-2004-lan-play-setup/

aldehir commented 1 month ago

Yes, notice the requirement to set the interface metric so broadcast traffic is routed through the VPN interface instead of your default network interface. Nonetheless, LAN over a VPN is outside the scope of this project.

Your log only shows crashes for the win64 client, which these patches do not currently support. Try using the win32 client, which is UT2004.exe and not ut2004-win64.exe and post any crash logs encountered from that.

I also noticed that you're using the relics mutator. Because of the sheer amount of assets they contain you are forced to use the win64 client or patch the win32 client to enable large address aware (LAA). See https://www.techpowerup.com/forums/threads/large-address-aware.112556/ for more information if you want to patch the win32 client.