Search found 72 matches

by Rashomon
31 Aug 2011, 14:35
Forum: Server Side Extension Development
Topic: get values from serverside response
Replies: 3
Views: 7141

Here's what I do to pass database query results back to my client: Server: var response = {}; response._cmd = "myResponseString"; response.db = []; var item = {}; item.var1 = "value1"; item.var2 = "value2"; item.var3 = "value3"; response.db...
by Rashomon
31 Aug 2011, 14:00
Forum: Server Side Extension Development
Topic: (AS1) - How to get MySQL error message?
Replies: 4
Views: 8408

(AS1) - How to get MySQL error message?

I have an AS1 extension. It updates the database with executeCommand and checks for success like so: var success = dbase.executeCommand(sql) if (success) { } else { } How can I get more details on the failure, though? How can I get the actual error message so I ca...
by Rashomon
30 Aug 2011, 17:50
Forum: Server Side Extension Development
Topic: dispatchPublicMessage - Can't find method ?
Replies: 4
Views: 7843

I see. I will go with method B, then.

I'm curious - Why is it called a "public" message, if it's only going to one user?
by Rashomon
30 Aug 2011, 15:31
Forum: Server Side Extension Development
Topic: dispatchPublicMessage - Can't find method ?
Replies: 4
Views: 7843

dispatchPublicMessage - Can't find method ?

I'm working with SFS1 and an AS1 server extension. I'm trying to send a public message from my extension to all users in a room. I'm following the docs, here: http://www.smartfoxserver.com/docs/docPages/serverSideApi/index.htm Usage: _server.dispatchPublicMessage(message, room, user) Here's my serve...
by Rashomon
29 Aug 2011, 19:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is there a QuickJoinGameRequest in SFS1 ?
Replies: 13
Views: 15641

I'm making progress. It works... sort of. :) The variable was (and still is) appearing in the adminTool. I am testing with 4 clients. Three to create a full game, and one to check the room vars from the lobby. Following your link, I removed my client-side code where I was setting my isStarted roomVa...
by Rashomon
29 Aug 2011, 17:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is there a QuickJoinGameRequest in SFS1 ?
Replies: 13
Views: 15641

Sorry... It's me again. :) I read the link you provided, and I found some examples where others set this tag, like here . However, I'm still getting "undefined" values. Here's my zone config: <Zone name="myZone" roomListVars="true"> <Rooms> <Room name="Lobby" ...
by Rashomon
29 Aug 2011, 16:49
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is there a QuickJoinGameRequest in SFS1 ?
Replies: 13
Views: 15641

Will do. One more thing. I'm trying to set a roomVariable when the game has started. I plan to cycle through the rooms in the roomList and check the isStarted roomVar to determine whether or not someone can join the game. I'm setting the roomVar like so: var rVarsStart:Array = new Array(); r...
by Rashomon
29 Aug 2011, 15:49
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is there a QuickJoinGameRequest in SFS1 ?
Replies: 13
Views: 15641

Thanks. That's just what I was looking for. The links you gave me were to AS2 code, and I'm using AS3. Once I knew what I was looking for, though, I was able to find the AS3 equivalent (smartFox.getAllRooms()); Here's a link to the AS3 API for others. And here's my final code that works: showRooms_b...
by Rashomon
29 Aug 2011, 15:19
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is there a QuickJoinGameRequest in SFS1 ?
Replies: 13
Views: 15641

That's what I figured. Can you give me a hand with getting the roomList? I've searched the docs, and I can only find roomList used with the onRoomListUpdate event. How can I get the roomList on demand (through my own function)? I'm currently using SmartFoxBits. I can't get the roomList from the Room...
by Rashomon
29 Aug 2011, 13:39
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is there a QuickJoinGameRequest in SFS1 ?
Replies: 13
Views: 15641

Is there a QuickJoinGameRequest in SFS1 ?

I see there's a QuickJoinGameRequest in SFS2X. What about in SFS1?
by Rashomon
29 Aug 2011, 12:34
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How to hide full game rooms and games that have started?
Replies: 2
Views: 4847

How to hide full game rooms and games that have started?

I'm using SmartFox Bits. I have a lobby where user can create and join games. The games are for 3 players. Unfortunately, when a game starts, it still shows up in the room list. If one of the players drops during the game, then someone else is able to join in the middle of a game - not a good thing....
by Rashomon
22 Aug 2011, 13:06
Forum: SFS2X Questions
Topic: http://localhost:8080/ - HTTP ERROR: 404 - Why?
Replies: 2
Views: 5259

http://localhost:8080/ - HTTP ERROR: 404 - Why?

I have SFS1 installed on my work PC. This morning, I installed SFS 2X to try it out. I installed the " SmartFoxServer 2X Release Candidate 3" patch. I'm trying to go to http://localhost:8080/ to check my server connection, but I keep getting "HTTP ERROR: 404". I'm able to run the...
by Rashomon
21 Aug 2011, 22:57
Forum: SFS2X Questions
Topic: AdminTool cannot find 192.168.1.37
Replies: 3
Views: 5600

Maybe it.s showing the ipv6 ips instead of the ipv4 (the 192.blabla). I have no idea what this means. :( please open the command line and execute this command: ipconfig. It will show the available addresses I did this, but the 192 address does not show up. I tried "ipconfig" and "ipc...
by Rashomon
19 Aug 2011, 00:14
Forum: SFS2X Questions
Topic: AdminTool cannot find 192.168.1.37
Replies: 3
Views: 5600

AdminTool cannot find 192.168.1.37

I'm able to run the examples through http://localhost:8080/. However, I cannot run most of them from my PC. I'm following the instructions, here: http://docs2x.smartfoxserver.com/GettingStarted/installation The "Exposing the server to the local network" section says, to open the Server Con...
by Rashomon
18 Aug 2011, 22:49
Forum: SFS2X Questions
Topic: Extensions? Possible with Actionscrip, or *only* with Java?
Replies: 4
Views: 6568

Extensions? Possible with Actionscrip, or *only* with Java?

I did a project at work with SFS1. I'm considering SFS2 for my own company, so I'm reading through the SFS2 docs and looking at examples. I see references to Java extensions, but not Actionscript extensions. Is it possible to build Actionscript extensions, or was this phased out in 2X? If it was pha...

Go to advanced search