Jump to content

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

compholio's Content

There have been 27 items by compholio (Search limited from 17-September 18)



Sort by                Order  

#89248 Wine kane-edition

Posted by compholio on 04 October 2012 - 09:47 PM in Custom Wine Builds

Hello everyone, I've finally got the patches for this accepted in Wine - so, provided that no serious regressions occur, you should see this fixed in Wine 1.5.15.



#73986 Wine kane-edition

Posted by compholio on 21 February 2012 - 08:38 PM in Custom Wine Builds

View Postcompholio, on 21 February 2012 - 07:32 PM, said:

Excellent!  I'll go ahead and submit the patch for consideration then.  If all goes well then you Mac folks might be the only ones that have support for this feature in Wine 1.4.
Wow, wasn't expecting it to get a reply today.  Unfortunately the patch has been marked as "Deferred", so I'll resubmit once Wine 1.4 comes out.



#73979 Wine kane-edition

Posted by compholio on 21 February 2012 - 07:32 PM in Custom Wine Builds

View Postairgin, on 21 February 2012 - 07:22 PM, said:

Yes, that was the mistake. I have deleted the entry in hosts file and IT WORKS! You have saved my life.

Thanks to all...

Excellent!  I'll go ahead and submit the patch for consideration then.  If all goes well then you Mac folks might be the only ones that have support for this feature in Wine 1.4.



#73972 Wine kane-edition

Posted by compholio on 21 February 2012 - 05:09 PM in Custom Wine Builds

View Postdoh123, on 21 February 2012 - 02:43 PM, said:

I'm not sure what the eo-mac thing is... something manually put in, or by some other program?  A normal Mac host file should be this... (I think)
...

It sounds like there might be some sort of configuration problem then, it might be that the wrong hostname is being used and it's confusing the game.



#73963 Wine kane-edition

Posted by compholio on 21 February 2012 - 02:19 PM in Custom Wine Builds

View Postairgin, on 21 February 2012 - 11:22 AM, said:

Without your patch only direct connect game does work. No chat and PC is for Mac not visible.
It shouldn't be losing packets though, it should just work.  I'm surprised that WS_gethostname is returning eo-mac.fritz.box instead of eo-mac, that might be involved.  However, I also see that you have a special broadcast entry in your host list... I don't suppose you changed the routing table to route broadcast packets somewhere special?



#73951 Wine kane-edition

Posted by compholio on 21 February 2012 - 05:20 AM in Custom Wine Builds

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".



#73933 Wine kane-edition

Posted by compholio on 20 February 2012 - 10:45 PM in Custom Wine Builds

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?



#73921 Wine kane-edition

Posted by compholio on 20 February 2012 - 10:05 PM in Custom Wine Builds

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?



#73915 Wine kane-edition

Posted by compholio on 20 February 2012 - 09:38 PM in Custom Wine Builds

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



#73912 Wine kane-edition

Posted by compholio on 20 February 2012 - 09:15 PM in Custom Wine Builds

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)...



#73907 Wine kane-edition

Posted by compholio on 20 February 2012 - 08:48 PM in Custom Wine Builds

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 ;)



#73900 Wine kane-edition

Posted by compholio on 20 February 2012 - 07:22 PM in Custom Wine Builds

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.



#73889 Wine kane-edition

Posted by compholio on 20 February 2012 - 03:51 PM in Custom Wine Builds

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.



#73786 Wine kane-edition

Posted by compholio on 18 February 2012 - 08:34 PM in Custom Wine Builds

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.



#73763 Wine kane-edition

Posted by compholio on 18 February 2012 - 04:03 PM in Custom Wine Builds

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?



#73716 Wine kane-edition

Posted by compholio on 17 February 2012 - 10:37 PM in Custom Wine Builds

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.



#73710 Wine kane-edition

Posted by compholio on 17 February 2012 - 10:18 PM in Custom Wine Builds

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.



#73701 Wine kane-edition

Posted by compholio on 17 February 2012 - 09:55 PM in Custom Wine Builds

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



#73665 Wine kane-edition

Posted by compholio on 17 February 2012 - 04:23 AM in Custom Wine Builds

View Postairgin, on 16 February 2012 - 11:12 PM, said:

I have tested. It works very good, if the game created by Mac and if it is a direct connect. Chat messages goes only from mac to windows. The other way does not work. Thanks!

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



#73644 Wine kane-edition

Posted by compholio on 16 February 2012 - 11:21 PM in Custom Wine Builds

View Postairgin, on 16 February 2012 - 11:12 PM, said:

I have tested. It works very good, if the game created by Mac and if it is a direct connect. Chat messages goes only from mac to windows. The other way does not work. Thanks!

Hmm, that actually sounds like it's not working properly.  The patch "should" make it so that you can see other players in the LAN menu and chat back and forth.



#73554 Wine kane-edition

Posted by compholio on 15 February 2012 - 07:55 PM in Custom Wine Builds

Another option: If you put together an updated skin with the patch then one of the people in this thread might help, it should actually work better than my old solution.



#73494 Wine kane-edition

Posted by compholio on 14 February 2012 - 05:29 PM in Custom Wine Builds

View Postdoh123, on 14 February 2012 - 04:09 PM, said:

What specifically does it fix?  Not sure I have any games that needed it since I don't really know what its for...

It fixes Bug #7929, here's the known effected applications:
http://appdb.winehq....php?bug_id=7929



#73492 Wine kane-edition

Posted by compholio on 14 February 2012 - 04:00 PM in Custom Wine Builds

View Postcompholio, on 14 February 2012 - 02:44 PM, said:

Excellent!  I doubt I can get a patch accepted in time for Wine 1.4, but I'll give it a shot.  For Linux I actually have to wait for some kernel patches to make it in before I can get the issue fixed, so I'm excited that there's an easier way to do this on Mac.

Do any of you guys have the games that are affected by this issue?  I've whipped up a patch for IP_BOUND_IF and it would be nice to test it before I try to get it accepted:
http://www.compholio...e-bound-s.patch



#73487 Wine kane-edition

Posted by compholio on 14 February 2012 - 02:44 PM in Custom Wine Builds

View Postdoh123, on 14 February 2012 - 02:32 PM, said:

IP_BOUND_IF is in netinet/in.h and seems to be working fine.

Your second part of code I tested on admin and non-admin and both ran fine returning a 0, no sudo needed.

I tested on 10.7

Excellent!  I doubt I can get a patch accepted in time for Wine 1.4, but I'll give it a shot.  For Linux I actually have to wait for some kernel patches to make it in before I can get the issue fixed, so I'm excited that there's an easier way to do this on Mac.



#73366 Wine kane-edition

Posted by compholio on 11 February 2012 - 05:18 AM in Custom Wine Builds

View Postdoh123, on 11 February 2012 - 03:29 AM, said:

I'd check, but I have no clue what that is or how to check

You can check if the option exists by either:
1) searching your OS include files for IP_BOUND_IF (probably in the /usr/include folder)
2) creating a program with the following includes:
---
#include <sys/socket.h>
#include <netinet/in.h>
---

and testing for the option like this:
---
#ifdef IP_BOUND_IF
# error "The option exists!"
#else
# error "The option doesn't exist :("
#endif
---

It should output one of the two above messages when you attempt to compile the program.  This method isn't as "sure-fire" of a test since those may not be the correct include files for Mac OS X.

***

In order to test if the option requires administrative privileges you'd have to create a socket as a normal user and see if you can set the option, it might be enough to just do something like this:
---
int s, ret, iface;

iface = 1;
s = socket(AF_INET, SOCK_DGRAM, 0);
ret = setsockopt(s, IPPROTO_IP, IP_BOUND_IF, &iface, sizeof(iface));
printf("IP_BOUND_IF return: %d\n", ret);
---

Hopefully that returns "0", if it doesn't return "0" as a normal user but it does when you run the program with "sudo" then that would indicate that the option requires administrative privileges.

I hope that helps, if that works then this would provide a really good way for me to fix Bug #7929 on Mac OS X (the bug the wine-kane patches fix).