Search found 72 matches
- 26 Jun 2012, 20:25
- Forum: SFS2X Questions
- Topic: Create list of joined rooms?
- Replies: 4
- Views: 7223
Re: Create list of joined rooms?
Yes! That worked! Thanks! Here's the final code, plus some ArrayList processing. Maybe it will help someone else. public class DisconnectEventHandler extends BaseServerEventHandler { @Override public void handleServerEvent(ISFSEvent event) throws SFSException { trace(">>> DisconnectEventHandler...
- 26 Jun 2012, 18:40
- Forum: SFS2X Questions
- Topic: Create list of joined rooms?
- Replies: 4
- Views: 7223
Re: Create list of joined rooms?
Yes. I've imported ArrayList. When I try to use it, though, Eclipse gives the error: The type List is not generic; it cannot be parameterized with arguments <ArrayList> Here's the code for my DisconnectEventHandler: package com.mydomain.MyGame; import java.awt.List; import java.util.ArrayList; impor...
- 26 Jun 2012, 02:31
- Forum: SFS2X Questions
- Topic: Create list of joined rooms?
- Replies: 4
- Views: 7223
Create list of joined rooms?
What's the proper syntax for getting a list of joined rooms and then get the room data (name, userList, etc)? I'm trying to pull room info in my USER_DISCONNECT handler of my extension. One of the event parameters is JOINED_ROOMS. I can see the list of joined rooms via this code: trace(" JOINED...
- 02 Apr 2012, 23:34
- Forum: SFS2X ActionScript 3 API
- Topic: Send ExtensionRequest to SFSGame? - Can't invoke extensions
- Replies: 1
- Views: 6576
Send ExtensionRequest to SFSGame? - Can't invoke extensions
I finally got the CreateSFSGameRequest and QuickJoinGameRequest to work. (See http://www.smartfoxserver.com/forums/viewtopic.php?f=19&t=13724 for details.) Now, I'm having trouble sending an ExtensionRequest to my SFSGame. This worked fine when I created a regular game with CreateRoomRequest. No...
- 31 Mar 2012, 01:43
- Forum: SFS2X ActionScript 3 API
- Topic: QuickJoinGameRequest - Working Example Project?
- Replies: 7
- Views: 11489
Re: QuickJoinGameRequest - Working Example Project?
Ok. That makes sense. However, now I'm still getting the "no matching Rooms were found" error. SFSAdmin shows me creating a room, but I still can't get a match. Here's what I'm trying this time: btn_createGame1.addEventListener(MouseEvent.CLICK,onCreateGame1Click); function onCreateGame1Cl...
- 30 Mar 2012, 00:54
- Forum: SFS2X ActionScript 3 API
- Topic: QuickJoinGameRequest - Working Example Project?
- Replies: 7
- Views: 11489
Re: QuickJoinGameRequest - Working Example Project?
Thanks, rjgtav. I made a few changes, based on your advice. Here's what I have: import com.smartfoxserver.v2.entities.variables.ReservedRoomVariables; import com.smartfoxserver.v2.entities.match.BoolMatch; function onQuickJoin(Event:MouseEvent):void { sfs.addEventListener(SFSEvent.ROOM_JOIN, onRoomJ...
- 28 Mar 2012, 20:29
- Forum: SFS2X ActionScript 3 API
- Topic: QuickJoinGameRequest - Working Example Project?
- Replies: 7
- Views: 11489
Re: QuickJoinGameRequest - Working Example Project?
From the docs: Quick Join Games Another feature offered by the Game API (both client and server side) is the QuickJoinGame feature. By providing a MatchExpression and a list of Rooms (of type SFSGame) or a Room Group the system can search for matching Rooms and immediately teleport the player in the...
- 27 Mar 2012, 19:02
- Forum: SFS2X ActionScript 3 API
- Topic: QuickJoinGameRequest - Working Example Project?
- Replies: 7
- Views: 11489
QuickJoinGameRequest - Working Example Project?
Is there a working example project (preferably Flash) that uses QuickJoinGameRequest? I can't find one in the sample games. I want to let the user click a button to join an existing game, or create a new game if one does not exist. I've been unable to get this to work from reading the docs. I'd rath...
- 31 Jan 2012, 18:16
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Check for Admin Message on log in?
- Replies: 1
- Views: 4359
Check for Admin Message on log in?
I want to be able to communicate messages/info to users when they log on - server down times, known issues, etc. I found the onAdminMessage event, so I can create a pop-ups when I manually send messages through the admin tool. Is there a built-in function to check for admin messages, though? (I can ...
- 16 Jan 2012, 14:32
- Forum: SFS2X ActionScript 3 API
- Topic: How to pass/handle List object from server to client?
- Replies: 7
- Views: 12042
How to pass/handle List object from server to client?
I'm trying to pass a List or (multi-dimensional array, if that would work better) from my server extension back to my client, but I cannot figure out which objects and putXYZ to use to pass it back to my client. Here's what I have so far: List<String[]> wordList = new ArrayList<String[]>(); ...
- 12 Jan 2012, 01:23
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Facebook - Failure to connect upon refreshes
- Replies: 1
- Views: 4458
Facebook - Failure to connect upon refreshes
My team is rolling out a Facebook/Flash/AS3 game. We're having some sporradic connection problems. Sometimes, the user may try to reload the game by refreshing the browser or pressing the app icon at the top of the status ticker. Usually, the game reloads and connects to SFS. Sometimes, however, it ...
- 09 Jan 2012, 19:20
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: DatabaseManager - MaxActive - Recommendation/Limit?
- Replies: 1
- Views: 4068
DatabaseManager - MaxActive - Recommendation/Limit?
My team is getting ready to roll a game out to Facebook, when I just noticed the MaxActive tag for the DatabaseManager.
I want to make sure I don't lock users out, if we have a lot of players. Can/should I set it to unlimited? If not, is there a limit to MaxActive?
I want to make sure I don't lock users out, if we have a lot of players. Can/should I set it to unlimited? If not, is there a limit to MaxActive?
- 23 Nov 2011, 17:12
- Forum: SFS2X Questions
- Topic: Will installing SFS1 on SFS2X machine cause conflicts?
- Replies: 1
- Views: 3773
Will installing SFS1 on SFS2X machine cause conflicts?
I have SFS2X installed on my Mac. I'm going out of town this weekend, and I'd like to work on a SFS1 project for my company. Will installing SFS1 hose my SFS2X installation? (I recently installed SFS1, SFS2X, and Electroserver on my PC, and I couldn't get SFS2X to communicate with port 8080. I don't...
- 17 Nov 2011, 00:37
- Forum: SFS2X Questions
- Topic: how to create room-level game extension for my board game?
- Replies: 9
- Views: 20943
- 16 Nov 2011, 02:12
- Forum: SFS2X Questions
- Topic: how to create room-level game extension for my board game?
- Replies: 9
- Views: 20943
I tried splitting my code into two extensions: /extensions/SpellingBee/SpellingBee.jar Contains: - SpellingBee.java - LoginEventHandler.java /extensions/SpellingBeeGame/SpellingBeeGame.jar Contains: - SpellingBeeGame.java - JoinGameHandler.java I'm creating the room with this: const EXTENSION_ID:Str...