[SOLVED] C&C Red Alert 3 - Lan (and also hamachi) play

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
MarcoBR
Level 2
Level 2
Posts: 20
Joined: Sun Jul 19, 2009 1:03 pm

Post by MarcoBR »

Alright, so this is the weekend that I will finally play CNC3 online. :D

I have manually changed the includes in the bind_hack.c so it will include the right path for the libs in my system - and it still complains of gnu/stubs-32.h.

I've found out that the lib that provides that is "glibc-headers",
I look into my system and I don't have that library in 32 bit:

Code: Select all

[root@leonidas ~]# rpm -qa | grep glibc
glibc-2.10.1-4.i686
glibc-headers-2.10.1-4.x86_64
glibc-2.10.1-4.x86_64
glibc-common-2.10.1-4.x86_64
glibc-devel-2.10.1-4.x86_64
Easy - I though. Just install it:

Code: Select all

[root@leonidas ~]# yum search glibc-headers.i686
Loaded plugins: dellsysidplugin, dellsysidplugin2, protectbase, refresh-packagekit
0 packages excluded due to repository protections
Warning: No matches found for: glibc-headers.i686
No Matches found.
"No Matches found". Gah. It's not in the repository.

A quick googling so I could install this manually but I cannot find it. It's just not available in this version 2.10.-1.4

So our last try is to try the hack already compiled.
Could you upload somewhere and send it to me?
MarcoBR
Level 2
Level 2
Posts: 20
Joined: Sun Jul 19, 2009 1:03 pm

Post by MarcoBR »

Oh man...

This was supposed to be a celebration post. I got the hidden 32bit nasty package (gotta love Fedora).

I succeeded compiling the hack and everything.
Added the route, commented out everything in /etc/hosts and added my ip.

But the game just won't let me change it from 127.0.0.1 !!!

I'm online on hamachi, they see me, they can ping, they can access my server...everything...

:(
MarcoBR
Level 2
Level 2
Posts: 20
Joined: Sun Jul 19, 2009 1:03 pm

Post by MarcoBR »

More information..

ifconfig and route:

Code: Select all

[root@localhost tuncfg]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 *               255.255.255.255 UH    0      0        0 ham0
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
5.0.0.0         *               255.0.0.0       U     0      0        0 ham0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
[root@localhost tuncfg]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:09:55:87:88  
          inet addr:192.168.0.103  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:9ff:fe55:8788/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:331740 (323.9 KiB)  TX bytes:182422 (178.1 KiB)
          Interrupt:16 

ham0      Link encap:Ethernet  HWaddr 32:4D:13:1C:EE:AC  
          inet addr:5.110.192.199  Bcast:5.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
          RX packets:171 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:78378 (76.5 KiB)  TX bytes:11522 (11.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4309 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:953226 (930.8 KiB)  TX bytes:953226 (930.8 KiB)
I guess I'll have to install virtualbox :|
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

MarcoBR wrote:More information..

ifconfig and route:

Code: Select all

[root@localhost tuncfg]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 *               255.255.255.255 UH    0      0        0 ham0
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
5.0.0.0         *               255.0.0.0       U     0      0        0 ham0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
[root@localhost tuncfg]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:09:55:87:88  
          inet addr:192.168.0.103  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:9ff:fe55:8788/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:331740 (323.9 KiB)  TX bytes:182422 (178.1 KiB)
          Interrupt:16 

ham0      Link encap:Ethernet  HWaddr 32:4D:13:1C:EE:AC  
          inet addr:5.110.192.199  Bcast:5.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
          RX packets:171 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:78378 (76.5 KiB)  TX bytes:11522 (11.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4309 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:953226 (930.8 KiB)  TX bytes:953226 (930.8 KiB)
I guess I'll have to install virtualbox :|
Stop ifconfig'ing, it doesn't help.

The hack is most likely preloading well, and it wouldn't affect the IP your game sses. What does _ALL_ of your /etc/hosts file look like?

I made a guide for this in my native tongue - Portuguese. From your name it seems you might be brazilian so you probably understand it.

It is hosted on my website which isn't always up. Try once in a while if you can't acess it.

http://192.168.1.3/mediawiki/index.php/ ... _e_Windows

Either way, you can understand most of it.
MarcoBR
Level 2
Level 2
Posts: 20
Joined: Sun Jul 19, 2009 1:03 pm

Post by MarcoBR »

Yep, I'm Brazilian :)

This is my /etc/hosts:

Code: Select all

5.110.192.199  leonidas
127.0.0.1  localhost leonidas
192.168.0.103 leonidas
Sorry for the multiple posts in this thread, but making a new one didn't seem right.

I will keep trying your website (although it doesn't connect) but I believe I will end up installing virtualbox this weekend. If you have any other ideas let me know.

And thanks for your help!
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

MarcoBR wrote:Yep, I'm Brazilian :)

This is my /etc/hosts:

Code: Select all

5.110.192.199  leonidas
127.0.0.1  localhost leonidas
192.168.0.103 leonidas
Sorry for the multiple posts in this thread, but making a new one didn't seem right.

I will keep trying your website (although it doesn't connect) but I believe I will end up installing virtualbox this weekend. If you have any other ideas let me know.

And thanks for your help!

Ok, by now the site should be up.

Erase everything in that file and have only this:

Code: Select all

5.110.192.199  leonidas
127.0.0.1  localhost
You shouldn't resolve your address to two different IPs. And I actually think you resolved it to three.

Do that and see if it works.

Cheers,

Jorl17
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

EDIT:

This should be the correct link. Sorry, I forgot to give you a WAN reachable address:

http://jorl17.sytes.net/mediawiki/index ... _e_Windows

You can also see a bunch of other (not so) interesting sutff at jorl17.sytes.net and its subdirs.

Good luck,

Jorl17 :)
MarcoBR
Level 2
Level 2
Posts: 20
Joined: Sun Jul 19, 2009 1:03 pm

Post by MarcoBR »

And I'm Back!

Well, I've got more progress. I'm not giving up on this until CNC4 arrives.
And I've other reasons as well.

So I fixed my /etc/hosts problem. It was a bug on my Fedora that didn't have the mndss 64 bit package.

That means I can now change my IP on the game to Hamachis.

So my friend can see me but I can't see him.
He can see my game but he gets the "time out" when trying to connect.

The problem is that the game is not loading the bind_hack.so
It just says again:

Code: Select all

ERROR: ld.so: object '/tmp/bind_hack.so' from LD_PRELOAD cannot be preloaded: ignored. 


That problem explains why I'm so close but not there yet.

Now why it doesn't load the hack if I can compile it?

When I had this problem before it was because I compiled with the -m64.
But now I do can compile with -m32 and load it.

It just doesn't load it like before probably because the glibc libs got updated here.
So now how can I fix this?

Any suggestions are welcome.
I will post my progress here, I will make this game work.

Sorry for the long post, I hope I'm making some sense.
Locked