Search found 12 matches

by BenSmeets
12 May 2006, 07:48
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

Hmpf, i have no idea what went wrong then. Since i am new at using smartfox, it could probably be the way i coded it. Tnx for the help.
by BenSmeets
11 May 2006, 14:19
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

Jup, making it server side as much as i could did the trick. The problem should still exist, but this is a (better) way around it. Tnx for the help guys.

Ben
by BenSmeets
11 May 2006, 10:29
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

I will try to see if i can put the "room choice" logic in the server side. Maybe that'll help with the variable issue.
by BenSmeets
11 May 2006, 10:28
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

What i want to do: 1. connect 2. get all rooms 3. find the first room where there is a spot open AND the room variable "GameStarted" is false I would probably suggest to use a server side extension to perform these tasks. One problem you may encounter is that you find an available room bu...
by BenSmeets
11 May 2006, 10:26
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

Virusescu wrote:can you see the variables if you login with the admin tool?


Yup, can see them there.
by BenSmeets
11 May 2006, 10:17
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

Nope, no difference. Tried logging complete objects too, the info is just not there. turning on the smartfox debugger shows the xml values are not being send. (the <vars /> tag for the room xml seems empty)
by BenSmeets
11 May 2006, 09:19
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

Maybe this helps: Actionscript (summary, not in detail): m_SmartFoxClient.login(m_strZoneName, m_strUserName, null); private function onRoomListUpdate(arrRooms) : Void { // Join the first Room which is not full for (var room in arrRooms) { if (!arrRooms[room].ge...
by BenSmeets
11 May 2006, 09:11
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 18117

I'm trying like crazy to get a variable from the room i am trying to connect to, but the variables are not send. I tried setting the config like you said above, but nothing helps. What i want to do: 1. connect 2. get all rooms 3. find the first room where there is a spot open AND the room variable &...
by BenSmeets
10 May 2006, 13:47
Forum: Server Side Extension Development
Topic: org.mozilla.javascript.UniqueTag error???
Replies: 2
Views: 4629

Hi Lapo,

Tx for the help. It was something like that. After checking everything it seemed what i was missing was the 'destroy' function in my extension.

Doh....... tx!
by BenSmeets
10 May 2006, 08:29
Forum: Server Side Extension Development
Topic: org.mozilla.javascript.UniqueTag error???
Replies: 2
Views: 4629

org.mozilla.javascript.UniqueTag error???

Hi all, i get this extension (AS) error when starting up the server. I have no clue as to what could be wrong, anyone know what the UniqueTag error could mean? Tnx in advance, Ben 2006/05/10 10:40:31.886 - [ WARNING ] [id: 10] (JavascriptExtension.logASError): Error in extension [ main.as ]:...
by BenSmeets
28 Mar 2006, 11:16
Forum: SmartFoxServer 1.x Discussions and Help
Topic: gerUserList()
Replies: 2
Views: 3179

I am just guessing here, but i think he ment the specs for the return Object. What properties are present in that Object and stuff.
by BenSmeets
28 Mar 2006, 10:57
Forum: SmartFoxServer 1.x Discussions and Help
Topic: getUserCount() update too late?
Replies: 0
Views: 1972

getUserCount() update too late?

Hi all, I am new to the SmartFox server, so let me start by saying... great stuff so far :) I am having a small issue though, for which it might seem usefull to mention/discuss here. In a nutshell, the problem is that the getActiveRoom().getuserCount() property is filled too late. Let me try to expl...

Go to advanced search