multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.37k stars 423 forks source link

MTA Serial Validation no longer working on Linux. #3351

Open Gravarty opened 5 months ago

Gravarty commented 5 months ago

Describe the bug

I've been playing MTA on Linux for a while now, I know how to set up the server, validate my serial, etc. But for some reason it can't no longer be verified and the classic "There was a problem validating your serial." shows up. I've tried to start a server on my other Linux machines (Ubuntu LTS and Arch) and starting MTA via Wine, the error message still shows up.

Steps to reproduce

Follow the official tutorial on how to set up and run a MTA Server: https://wiki.multitheftauto.com/wiki/Installing_and_Running_MTASA_Server_on_GNU_Linux

The server will startup without issues: Querying MTA master server... success!

Start MTA and notice the serial still can't be validated.

Version

Client 1.6.0 on Arch Linux 6.8.1 and Ubuntu LTS 22.04.04 installed using Lutris version 7.2.2 32-Bit

bug

EDIT: The default resources aren't need for verfication, but i tried it anyway and this also doesn't fix the problem.

oppotaku commented 5 months ago

I've tried every method mentioned in multiple issues and in the support discord, still no luck on my system.

Gravarty commented 5 months ago

I've tried every method mentioned in multiple issues and in the support discord, still no luck on my system.

Yeah, same. It's a shame that this problem is not noticed by the MTA team. I understand that MTA is a Windows app and running it under Wine means "you're doing it on your own without any support". It's just the serial verification thing that was introduced to keep MTA away from cloud gaming i think.

Ianec21 commented 1 month ago

Any update on this?

ja0n commented 3 weeks ago

I tried to debug this issue but have hit a dead end as the error seems to come from netc.dll which is closed source (for security reasons or something like that)

Anyway, following the lead that if you start the MTA Client without internet connection it "works" I did some experiments and found a workaround. You can run it with systemd-run setting IPAddressDeny, which seems enough to not trigger the issue:

systemd-run --scope -p IPAddressDeny=any wine ~/.wine/drive_c/Program\ Files\ \(x86\)/MTA\ San\ Andreas\ 1.6/Multi\ Theft\ Auto.exe

A tip: for easiness you can edit the .desktop shortcut file to use the systemd-run in ~/.local/share/applications/wine/Programs/