I would imagine 'r' represents either the ID of the room it was broadcast from, or the ID of the room it was broadcast to.
In this case, following the use of '-1' elsewhere in SFS, I would guess that -1 is the same as 'null', as the message is not from/to any room in particular.
Search found 29 matches
- 31 Jul 2008, 11:21
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: GenericMessage
- Replies: 1
- Views: 4346
- 31 Jul 2008, 07:59
- Forum: The Bug Trap
- Topic: Multi-Room feature does not exit users correctly
- Replies: 3
- Views: 173
Thanks Lapo, I think I was getting closer to the problem but this has nailed it on the head.
I hadn't realised the activeRoomID was a property that could be set as well as read. Is there any preference for setting the activeRoomID rather than just specifying the targeted roomID for each message sent?
I hadn't realised the activeRoomID was a property that could be set as well as read. Is there any preference for setting the activeRoomID rather than just specifying the targeted roomID for each message sent?
- 30 Jul 2008, 15:09
- Forum: The Bug Trap
- Topic: onPrivateMessage Documentation
- Replies: 2
- Views: 153
onPrivateMessage Documentation
The documentation for the 'onPrivateMessage' method states that four parameters are received as:
message:String, sender:User, roomId:Number, userId:Number
However, after bashing my head and digging around in the code for a while, I found the actualy implementation of this method:
scope ...
message:String, sender:User, roomId:Number, userId:Number
However, after bashing my head and digging around in the code for a while, I found the actualy implementation of this method:
scope ...
- 29 Jul 2008, 13:47
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Starting SmartFoxServer using java ant task
- Replies: 3
- Views: 7994
- 29 Jul 2008, 10:02
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Extensions have boolean logic limitations?
- Replies: 4
- Views: 8303
I would advise the exact opposite of what ptd suggests.
The compiler is more than happy to recognise (x==1 || x==2) as two seperate conditionals, and the added parenthesis just make it harder to spot exactly what is being evaluated. I would only really include the nested parenthesis when you have ...
The compiler is more than happy to recognise (x==1 || x==2) as two seperate conditionals, and the added parenthesis just make it harder to spot exactly what is being evaluated. I would only really include the nested parenthesis when you have ...
- 29 Jul 2008, 09:32
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Leaving multi-join room fails
- Replies: 3
- Views: 6881
As no-one seems to be able to offer any kind of solution to this, and as it seems to go against the expected behaviour, I am now entering this as a bug.
http://forums.smartfoxserver.com/viewtopic.php?t=3409
Thanks.
http://forums.smartfoxserver.com/viewtopic.php?t=3409
Thanks.
- 29 Jul 2008, 09:30
- Forum: The Bug Trap
- Topic: Multi-Room feature does not exit users correctly
- Replies: 3
- Views: 173
Multi-Room feature does not exit users correctly
SFS 1.6.2
AS2 API 1.5.4
- Join a static room
- Join a game room while still remaining in the original static room
- All users leave game room and it is deleted
- Expecetd behaviour is that the user should now simply be in the first, static room. However, at this point, the user seems to still be ...
AS2 API 1.5.4
- Join a static room
- Join a game room while still remaining in the original static room
- All users leave game room and it is deleted
- Expecetd behaviour is that the user should now simply be in the first, static room. However, at this point, the user seems to still be ...
- 28 Jul 2008, 07:51
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Leaving multi-join room fails
- Replies: 3
- Views: 6881
- 25 Jul 2008, 09:49
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Leaving multi-join room fails
- Replies: 3
- Views: 6881
- 25 Jul 2008, 07:44
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Unity3D support?
- Replies: 5
- Views: 10136
- 24 Jul 2008, 11:07
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Leaving multi-join room fails
- Replies: 3
- Views: 6881
Leaving multi-join room fails
Flash AS2 API - Version 1.5.4
SF Server - Version 1.6.2
I am using the multi-join feature to allow users to remain in the lobby while also entering another game room.
I can successfully add a user to both rooms, and everything works as expected until a user leaves the game room (but remains in the ...
SF Server - Version 1.6.2
I am using the multi-join feature to allow users to remain in the lobby while also entering another game room.
I can successfully add a user to both rooms, and everything works as expected until a user leaves the game room (but remains in the ...
- 22 May 2008, 11:27
- Forum: Server Side Extension Development
- Topic: Roomlist not sent when using custom login
- Replies: 3
- Views: 7618
Roomlist not sent when using custom login
As per the smartfox docs/examples, my app is set up to listen for an onRoomListUpdate event, when logging in, meaning I have a reference to the current roomList when entering the lobby.
However, after implementing the 'Secure Login Example' in the docs, the onRoomListUpdate is never triggered ...
However, after implementing the 'Secure Login Example' in the docs, the onRoomListUpdate is never triggered ...
- 22 May 2008, 09:09
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Smartfox not using JSON protocol?
- Replies: 1
- Views: 4627
Smartfox not using JSON protocol?
Why is it that smartfox sends/receives all its system messages in XML rather than JSON? As mentioned in your docs, when using server-side extensions it is preferable to use JSON over XML because it uses less bandwidth. Surely the same applies for the internal messaging of smartfox ?
- 19 May 2008, 07:59
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Error List
- Replies: 9
- Views: 13444
- 16 May 2008, 08:12
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Error List
- Replies: 9
- Views: 13444