Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Wine kane-edition


  • Please log in to reply
102 replies to this topic

#61 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&C Zero Hour

Posted 17 February 2012 - 08:52 AM

View Postcompholio, on 17 February 2012 - 04:23 AM, said:

Oh, what game are you testing and what version of OS X?

C&C Generals Zero Hour
OS X Lion on current Macbook Air 13.

#62 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 17 February 2012 - 09:55 PM

View Postairgin, on 17 February 2012 - 08:52 AM, said:

C&C Generals Zero Hour
OS X Lion on current Macbook Air 13.

Hmmm, I believe that that should work....

doh123, could you throw in the following code somewhere in dlls/ws2_32/socket.c and see which message it generates?:
#ifdef IP_BOUND_IF
# error "The option exists!"
#else
# error "The option doesn't exist :("
#endif


#63 doh123

doh123

    Wineskin Developer

  • Members
  • 4279 posts
  • LocationOver here
  • Graphics Card:Geforce GT 650M, Intel HD 4000, Radeon 6750, Intel HD 3000, Geforce 320m (in 3 machines)
  • Operating System:OS X 10.8 (Mountain Lion)
  • I like to play:RPG and Strategy

Posted 17 February 2012 - 10:12 PM

IP_BOUND_IF does exist... i don't think thats the problem.. if I compile code with that ifdef in it, it does come back saying the option exists.

#64 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 17 February 2012 - 10:18 PM

View Postdoh123, on 17 February 2012 - 10:12 PM, said:

IP_BOUND_IF does exist... i don't think thats the problem.. if I compile code with that ifdef in it, it does come back saying the option exists.

Hmm, I've never checked that Generals behaves the same way as C&C 3 - I'll have to do that.  Is there a way to run wine in the wineskin something like this?:
WINEDEBUG="+winsock" wine NameOfProgram.exe 2>&1 | grep interface

That should give some indiciation of what's going on.

#65 doh123

doh123

    Wineskin Developer

  • Members
  • 4279 posts
  • LocationOver here
  • Graphics Card:Geforce GT 650M, Intel HD 4000, Radeon 6750, Intel HD 3000, Geforce 320m (in 3 machines)
  • Operating System:OS X 10.8 (Mountain Lion)
  • I like to play:RPG and Strategy

Posted 17 February 2012 - 10:34 PM

I don't have any way to do a grep...
but the debug channel can be set and the program ran... then you have to manually search the full log.

#66 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 17 February 2012 - 10:37 PM

View Postdoh123, on 17 February 2012 - 10:34 PM, said:

I don't have any way to do a grep...
but the debug channel can be set and the program ran... then you have to manually search the full log.

If airgin sets the debug channel to "winsock" and sends me the log then I can grep it myself :)  From the reading I've done I highly doubt it's that the option doesn't do what we want, it's more likely that I did something wrong.

#67 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&C Zero Hour

Posted 18 February 2012 - 10:34 AM

Network game started by Mac and is a direct connect, because other way Mac does not see PC:

http://dl.dropbox.co...astRunX11_2.txt

#68 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 18 February 2012 - 04:03 PM

View Postairgin, on 18 February 2012 - 10:34 AM, said:

Network game started by Mac and is a direct connect, because other way Mac does not see PC:

http://dl.dropbox.co...astRunX11_2.txt

Odd... This would indicate that the IP_BOUND_IF option doesn't exist:
fixme:winsock:interface_bind Using broadcast packets on interface-bound sockets is not currently supported on this platform,bound broadcast packets will not work on this socket.

doh123, could you see if "#if defined(IP_BOUND_IF)" doesn't work when "#ifdef IP_BOUND_IF" does?

#69 syao

syao

    Administration Team

  • Administrators
  • 664 posts
  • LocationThe Net, Vast and Infinite
  • Graphics Card:[MacBook 13 - Intel GMA950] [iMac 27 - ATI Radeon HD4850] [MacBook Pro 13 - Intel HD3000]
  • Operating System:macOS 10.12 (Sierra)

Posted 18 February 2012 - 05:37 PM

That one works too.

syao@silmaril ~ $ cat << EOF | gcc -xc -
> #include <sys/socket.h>
> #include <netinet/in.h>
> 
> #if defined(IP_BOUND_IF)
> # error "The option exists!"
> #else
> # error "The option doesn't exist :("
> #endif
> 
> EOF
<stdin>:5:3: error: #error "The option exists!"

Posted Image
This ███ will be left blank in sign of protest █████ internet censorship.


#70 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 18 February 2012 - 08:04 PM

eo-mac:~ eo$ cat << EOF | gcc -xc -
> #include <sys/socket.h>
> #include <netinet/in.h>
> #if defined(IP_BOUND_IF)
> # error "The option exists!"
> #else
> # error "The option doesn't exist "
> #endif
> EOF
<stdin>:4:3: error: #error "The option exists!"


#71 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 18 February 2012 - 08:34 PM

View Postsyao, on 18 February 2012 - 05:37 PM, said:

That one works too. ...

Well that's good.  However, now I'm confused as to why the version doh123 compiled used the wrong part of the ifdef, since socket.c includes both sys/socket.h and netinet/in.h.  This is the relevant bit from the patch:
#if defined(IP_BOUND_IF)
	if (setsockopt(fd, IPPROTO_IP, IP_BOUND_IF, &adapter->Index, sizeof(adapter->Index)) != 0)
	{
		ERR("IP_BOUND_IF failed, bound broadcast packets will not work on this socket.\n");
		goto cleanup;
	}
	TRACE("Socket %04lx bound to interface index %d\n", s, adapter->Index);
	ret = TRUE;
#else /* No known way to bind to an interface on this platform */
	FIXME("Using broadcast packets on interface-bound sockets is not currently supported on this platform,"
			  "bound broadcast packets will not work on this socket.\n");
#endif

You could throw an "#error" in the "#else" part, that might help tracking down what the problem is.

#72 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 20 February 2012 - 12:20 PM

Can I do anything else?

#73 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 03:51 PM

View Postairgin, on 20 February 2012 - 12:20 PM, said:

Can I do anything else?

Something is wrong with the way it compiled, we need to figure out what that problem is before we can try again.

#74 doh123

doh123

    Wineskin Developer

  • Members
  • 4279 posts
  • LocationOver here
  • Graphics Card:Geforce GT 650M, Intel HD 4000, Radeon 6750, Intel HD 3000, Geforce 320m (in 3 machines)
  • Operating System:OS X 10.8 (Mountain Lion)
  • I like to play:RPG and Strategy

Posted 20 February 2012 - 06:48 PM

Its 10.5 ... IP_BOUND_IF doesn't exist in 10.5.  I'll have to try making it 10.6+

#75 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 07:22 PM

View Postdoh123, on 20 February 2012 - 06:48 PM, said:

Its 10.5 ... IP_BOUND_IF doesn't exist in 10.5.  I'll have to try making it 10.6+

Ah, that makes sense - you should be able to still compile it on 10.5 if you find the definition from a 10.6 machine and add it in manually:
#define IP_BOUND_IF  TheNumberForTheOption

It'll only work on 10.6+, but that might make it easier for your compilation purposes.

#76 doh123

doh123

    Wineskin Developer

  • Members
  • 4279 posts
  • LocationOver here
  • Graphics Card:Geforce GT 650M, Intel HD 4000, Radeon 6750, Intel HD 3000, Geforce 320m (in 3 machines)
  • Operating System:OS X 10.8 (Mountain Lion)
  • I like to play:RPG and Strategy

Posted 20 February 2012 - 08:33 PM

Compiling isn't an issue since i cannot get 10.5 to build reliable versions anyways, all my builds I do on a 10.6 machine.

I put up a 10.6+ version that hopefully works.. I haven't tested it or anything.
http://dl.dropbox.co...iles/index.html

#77 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 08:48 PM

View Postairgin, on 20 February 2012 - 12:20 PM, said:

Can I do anything else?

Would you mind testing with the new version doh123 posted?  It should fix the problem, at least in theory ;)

#78 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 20 February 2012 - 09:09 PM

View Postdoh123, on 20 February 2012 - 08:33 PM, said:

Compiling isn't an issue since i cannot get 10.5 to build reliable versions anyways, all my builds I do on a 10.6 machine.

I put up a 10.6+ version that hopefully works.. I haven't tested it or anything.
http://dl.dropbox.co...iles/index.html

DropBox link is wrong.
It loads WS8Wine1.4-rc3Compholio1-Installer.
Can you correct them please.

#79 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 09:15 PM

View Postairgin, on 20 February 2012 - 09:09 PM, said:

DropBox link is wrong.
It loads WS8Wine1.4-rc3Compholio1-Installer.
Can you correct them please.

Are you sure?  I was able to download the file (WS8Wine1.4-rc3Compholio1-Installer.app.zip)...

#80 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 20 February 2012 - 09:18 PM

View Postcompholio, on 20 February 2012 - 09:15 PM, said:

Are you sure?  I was able to download the file (WS8Wine1.4-rc3Compholio1-Installer.app.zip)...

This is the same version like before. Current version is WS8Wine1.4-rc4Compholio2 Engine Installer

#81 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 09:38 PM

View Postairgin, on 20 February 2012 - 09:18 PM, said:

This is the same version like before. Current version is WS8Wine1.4-rc4Compholio2 Engine Installer

Ah, you are quite right - I understand now.  It looks like the correct link is http://dl.dropbox.co...staller.app.zip

#82 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 20 February 2012 - 10:01 PM

Now it works but not perfect. Mac shows only every third chat message. Sometimes the Mac hang on start or PC cannot into Game with the message connection lost.

Thanks to all.

#83 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 10:05 PM

View Postairgin, on 20 February 2012 - 10:01 PM, said:

Now it works but not perfect. Mac shows only every third chat message. Sometimes the Mac hang on start or PC cannot into Game with the message connection lost.

Thanks to all.

Hmm, odd.  Does the LAN menu work properly?  (Can you view games and chat?)  Also, are you starting a Direct Connect game or are using the LAN system?

#84 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 20 February 2012 - 10:15 PM

Here is the log:

http://dl.dropbox.co...LastRunWine.log

#85 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 20 February 2012 - 10:23 PM

PC sees Mac in LAN menu directly but not the Mac. With a Direct Connect Game everything works perfectly. When I start as normal LAN I believe Mac loosed some network packets. When counting down Mac shows not all numbers e.g. 5,2,1 and stopped before finished.

#86 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 20 February 2012 - 10:45 PM

View Postairgin, on 20 February 2012 - 10:23 PM, said:

PC sees Mac in LAN menu directly but not the Mac. With a Direct Connect Game everything works perfectly. When I start as normal LAN I believe Mac loosed some network packets. When counting down Mac shows not all numbers e.g. 5,2,1 and stopped before finished.

Hmm, this sounds like it might be a different issue than what I've been trying to fix...  Is it possible for you to test with C&C3?

#87 doh123

doh123

    Wineskin Developer

  • Members
  • 4279 posts
  • LocationOver here
  • Graphics Card:Geforce GT 650M, Intel HD 4000, Radeon 6750, Intel HD 3000, Geforce 320m (in 3 machines)
  • Operating System:OS X 10.8 (Mountain Lion)
  • I like to play:RPG and Strategy

Posted 21 February 2012 - 12:21 AM

i fixed the link.. sorry.

#88 compholio

compholio

    Coder

  • Members
  • PipPip
  • 38 posts

Posted 21 February 2012 - 05:20 AM

View Postairgin, on 20 February 2012 - 10:23 PM, said:

PC sees Mac in LAN menu directly but not the Mac. With a Direct Connect Game everything works perfectly. When I start as normal LAN I believe Mac loosed some network packets. When counting down Mac shows not all numbers e.g. 5,2,1 and stopped before finished.

This is very odd, I finally got The First Decade loaded on both my computer and my old server computer.  My "Linux Equivalent" to this patch seems to work just fine (both computers see each other, though they both run Linux).  It's possible that the IP_BOUND_IF solution doesn't work like I want it to, but that seems unlikely.  The only thing I can think of from looking at the log might be that WS_gethostname is returning a Fully Qualified Domain Name rather than a "local name."  When I run the same debug channel I get my computer's local name (lappy), you appear to get the FQDN (eo-mac.fritz.box).  I'm not sure if that's a configuration problem or if that's somehow related to How Apple Does Things™, but it might help to see the contents of the files "/etc/hosts" and "/etc/hostname".

#89 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 21 February 2012 - 07:11 AM

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 localhost
127.0.1.1 eo-mac
255.255.255.255 broadcasthost
::1			 localhost
fe80::1%lo0 localhost


#90 airgin

airgin

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel HD 3000
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:C&amp;C Zero Hour

Posted 21 February 2012 - 11:22 AM

View Postcompholio, on 21 February 2012 - 05:20 AM, said:

This is very odd, I finally got The First Decade loaded on both my computer and my old server computer.  My "Linux Equivalent" to this patch seems to work just fine (both computers see each other, though they both run Linux).  It's possible that the IP_BOUND_IF solution doesn't work like I want it to, but that seems unlikely.  The only thing I can think of from looking at the log might be that WS_gethostname is returning a Fully Qualified Domain Name rather than a "local name."  When I run the same debug channel I get my computer's local name (lappy), you appear to get the FQDN (eo-mac.fritz.box).  I'm not sure if that's a configuration problem or if that's somehow related to How Apple Does Thingsâ„¢, but it might help to see the contents of the files "/etc/hosts" and "/etc/hostname".

Without your patch only direct connect game does work. No chat and PC is for Mac not visible.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users