Search found 260 matches

by Virusescu
09 May 2008, 11:16
Forum: RedBox
Topic: Problem starting RedBox on Windows
Replies: 4
Views: 13957

Ughh... :oops:
I've still have troubles.
Exception in thread "main" java.lang.NoClassDefFoundError: Files\QuickTime\QTSystem\QTJava/zip
Might it be from the %CLASSPATH% also specified in the red5.bat?
What should the CLASSPATH point to?
by Virusescu
08 May 2008, 11:02
Forum: RedBox
Topic: Problem starting RedBox on Windows
Replies: 4
Views: 13957

Problem starting RedBox on Windows

Hello boys. Long time no see.
You've catch my eyes with the new release containing RedBox.

I'm very enthusiastic about this, but I've encountered a problem installing / starting up the module.
It might be a trivial problem with Java... but it beats me.

I'm hoping for some help.

Here's the output ...
by Virusescu
03 Nov 2006, 19:19
Forum: SmartFoxServer 1.x Discussions and Help
Topic: multiplayer game
Replies: 2
Views: 7256

Check the SmartFox Server tutorials ;)
http://www.smartfoxserver.com/docs/
by Virusescu
31 Oct 2006, 16:11
Forum: Server Side Extension Development
Topic: user class : getVariables()
Replies: 2
Views: 8021

A quote from Lapo's answers' on an old thread

var rVars = roomObject.getVariables()

// We cycle through the HashMap and trace each variable
for (var i = rVars.entrySet().iterator(); i.hasNext();)
{
var rVar = i.next()
var varName = rVar.getKey()
var varValue = rVar.getValue().getValue ...
by Virusescu
19 Oct 2006, 09:46
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Dectecting when a client is typing.
Replies: 13
Views: 23489

Yeppp.. you are right wallis2xk. I've missed the first check if(this.text == "")

Your code would turn out much easyer :oops:

I sometimes tend to get overlycomplicated with such easy things.
by Virusescu
18 Oct 2006, 19:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Dectecting when a client is typing.
Replies: 13
Views: 23489

What I am trying to say is that you still send irrelevant messages, even if now it's better because you send a message every 2 seconds.
But all can be done better :). And you can rise the interval to 1 second, because messages won't be sent each second... except it there's a change in the user's ...
by Virusescu
18 Oct 2006, 19:38
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Dectecting when a client is typing.
Replies: 13
Views: 23489

Why kill the interval?
This is what I was thinking about


//this is the main boolean checked in the key listener
var isTyping:Boolean = false;
var lastWasTyping = false;
smartfox.onObjectReceived = function(obj:Object, sender:User){
// you'll need to separate the objects it you want to use this ...
by Virusescu
18 Oct 2006, 13:31
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Dectecting when a client is typing.
Replies: 13
Views: 23489

Hey, mnkyhead, you got it almost right.
Your problem is simple. You don't check in the keylistener wheter the user is typing or not, because you already KNOW he's typing. You are doing this in the key listener when a key is pressed so, dooh, he's typing, you can bet on it :) - (maybe check if the ...
by Virusescu
13 Oct 2006, 19:55
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Dectecting when a client is typing.
Replies: 13
Views: 23489

Nobody sugested that you send a message each time a key is pressed.
No way !!!
You need to check when the user starts typing and when it stops, with a precission of like 500 milliseconds.
If no keypress occures between 2 intervals, then the user stoped typing. If at least one keypress occurs, then ...
by Virusescu
12 Oct 2006, 14:12
Forum: Server Side Extension Development
Topic: Can't read some uservars from client
Replies: 13
Views: 25086

And here's what the docs say about the setUserVariables method
Stores data on the server side. When you set/update/delete one or more User Variables all the other users in the room will be notified. User variables are usefull to store user profile data that can be shared across other users.

I ...
by Virusescu
12 Oct 2006, 14:08
Forum: Server Side Extension Development
Topic: Can't read some uservars from client
Replies: 13
Views: 25086

Why should you be notified about a thing that you did it yourself?
by Virusescu
10 Oct 2006, 15:36
Forum: SmartFoxServer 1.x Discussions and Help
Topic: send user in another room
Replies: 5
Views: 11384

If you look closer to the joinRoom server method you will notice the last parameter "sendUpdate"
You need to give it a value of true to do his magic ;).

Good luck
by Virusescu
10 Oct 2006, 12:32
Forum: SmartFoxServer 1.x Discussions and Help
Topic: send user in another room
Replies: 5
Views: 11384

Yep, you're right.
Just build an en extension that will do that action for you if you are a moderator.
by Virusescu
07 Oct 2006, 22:27
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Can't run sfs
Replies: 13
Views: 23091

You still haven't responded to Lapo's questions. Do you want us to guess what wrong?
by Virusescu
06 Oct 2006, 16:38
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Extension Users + Raw Protocol
Replies: 5
Views: 11480

getAllUsers() is a method of the Room Class
In order to get all users from a room you must call it like
var allUsersArray = _server.getCurrentRoom().getAllUsers()
or
var allUsersArray = _server.getCurrentZone().getRoom(someId).getAllUsers()

and not just getAllUsers() because SFS will search for ...