Search found 35 matches

by Francois
17 Jun 2009, 03:20
Forum: RedBox
Topic: Cannot run Red5 in Mac OS X Leopard
Replies: 3
Views: 10224

Cannot run Red5 in Mac OS X Leopard

Hello,
when I try to launch red5 the program quit and here is what I got in my logs:

17/06/09 06:45:54 com.apple.launchd[133] ([0x0-0x30030].org.red5.server.Red5[263]) posix_spawnp("/Applications/SmartFoxServer PRO 1.6.6/Server/RedBox/Red5.app/Contents/MacOS/Red5", ...): Permission denied
17/06/09 ...
by Francois
25 Oct 2007, 14:56
Forum: Server Side Extension Development
Topic: Can't delete a room created by the server
Replies: 7
Views: 12732

I just saw your reply, thank you!
One brilliant thing about SFS is its support, thanks again mate!

Here is how I workaround this issue:


...
case "userExist":
case "userLost":
var room = (event_str=="userExist") ? evt.room : CURRENT_ZONE.getRoom(evt.roomIds[0]);
var lostUserId = evt.userId ...
by Francois
23 Oct 2007, 08:13
Forum: Server Side Extension Development
Topic: LoadVars creating an error on ServerSide!
Replies: 1
Views: 5123

LoadVars creating an error on ServerSide!

Exception in thread "loadvar_1" java.lang.NullPointerException
at it.gotoandplay.smartfoxserver.lib.http.LoadVars.run(LoadVars.java:196
)
at java.lang.Thread.run(Unknown Source)

here is what i get when i try to run this...

// LoadVars
var send_lv = new LoadVars();
send_lv.action = "clear ...
by Francois
23 Oct 2007, 08:02
Forum: Server Side Extension Development
Topic: Can't delete a room created by the server
Replies: 7
Views: 12732

My version 1.5.5.

[CS] Client Side
[SS] Server Side

1. [CS] User login
2. [CS] User receives the RoomListUpdate event...
3. [CS] Join a waiting room (one per lang) so waitingRoomFR or waitingRoomNL
4. [SS] handleInternalEvent check if he just joined a waiting room
5. [SS] if yes, call th smartJoin ...
by Francois
23 Oct 2007, 07:00
Forum: Server Side Extension Development
Topic: Can't delete a room created by the server
Replies: 7
Views: 12732

I found a workaround when creating the room, I set the room owner to the first user... this way it'll automatically disappear when empty.

Do you know if I must take special care of something using this "trick" ?
Like side effects that I would expect ?

Thank you for your help.

-François-
by Francois
23 Oct 2007, 06:23
Forum: Server Side Extension Development
Topic: Can't delete a room created by the server
Replies: 7
Views: 12732

The strange thing is that according to the admin tool no one is inside!
I'm gonna check with some trace statements now...

I got this:

it.gotoandplay.smartfoxserver.data.User@1c6866d

But no one is in here according to the admin tool!

If I check its name it is the last (and he was alone) user that ...
by Francois
22 Oct 2007, 13:51
Forum: Server Side Extension Development
Topic: Can't delete a room created by the server
Replies: 7
Views: 12732

Can't delete a room created by the server

hey!

On my Zone Extension, I create a new room when needed...

var newRoom_obj = {};
newRoom_obj.name = getNewGamingRoomName(roomPrefix_str);
newRoom_obj.pwd = NEW_ROOM_PWD;
newRoom_obj.maxU = MAX_USERS_PER_GAME;
newRoom_obj.isGame = true;
newRoom_obj.isTemp = true;
newRoom_obj.uCount = false;
var ...
by Francois
19 Oct 2007, 13:29
Forum: The Bug Trap
Topic: switch not working on ServerSide ActionScript
Replies: 2
Views: 123

Thank you for your answer Lapo! :D
by Francois
17 Oct 2007, 14:11
Forum: The Bug Trap
Topic: switch not working on ServerSide ActionScript
Replies: 2
Views: 123

switch not working on ServerSide ActionScript

Not really a problem because we simply need to use the if statement...

Not working

...
switch(evt.name)
{
case "userJoin":
trace("hello");
break;
}
...

use if instead
Working
...
if(evt.name=="userJoin")
{
trace("hello");
}
...

But it can makes you loose some time...

-François-
by Francois
17 Oct 2007, 14:06
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room password doesn't appear in the Remote Administration
Replies: 2
Views: 6183

Working great thanx :D
by Francois
17 Oct 2007, 11:47
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room password doesn't appear in the Remote Administration
Replies: 2
Views: 6183

Room password doesn't appear in the Remote Administration

Hello,

in my config.xml I have the following:

<Zones>
<Zone name="someZone" emptyNames="true" uCountUpdate="false" buddyList="false" roomListVars="false">
<Rooms>
<Room name="waitingRoomFR" isPrivate="true" password="myp4ssword" maxUsers="250" isTemp="false" autoJoin="false" />
</Rooms ...
by Francois
09 Jan 2007, 10:09
Forum: Features Wish List
Topic: server side setTimeout
Replies: 4
Views: 14858

Working great !!!

Thank you a lot, this is another (little but very useful) step forward for SFS :D

I'm developing on 1.5.0 but our production server is using 1.4.0...
Will it work on 1.4.0 ?

I cannot access the prod server at this time so if you can confirm this, I'd be even happier... :?:
by Francois
04 Jan 2007, 12:47
Forum: The Bug Trap
Topic: switch case variable in a ServerSide ActionScript Extension
Replies: 3
Views: 152

I have no error in the console, the code the "case" is simply skipped.
by Francois
04 Jan 2007, 08:45
Forum: The Bug Trap
Topic: switch case variable in a ServerSide ActionScript Extension
Replies: 3
Views: 152

switch case variable in a ServerSide ActionScript Extension

In my extension,
i have something like that:
NOT WORKING...

var maxUserForThisRoom = 2;
switch(userOnline)
{
case 1:
trace("first user");
break;

case maxUserForThisRoom:
trace("close the room");
break;
}



WORKING...

switch(userOnline)
{
case 1:
trace("first user");
break;

case 2:
trace ...
by Francois
03 Jan 2007, 14:54
Forum: Features Wish List
Topic: server side setTimeout
Replies: 4
Views: 14858

server side setTimeout

me again ;-)

I guess the title is self explain...