Search found 22668 matches

by Lapo
13 Aug 2007, 15:10
Forum: Server Side Extension Development
Topic: Convert ActionscriptObject to Stack / Vector
Replies: 1
Views: 4307

No, it's not possible. Additionally the ActionscriptObject behaves more like a Map than a Collection (as Stack and Vector)
by Lapo
13 Aug 2007, 15:07
Forum: Server Side Extension Development
Topic: Access Zone-extensions from Zone-room-extension
Replies: 3
Views: 6164

You don't need to add those game specific method to the Zone itself: it would be a better design if you created a new Class for it. Let's say CardManager whose responsibility is handling the deck, shuffling cards etc... The CardManager could expose a set of static methods, so you can call them direc...
by Lapo
11 Aug 2007, 17:31
Forum: SmartFoxServer 1.x Discussions and Help
Topic: joinRoom error
Replies: 5
Views: 6161

It's not very easy to follow the sequence of actions that you're executing. Could you please briefly list the actions in order?

Like:
- check number of users
- create room server side
- send message to clients ... etc...
by Lapo
11 Aug 2007, 17:23
Forum: Server Side Extension Development
Topic: Problem Creating Rooms on Server Side
Replies: 6
Views: 9661

Since you're passing the entire object coming from the client to the method there might be some inconsistency with the types of those values.

Can you trace the type of each variable in params.roomObj after their name and value?
by Lapo
11 Aug 2007, 16:55
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Install on remote Linux server
Replies: 15
Views: 14854

Are you sure you're not using and old Admin tool? The one coming with SFS 1.5.x should report at least version 1.3.5 (check the top bar)
by Lapo
11 Aug 2007, 13:04
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Warning Id 48
Replies: 4
Views: 6150

SFS errors are not coded, they are all short English messages.
This:
[id: 48]

doesn't refer to an error code.
by Lapo
11 Aug 2007, 13:03
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Players unable to connect yet can telnet to port
Replies: 7
Views: 10180

I am loading the policy file from the SF server prior to connecting. Do you have any reports of that failing?

No, but you know there can be many reasons... computer config (firewalls), network config etc...

Can I see the application? If possible send us a link via PM or email
by Lapo
11 Aug 2007, 12:59
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Which method is better: SendMessage or RoomVariables
Replies: 1
Views: 3674

a raw string is much better, plus you use an extension which allows you to have better control over your application logic
by Lapo
11 Aug 2007, 12:58
Forum: SmartFoxServer 1.x Discussions and Help
Topic: getServerTime or trigger event every X seconds
Replies: 5
Views: 8140

getTimer() and setInterval()
just like in Flash. Check the server side API in the docs
by Lapo
11 Aug 2007, 12:57
Forum: Features Wish List
Topic: CVS system for smart fox
Replies: 1
Views: 5751

I don't understand your question? :shock: :?:
Just create a repository for your classes and commit your files there.
by Lapo
11 Aug 2007, 12:52
Forum: Server Side Extension Development
Topic: Add methods to Array Prototype
Replies: 1
Views: 4108

I would suggest to avoid that. It will break the framework which relies on iterating over array properties/items. In Flash Actionscript there was a way to hide new methods from the iterative process but this is not supported by the Rhino compiler. I'd suggest to create an additional class/prototype ...
by Lapo
11 Aug 2007, 12:49
Forum: Server Side Extension Development
Topic: Problems with AbstractExtension.sendResponse, "str"
Replies: 4
Views: 6777

The problem is that you're sending the params in the wrong order. At index 0 you should put the "command name", in other words any string id that you will recognize on the client side. Then start with the params at index 1 All this and more is explained in tutorial 8.6 which demonstrates t...
by Lapo
11 Aug 2007, 12:34
Forum: SmartFoxServer 1.x Discussions and Help
Topic: flexbuilder --> AS3 example
Replies: 3
Views: 6993

Try doing a "clean" on the current project... sometimes Flex goes a little crazy. In case that doesn't work you can use the API sources. -> viewtopic.php?t=1424
(Anyways I can assure you that the class IS in that swc!)
by Lapo
10 Aug 2007, 17:33
Forum: Server Side Extension Development
Topic: Access Zone-extensions from Zone-room-extension
Replies: 3
Views: 6164

In general you shouldn't... or at least it's usually not the right approach. Room-level extensions shouldn't directly call/invoke methods on the Zone-level extension.
This doesn't mean they can't talk to each other, but just not that way.
What are you trying to do?
by Lapo
10 Aug 2007, 17:30
Forum: Server Side Extension Development
Topic: get server IP in java extension
Replies: 6
Views: 14727

IP address can be read with: String ip = SmartFoxServer.SERVER_ADDR This will reflect the setting in the config.xml Alternatively, is it possible to make smartfoxserver listen on more than one address, i.e. loopback and public IP? Yep, with the latest patch ( 1.5.8 ) SFS binds to both the physical a...

Go to advanced search