Unity3D SmartFoxClient.dll and LoginGUI.cs examples for MMO
Posted: 19 May 2011, 19:23
I am using the SFS version of the Unity3D Island Demo which when a few lines are commented out works fine in SFS Server 1.5.5 Basic and 1.6.9 Pro. This has a SmartFoxClienrt.dll and LoginGUI.cs that seem to work. But in othere exmaples I have tried when I do a web build I get a problem connecting to the server. On looking round at forums and googling this others seem to have had the problem.. and they suggested a different SmartFoxClient.dll and a policy prefetch line of
Security.PrefetchSocketPolicy(serverIP, Convert.ToInt32(serverPort));
had to be added at the end of Awake() in LoginGUI.cs
This then worked to get a Simple MMO demo going. An example Forum entry on this is at
viewtopic.php?p=41732
BUT... when I try to replace the .dll with what looks like an identical version from the current Unity .net API download it crashes the browser.
Can SFS inform us of the definitive location for the correct SmartFoxClient.dll to use, and whether the policy prefetch line is required.
Security.PrefetchSocketPolicy(serverIP, Convert.ToInt32(serverPort));
had to be added at the end of Awake() in LoginGUI.cs
This then worked to get a Simple MMO demo going. An example Forum entry on this is at
viewtopic.php?p=41732
BUT... when I try to replace the .dll with what looks like an identical version from the current Unity .net API download it crashes the browser.
Can SFS inform us of the definitive location for the correct SmartFoxClient.dll to use, and whether the policy prefetch line is required.