Search found 90 matches

by gg
23 Jan 2024, 21:26
Forum: SFS2X C# API
Topic: List all the logged-in players in the lobby in the TicTacToe Unity example?
Replies: 1
Views: 688

List all the logged-in players in the lobby in the TicTacToe Unity example?

Hi, could you guide me how I change the Tris example to show, instead of a list of buddies, a list of all the players in the lobby?
Thank you!
by gg
18 Aug 2019, 03:55
Forum: SFS2X Questions
Topic: The type 'SmartFox' exists in both
Replies: 6
Views: 9290

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: 9290

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: 5001

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: 5001

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: 9290

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: 9290

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: 5
Views: 7183

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: 7425

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: 7425

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: 7516

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: 7425

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: 3788

[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: 7516

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: 5546

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

Go to advanced search