Raised This Month: $32 Target: $400
 8% 

Is Client on Mac?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 04-30-2012 , 09:29   Is Client on Mac?
Reply With Quote #1

Is there any way to check whether a client is on a Mac? There's currently a bug in my code that only crashes Mac clients, and while I am sure Valve is working on fixing it, it would be nice to apply a temporary fix (by checking whether the client I am applying it to is running Mac).

Thanks!
__________________
Mecha the Slag is offline
Lord Canistra
Senior Member
Join Date: Mar 2009
Location: Tallinn, Estonia
Old 04-30-2012 , 10:05   Re: Is Client on Mac?
Reply With Quote #2

1) Execute the initial code
2) See who dropped immediately after
3) Store their Steam ID
4) Apply fixed code to them if they decide to reconnect
__________________
Lord Canistra is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 04-30-2012 , 10:27   Re: Is Client on Mac?
Reply With Quote #3

Would checking if they have "Source 2007 Mac Binaries" in their subscriptions work?
http://forums.alliedmods.net/showpos...8&postcount=41
__________________

Last edited by napalm00; 04-30-2012 at 10:27.
napalm00 is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 04-30-2012 , 10:40   Re: Is Client on Mac?
Reply With Quote #4

Quote:
Originally Posted by napalm00 View Post
Would checking if they have "Source 2007 Mac Binaries" in their subscriptions work?
http://forums.alliedmods.net/showpos...8&postcount=41
those are content files and has nothing to do with subscriptions
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-05-2012 , 10:56   Re: Is Client on Mac?
Reply With Quote #5

Yeah there are no mac-specific subscriptions unfortunately. Any other ideas?
__________________
Mecha the Slag is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 05-05-2012 , 11:48   Re: Is Client on Mac?
Reply With Quote #6

Quote:
Originally Posted by Mecha the Slag View Post
Yeah there are no mac-specific subscriptions unfortunately. Any other ideas?
maybe theres a byte in the connect packet, unfortunately i dont have mac to test
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 05-06-2012 , 04:51   Re: Is Client on Mac?
Reply With Quote #7

Quote:
Originally Posted by Mecha the Slag View Post
Yeah there are no mac-specific subscriptions unfortunately. Any other ideas?
Get a cvar dump of a Mac client to compare with Windows. Maybe they have a cvar that only exists for them, or an odd default setting that wouldn't be true with Windows. Then use QueryClientConVar.
__________________
GoD-Tony is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode