Search found 89 matches

by gg
18 Aug 2019, 03:55
Forum: SFS2X Questions
Topic: The type 'SmartFox' exists in both
Replies: 6
Views: 1170

Re: The type 'SmartFox' exists in both

woooo thank you, that did it! "Enable WS/WSS" was not checked
by gg
17 Aug 2019, 03:29
Forum: SFS2X Questions
Topic: The type 'SmartFox' exists in both
Replies: 6
Views: 1170

Re: The type 'SmartFox' exists in both

Thank you, I am able to build in WebGL now. But it is not able to connect to the server from the browser (it says "Connection failed; is the server running at all?" And when it runs from Unity, it gives this error InvalidOperationException: The current state of the connection is not Open. ...
by gg
15 Aug 2019, 20:15
Forum: SFS2X C# API
Topic: Adding spectators to Tris example
Replies: 2
Views: 186

Re: Adding spectators to Tris example

you can check the current state of the Room before joining as a spectator and if all slots are already taken you can avoid joining entirely. Oh, fantastic!!! This is the code for someone else that needs to do something similar if (sfs.RoomManager.GetRoomById(roomId).UserCount<2) // Join the Room if...
by gg
13 Aug 2019, 19:49
Forum: SFS2X C# API
Topic: Adding spectators to Tris example
Replies: 2
Views: 186

Adding spectators to Tris example

Hi, Clicking a game in the Lobby attempts to join as a player. In case there are 2 players already in the game, OnRoomJoinError(BaseEvent evt) fires. I am rejoining as a spectator in OnRoomJoinError(), but this seems a bad approach because if the game's MaxSpectators is already maxed out, or any oth...
by gg
13 Aug 2019, 06:48
Forum: SFS2X Questions
Topic: The type 'SmartFox' exists in both
Replies: 6
Views: 1170

Re: The type 'SmartFox' exists in both

ah, I missed that! But now I am getting this error and I can't build even for Windows nor Android :( Assets\Scripts\GameController.cs(8,7): error CS0246: The type or namespace name 'Sfs2X' could not be found (are you missing a using directive or an assembly reference?) I kept reimporting and checkin...
by gg
11 Aug 2019, 04:03
Forum: SFS2X Questions
Topic: The type 'SmartFox' exists in both
Replies: 6
Views: 1170

The type 'SmartFox' exists in both

Hi, I have a project based on the Tris Unity example and it is building fine for standalone and Android, but when I build for WebGL, it's giving me this error: Any ideas? Assets\Scripts\SmartFoxConnection.cs(13,19): error CS0433: The type 'SmartFox' exists in both 'SmartFox2X, Version=1.7.9.0, Cultu...
by gg
09 Aug 2019, 16:34
Forum: SFS2X Questions
Topic: Non-flash admin tool
Replies: 1
Views: 890

Non-flash admin tool

All major browsers will stop supporting Flash; is there an admin tool that's not in Flash?
by gg
01 Feb 2017, 16:56
Forum: SFS2X C# API
Topic: Change the Tris example board from 3D to 2D
Replies: 4
Views: 1774

Re: Change the Tris example board from 3D to 2D

Thx, was doing the wrong thing. Found this which is exactly what I need

https://unity3d.com/learn/tutorials/tic ... game-board
by gg
31 Jan 2017, 04:03
Forum: SFS2X C# API
Topic: Change the Tris example board from 3D to 2D
Replies: 4
Views: 1774

Re: Change the Tris example board from 3D to 2D

OK, I made the camera fixed above the 3X3 board by disabling the Camera Orbit (Script). Why are the elements in the canvas always visible in the game (The Game Chat, Restart and Leave Game buttons) while the 3d board needs to have a camera on it? This is the project structure (I'm sure you're famili...
by gg
31 Jan 2017, 03:33
Forum: SFS2X Questions
Topic: [[NEW]] SFS2X Patch 2.12.1 available!
Replies: 3
Views: 3184

Re: [[NEW]] SFS2X Patch 2.12.1 available!

Clearing the browser cache did it, thx!
by gg
30 Jan 2017, 02:26
Forum: SFS2X C# API
Topic: Change the Tris example board from 3D to 2D
Replies: 4
Views: 1774

Change the Tris example board from 3D to 2D

Hi, How could I get the board to show from 3D to 2D? I created my own 10X10 board and added it to the assets. It looks OK in the scene tab, but in the Game tab it says "No cameras rendering." I searched the internet and found that I need to setup the camera to orthographic and the Z coordi...
by gg
29 Jan 2017, 20:43
Forum: SFS2X Questions
Topic: [SOLVED] WebGL version not working but Windows version does
Replies: 1
Views: 766

[SOLVED] WebGL version not working but Windows version does

I have Unity 5.5.1f1 64bit Downloaded the examples and set up the Tris source code in Unity and Eclipse. From Eclipse I exported the extension name to LobbyExtension.jar In Unity, I changed LobbyController.cs from private const string EXTENSION_ID = "tris"; to private const string EXTENSIO...
by gg
29 Jan 2017, 20:33
Forum: SFS2X Questions
Topic: [[NEW]] SFS2X Patch 2.12.1 available!
Replies: 3
Views: 3184

Re: [[NEW]] SFS2X Patch 2.12.1 available!

Maybe it's because my installation folder is C:\Users\George\s\SFS2X but running install-win.bat didn't do anything. I saw the bat window open and close, that's it. So I ran patcher.jar directly and that seem to do the trick. But now when I go to Admin tool, in the upper right corner it says I have ...
by gg
01 Dec 2015, 20:00
Forum: SFS2X Questions
Topic: llegalStateException: AsyncContext
Replies: 3
Views: 1192

Re: llegalStateException: AsyncContext

01Dec|19:57:11,066|WARN |Scanner-0|util.resource.FileResource| |bad alias for C:\Users\Administrator\SFS2X\SFS2X\.\:lib\*:lib\jetty\lib\*:extensions\__lib__\*: java.io.IOException: The filename, directory name, or volume label syntax is incorrect Do you know how to fix this? I get it when I try to r...
by gg
30 Nov 2015, 17:34
Forum: SFS2X Questions
Topic: llegalStateException: AsyncContext
Replies: 3
Views: 1192

llegalStateException: AsyncContext

Hi, I did see this post ( http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=17359 ) but I'm asking something a little different - 1) How do I stop these errors from appearing in the log file? 2) These errors only happen with blue box, and happen 100% of the times when I test my applicati...

Go to advanced search