Community Forums > Voobly Community > Other Games > Age Of Mythology > Age Of Mythology Titans voobly on Wine (Ubuntu)

Age Of Mythology Titans voobly on Wine (Ubuntu)

 ApextOC


Edited 26 December 2019 - 12:40 pm by ApextOC
Hello.

So I've been trying the past couple of days to run AoT on ubuntu. The problem is that each time i create a lobby in-game the ip shown at the top is 0.0.0.0 and of course i can't play any games. Is there a solution to this problem?
I've installed directplay, I use the latest version of wine-staging and I've reinstalled wine and the game several times.

Thanks in advance.
Attachments:
screenshot.png (file size: 967.86 KB)

Link | Reply | Quote
 Kicking


Posted 26 December 2019 - 7:52 pm
Hello ApextOC, from which source did you get the game?

Please remember the Steam version of AOM/AOM:TT is not supported by Voobly.
Link | Reply | Quote
 ApextOC


Posted 26 December 2019 - 10:31 pm
Hello.
Thanks for the fast reply.
I installed the game from my original CDs. The same game files work fine in windows(with voobly).

Thanks.
Link | Reply | Quote
 +BlackAdder_


Posted 11 January 2020 - 4:35 am
Hey,

Did you get it working? Looking how you have games on your account?

If not I did a bit of googling and this came out, check it out if it helps:

[You must login to view link]

[You must login to view link] of the game being block by some firewall.

Cheers and gl&hf in your games,

Black Adder
Link | Reply | Quote
 ApextOC


Posted 15 January 2020 - 8:03 am
Hey Blackadder.

No I haven't fixed it, I'm playing on windows. I found the link you provided, a while ago so I created this thread:

[You must login to view link]

According to the guy responding, that bug was fixed in an old version of wine, but still something is wrong with my pc and I get 0.0.0.0. Honestly, I just gave up on fixing it, I wasted too much time on it arleady..

Thanks
Link | Reply | Quote
 +BlackAdder_


Posted 15 January 2020 - 3:15 pm
Okay, well, np, sorry we could not find a solution, glad you're able to play anyway.
Link | Reply | Quote
 ApextOC


Posted 3 March 2021 - 11:55 pm
Hello everyone.

An update. I managed to almost "fix" it. The game now shows the right IP in lobby and I can start and play the game, but after a couple of minutes it crashes. I don't know exactly why, but it is related to the vooblynat file. If anyone is interested I can share the source code. The problem I think is that voobly tries to access the I.P. of an interface that doesn't exist(was not created) in wine, and for that reason it shows 0.0.0.0. So the "fix" was to simply change the function that returns the I.P. of an interface so when voobly requests the I.P. of that interface the function returns the right I.P. The next thing to do I think, is to add a new interface in the "interface table", but I haven't figured how to do that yet.. so I could use some help!

Thanks in advance
Link | Reply | Quote
 RiderOfRohann


Posted 20 June 2021 - 8:50 pm
Any update on this? also how did you do the first part to avoid getting 0.0.0.0 ?
Link | Reply | Quote
 ApextOC


Posted 4 July 2021 - 8:30 am
Hello RiderOfRohann.

I "changed"(a tiny bit) the code in the file socket.c, in the wine source. You can download the source from here:

[You must login to view link]

Then you have to go find this(at line 2932 and below):
Code:
if (found_index == ipAddrTable->dwNumEntries) { ERR("no matching IP address for interface %d\n", row.dwForwardIfIndex); HeapFree( GetProcessHeap(), 0, ipAddrTable ); SetLastError( WSAEFAULT ); return -1; }

Then you have to replace it with:
Code:
if (found_index == ipAddrTable->dwNumEntries) { found_index = found_index - 1; }

After you do that, you have to compile wine:
[You must login to view link]

I don't recommend you to do that because it simply crashes after a couple of minutes, so it is a waste of time in a sense. To be honest I don't fully understand how the code works. The "solution" is really simple and "naive" I would say, but atleast it fixes the 0.0.0.0 problem 8) . Right now, I don't have time to look into it any further, maybe in a few months(or years) I will come back. I was so happy for a couple of minutes, when I managed to connect and play the game, I thought I had fixed it but then it crashed. ;tears
Link | Reply | Quote
 kaidelorenzo


Posted 28 February 2022 - 3:06 am
Is this some kind of issue with new Linux distributions? It seems like people have gotten Age of Mythology working through wine in the past. Is there anyone out there that currently as Voobly and Age of Mythology working in wine on Linux?
Link | Reply | Quote
 ApextOC


Posted 18 March 2022 - 3:23 pm
Hi kaidelorenzo.

You can run AOM with wine, fine. You can even play LAN games if you want. The issue is with voobly AND AOM. I haven't found any posts online about playing AOM with voobly on wine, only posts about exclusively running AOM on wine. I don't think that it would make a difference running an older version of linux(distro or kernel).

Link | Reply | Quote
 ApextOC


Posted 18 March 2022 - 10:13 pm
I'm starting to think that the crash is unrelated to the I.P. problem. I've dumped the terminal output, and the vooblynat.txt, below. If any developer(or anyone really) can help, I would appreciate it. Tested the latest version of voobly too(2.3.3.0), and the latest version of wine(7.3). I see this thread is quite popular, shame that a solution has not been found yet.
Code:
0654:fixme:advapi:RegisterEventSourceW ((null),L"Age of Mythology"): stub 0654:fixme:advapi:ReportEventA (CAFE4242,0x0001,0x0000,0x000003e8,00000000,0x0005,0x0000005d,0201ED04,0201E8BC): stub 0654:fixme:advapi:ReportEventW (CAFE4242,0x0001,0x0000,0x000003e8,00000000,0x0005,0x0000005d,00287030,0201E8BC): stub 0654:err:eventlog:ReportEventW L"aomxnocd.exe" 0654:err:eventlog:ReportEventW L"4.2004.1.500" 0654:err:eventlog:ReportEventW L"vooblynat2.dll" 0654:err:eventlog:ReportEventW L"0.0.0.0" 0654:err:eventlog:ReportEventW L"00016e8c" 0654:fixme:advapi:DeregisterEventSource (CAFE4242) stub
Code:
23:04:07 vooblynat2.dll v2.3.3.0 loaded! 23:04:07 CNatCommunication::Init successful! 23:04:07 PID = 1520 23:04:07 bDirectPlay = 0 23:04:07 bBroadcast = 1 23:04:07 bRemotePort = 1 23:04:07 bForceBindLocal = 1 23:04:07 bNoZeroBytesInIP = 1 23:04:07 bNoConnectACKs = 0 23:04:07 bIPXWrapper = 0 23:04:07 GameShort = AOMT 23:04:07 NetworkDLL = 23:04:07 !pSymbolAddress 23:04:07 failed to hook 'WSARecvFrom'. 23:04:07 !pSymbolAddress 23:04:07 failed to hook 'WSASendTo'. 23:04:07 !pSymbolAddress 23:04:07 failed to hook 'WSAGetOverlappedResult'. 23:04:07 !pSymbolAddress 23:04:07 failed to hook 'WSAWaitForMultipleEvents'. 23:04:07 IPHLPAPI.DPLL loaded! 23:04:07 ...GetIpAddrTable hooked 23:04:07 ...pGetAdaptersInfo hooked 23:04:07 CNatCommunication::ThreadEntry IN 23:04:07 NatRecvMessage - NAT_MSG_WELCOME 23:04:07 NatRecvMessage - NAT_MSG_HOST_INFO - UDP Port = 55565, TCP Port = 37999, UID = 124193397, Local IP = 119.57.41.235 23:04:12 gethostbyname(eso.com) 23:04:12 ... address[0]=141.193.213.20 23:04:12 ... address[1]=141.193.213.21 23:04:12 GetIpAddrTable 23:04:12 ... ERROR_INSUFFICIENT_BUFFER 23:04:12 GetIpAddrTable 23:04:12 ... success 23:04:12 SIO_ROUTING_INTERFACE_QUERY 23:04:12 bind(0.0.0.0:2296->127.0.0.1, s=218) 23:04:12 getsockname(s=218, 127.0.0.1:2296)->0 23:04:12 getsockname OUT(0.0.0.0:2296) cached 23:04:12 gethostbyname(eso.com) 23:04:12 ... address[0]=141.193.213.20 23:04:12 ... address[1]=141.193.213.21 23:04:12 gethostbyname(configx.aom.eso.com) 23:04:12 ... ent = 0 23:04:12 GetIpAddrTable 23:04:12 ... ERROR_INSUFFICIENT_BUFFER 23:04:12 GetIpAddrTable 23:04:12 ... success 23:04:12 bind(0.0.0.0:0->127.0.0.1, s=220) 23:04:12 getsockname(s=220, 127.0.0.1:56461)->0 23:04:12 getsockname OUT(0.0.0.0:56461) cached 23:04:12 ERROR: Broadcast and user list is empty 23:04:12 closesocket(127.0.0.1:56461) 23:04:13 bind(0.0.0.0:2299->127.0.0.1, s=220) 23:04:13 getsockname(s=220, 127.0.0.1:2299)->0 23:04:13 getsockname OUT(0.0.0.0:2299) cached 23:05:12 GetIpAddrTable
Link | Reply | Quote
 ApextOC


Posted 20 March 2022 - 12:11 pm
Hello everyone. It is finally working ;good . You can download the wine for voobly and aom here:

[You must login to view link]

If anyone has any problems/crashes let me know.
Link | Reply | Quote
 kaidelorenzo


Posted 31 March 2022 - 4:34 am
Can confirm I got it working on Fedora 35. Might take a look at the code some when I get a chance. Thanks so much for figuring this "fix" out.


Link | Reply | Quote
[1]
Displaying 1 - 14 out of 14 posts
Forum Jump:
2 User(s) are reading this topic (in the past 30 minutes)
0 members, 2 guests