Search found 7 matches

by MoonChild
14 Dec 2009, 17:53
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Message exceed allowed max length!
Replies: 5
Views: 8859

Take in consideration that usually multiplayer apps send small bits of data in contrast with http-server that transfer entire documents or files. A default 4Kb limit for request is a good one :)
In general I would avoid allowing more than 64Kb for client requests as this is also a "shield" againts ...
by MoonChild
13 Dec 2009, 15:15
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Message exceed allowed max length!
Replies: 5
Views: 8859

Lapo wrote:You can configure the max allowed message size by opening your config.xml and changing the value for <MaxMsgLen> which by default is set to 4096 (4Kb)
Ah that's good to hear, because 4kb is hardly anything! Do you also know what's the smallest thing to send?
by MoonChild
11 Dec 2009, 15:31
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Message exceed allowed max length!
Replies: 5
Views: 8859

Message exceed allowed max length!

I'm currently sending objects that have 3 arrays. And at some point when there are around 20 to 30 of those objects on screen. I exceed the max allowed length. Now I heard that sending objects is bigger then arrays. So would sending one array with 3 arrays be better? Or 1 string with all those ...
by MoonChild
09 Dec 2009, 11:46
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Rhino Usage Warning: Missed Context.javaToJS() conversion
Replies: 4
Views: 14246

The for loop that you use to populate the usersToRespond array is not necessary. The Room object exposes a method called getAllUsersButOne().

It works like this:
var usersToRespond = room.getAllUsersButOne(myUser)
It will return an array with all the users in the room except myUser.

Maybe the ...
by MoonChild
08 Dec 2009, 10:26
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Rhino Usage Warning: Missed Context.javaToJS() conversion
Replies: 4
Views: 14246

Hi,
it looks like you are passing the wrong object in a function call. Probably a User object instead of a userId which is expected as a number.
If you also have the line number of the error please double check your code to make sure you are passing the right arguments.
The warning seems to appear ...
by MoonChild
07 Dec 2009, 09:23
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Rhino Usage Warning: Missed Context.javaToJS() conversion
Replies: 4
Views: 14246

Rhino Usage Warning: Missed Context.javaToJS() conversion

I keep getting this warning:

RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
Rhino runtime detected object it.gotoandplay.smartfoxserver.data.User@12fb62c of
class it.gotoandplay.smartfoxserver.data.User where it expected String, Number,
Boolean or Scriptable instance. Please check ...
by MoonChild
04 Dec 2009, 15:36
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Best way to send and receive data in Smartfox?
Replies: 0
Views: 3170

Best way to send and receive data in Smartfox?

I'm working on the multiplayer for my Asteroids game. The idea of the multiplayer is that you and a someone else can play co-op. So togather you shoot on Asteroids, Aliens, etc.

What I got working so far is:
*Players sending and receiving each other's coordinates, rotation.
*Players sending and ...