Search found 1297 matches
- 25 May 2012, 21:22
- Forum: SFS2X C# API
- Topic: Client API - C# Simple Example
- Replies: 13
- Views: 22880
Re: Client API - C# Simple Example
And if you need a starter project for a console: using System; using SmartFoxClientAPI; namespace sfssimpleconsoletest { class MainClass { public static void Main (string[] args) { SFSClient client = new SFSClient(); client.Connect(); } } public class SFSClient { private string ip = "127.0.0.1&...
- 17 May 2012, 15:14
- Forum: SFS2X Java / Android API
- Topic: How do I turn off Logging?
- Replies: 11
- Views: 27782
Re: How do I turn off Logging?
There is mixed up confusion about the initial "log messages that are not controlled by the logger" and normal logging messages. The stray leftover debug message has been removed. Whats left is regular logged messages. As written some months ago SLF4J can switch backends for handling the lo...
- 17 May 2012, 15:08
- Forum: SFS2X C# API
- Topic: Client-side RoomManager - UserManager memory usage
- Replies: 2
- Views: 5097
Re: Client-side RoomManager - UserManager memory usage
Users are only created for rooms that your given client joins or when someone joins a room that the given client is in.
Or if you get messages from/to said users
/Thomas
Or if you get messages from/to said users
/Thomas
- 17 May 2012, 15:05
- Forum: SFS2X C# API
- Topic: Lobby connects to localhost instead of specified ip
- Replies: 2
- Views: 5097
Re: Lobby connects to localhost instead of specified ip
You are most likely running into the same issue as some other people - you do not change the value in the inspector.
Unity always uses inspector values and not script values for public exposed variables.
Try to find the LobbyGUI component in the scene and change the server there!
/Thomas
Unity always uses inspector values and not script values for public exposed variables.
Try to find the LobbyGUI component in the scene and change the server there!
/Thomas
- 17 May 2012, 15:03
- Forum: SFS2X C# API
- Topic: Unable to connect, as no valid crossdomain policy was found
- Replies: 3
- Views: 10185
Re: Unable to connect, as no valid crossdomain policy was fo
Yeah - this code does the trick inside Unity before doing ANY networking. The timeout value of 500 allows the system to send you the file with a little delay. Found that needed sometimes: if (!Security.PrefetchSocketPolicy(serverName, serverPort, 500)) { Debug.LogError("Security Exception. Poli...
- 17 May 2012, 15:00
- Forum: SFS2X C# API
- Topic: Unity FPS demo and external IP access
- Replies: 8
- Views: 11455
Re: Unity FPS demo and external IP access
The server name box on the login form always comes up with 127.0.0.1 despite what you set the servername variable to in the login script code. I can't see where it is getting 127.0.0.1 from. Unity has this nice/nasty habbit of overriding script public variables if they are available in the inspecto...
- 17 May 2012, 14:54
- Forum: SFS2X C# API
- Topic: Issues with multiple byte array calls
- Replies: 8
- Views: 13216
Re: Issues with multiple byte array calls
This seems usage / server related. But poke directly, via Marco or here if you need some attention on the client side.
/Thomas
/Thomas
- 17 May 2012, 14:49
- Forum: SFS2X C# API
- Topic: TCP Socket Errors
- Replies: 4
- Views: 7578
Re: TCP Socket Errors
Hi PeterL,
Best guess is that you are exceeding the max size for the int array.
http://docs2x.smartfoxserver.com/Develo ... t-sfsarray
Max size is 32767 items
Can that be it?
/Thomas
Best guess is that you are exceeding the max size for the int array.
http://docs2x.smartfoxserver.com/Develo ... t-sfsarray
Max size is 32767 items
Can that be it?
/Thomas
- 17 May 2012, 14:45
- Forum: SFS2X C# API
- Topic: Error after upgrade to 2.1.0
- Replies: 2
- Views: 5055
Re: Error after upgrade to 2.1.0
Server questions are also best asked here:
viewforum.php?f=18
More people that will look at it and answer it (faster?)
/Thomas
viewforum.php?f=18
More people that will look at it and answer it (faster?)
/Thomas
- 17 May 2012, 14:44
- Forum: SFS2X C# API
- Topic: Build Ios
- Replies: 1
- Views: 3793
Re: Build Ios
Can you please explain whats wrong (error message for example from console)?
And which demo it is you have issues with?
Best
Thomas
And which demo it is you have issues with?
Best
Thomas
- 17 May 2012, 14:42
- Forum: .Net / Unity3D API
- Topic: Please test this one with Unity 3 - 1.2.7 rc1
- Replies: 13
- Views: 34835
Re: Please test this one with Unity 3 - 1.2.7 rc1
In case you still need this, I've re-arranged my website and made it new and shiny. Thus the link to the 1.2.7 dll isnt valid anymore. On a request from someone I uploaded the latest sources and compiled dll to here: http://fullcontrol.dk/upload/sfs1/ There are no plans to continue work on the SFS1 ...
- 06 May 2012, 16:08
- Forum: SFS2X C# API
- Topic: .net usage
- Replies: 1
- Views: 3961
Re: .net usage
You mean like in a console app written in C#?
The code is ultra similar to all Unity examples. The primary change to do is to do this:
or alternatively set up a scheduled call to the process events method.
/T
The code is ultra similar to all Unity examples. The primary change to do is to do this:
Code: Select all
smartFox.ThreadSafeMode = false;
or alternatively set up a scheduled call to the process events method.
/T
- 06 May 2012, 15:56
- Forum: SFS2X C# API
- Topic: TCP Socket Errors
- Replies: 4
- Views: 7578
Re: TCP Socket Errors
Sounds like something fixed loooong time ago in the betas. So yeah - is that the latest API and is you a custom project?
If you are running latest version, please send me a repro project!
/T
If you are running latest version, please send me a repro project!
/T
- 30 Apr 2012, 10:53
- Forum: SFS2X C# API
- Topic: A problem about the dynamic ip
- Replies: 13
- Views: 16777
Re: A problem about the dynamic ip
Thanks for the partial answer - but doesnt help me along right now without knowing what platform you are running your client in. I've tried on my mac several times without any issues in editor, webplayer (Firefox) and standalone. I simply enter the hostname of my server and it works. So I'm wonderin...
- 30 Apr 2012, 08:48
- Forum: SFS2X Questions
- Topic: Why not C++?
- Replies: 9
- Views: 11913
Re: Why not C++?
Super quick googling most likely gives the answer to why it doesnt work out of the box. To enable this, I need to create a .def file exporting the public methods. http://msdn.microsoft.com/en-us/library/z4zxe9k8%28v=vs.90%29.aspx This is not done automatically it seems, so will have to do this. But ...