Search found 32 matches

by yaswanth
12 Oct 2011, 12:51
Forum: SmartFoxServer 1.x Discussions and Help
Topic: JSON - how to access roomId data
Replies: 4
Views: 11013

roomId in extension response

Dear Lapo,

Any updates to your todo list? :-)

Is there a way to get the roomId from the extensionResponse other than sending it with the response object?

Regards,
Yaswanth
by yaswanth
30 Apr 2011, 10:55
Forum: SmartFoxServer 1.x Discussions and Help
Topic: uCount update is slow
Replies: 1
Views: 4643

uCount update is slow

Hi,

I have configured smartfox to have a limbo room and different game rooms.
We have uCount update on and the uCounts are being received by the client,
but the problem is that the ucountupdate is very slow.
It typically takes around 30-40secs for the ucount to reflect. Any idea how to decrease ...
by yaswanth
07 Jan 2011, 17:15
Forum: Server Side Extension Development
Topic: RoomList to Guests
Replies: 3
Views: 7333

Smartfox Privileges

Hi appels,

Thank you for your reply. Essentially, even I was thinking that it would be good if there was some kind of ACL for smartfox as well. But from what you speak, does smartfox have any inbuilt privilege system? I have seen only one about Spectator, Player, Moderator.

Can we create our own ...
by yaswanth
07 Jan 2011, 11:47
Forum: Server Side Extension Development
Topic: RoomList to Guests
Replies: 3
Views: 7333

RoomList to Guests

Hi,

Is there way to show the room lists to guests?
My problem is as follows:

I have a customLogin implemented, this checks the login/password combination in database, this means that no guest logins are allowed (am I wrong?).

Now, I want to show the list of rooms to anybody who visits the page ...
by yaswanth
22 Jul 2010, 07:04
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Plugin Manager for smartfox
Replies: 3
Views: 6091

Catching events

Thanks Lapo for a quick short reply :-)

Is there a way I catch the events that go to other extensions?
by yaswanth
19 Jul 2010, 09:57
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Plugin Manager for smartfox
Replies: 3
Views: 6091

Plugin Manager for smartfox

Hi,

I am planning to develop a plugin manager for my smartfox extension.
In brief, I would want to implement a functionality that is independent of the extensions but would get executed before and after handleEvent() and handleInternalEvent.
like


public function preHandleEvent(command c ...
by yaswanth
15 Jul 2009, 13:27
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Smartfox Error on Vista
Replies: 11
Views: 19265

Smartfox Error on Vista

Hi,

I am unable to start smartfox on Vista with following config.


Operating System: Windows Vista
Java Version: 1.6.0_14 from sun
Processor: AMD-32
RAM: 2 GB


Smartfox throws an error before loading. The error file is huge, truncated it to give an idea.


*sys-package-mgr*: processing new ...
by yaswanth
08 Jul 2009, 22:44
Forum: Server Side Extension Development
Topic: Dynamic Room Creation Query
Replies: 1
Views: 4575

Dynamic Room Creation Query

Hi,

If we create a dynamic room (from the client) using an xtName, xtScript. Would an internal event be fired on the server side for room creation? Can this even be caught in xtScript and can the properties of that room be changed from within the xtScript?

Pointers to any documentation would be ...
by yaswanth
02 Jul 2009, 11:32
Forum: Server Side Extension Development
Topic: Custom classes for various extensions
Replies: 3
Views: 6521

Thank you for the reply Lapo.

To make it very simple the idea is that each python extension runs a dedicated instance of the Jython engine

Does that mean that the DB connections that we make through Hibernate also creates separate connections?

Secondly, how does it work when there are dynamic ...
by yaswanth
29 Jun 2009, 21:25
Forum: Server Side Extension Development
Topic: Custom classes for various extensions
Replies: 3
Views: 6521

Custom classes for various extensions

Hi Guys,

I have a set of classes that are common to all the extensions e.g: To read config, check for webserver session existance etc. And most of them are singletons, so just one instance of them is good enough through out the installation.

Is there a way that all these classes are initialized ...
by yaswanth
03 May 2009, 17:22
Forum: Server Side Extension Development
Topic: Python setRoomVariables Prob.
Replies: 2
Views: 5770

Hi Lapo,

Referring to your previous post:
http://forums.smartfoxserver.com/viewtopic.php?t=1525

setRoomVariables takes array or list of RoomVariable().

I am appending all the room variables in a list and trying to pass the list. I dont see how this is different.

Anyways, as per your previous ...
by yaswanth
03 May 2009, 12:15
Forum: Server Side Extension Development
Topic: Python setRoomVariables Prob.
Replies: 2
Views: 5770

Python setRoomVariables Prob.

Hi!

I am setting a room variable as follows:



tableDeck = list(range(52))
_server.trace("Setting Room Variable " + str(tableDeck))

roomVarList = []
roomVarList.append(RoomVariable("tableDeck", tableDeck, 1,1))

_server.trace(_server.getCurrentRoom().getName())
_server.trace("Room ...
by yaswanth
15 Apr 2009, 19:50
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How to get the session id from PHP in a safe
Replies: 3
Views: 10445

Hi Lapo,

Is your method not vulnerable?

Say a user X logged on to the website
and a user Y can easily hijack X's session by simply sending X's login name to SFS.
A work around can be to track IP, but that would mean users behind proxy might not be able to login or users behind proxy can hijack ...
by yaswanth
01 Apr 2009, 21:13
Forum: Server Side Extension Development
Topic: Importing JAVA Libraries in Python
Replies: 2
Views: 6475

SimpleJSON in Jython

As I mentioned above, I tried using simplejson and it throws an error which says 'invalid syntax' near 'yield'.

After some digging, I came to know that 'yield' doesnt work in Jython 2.1.

So the best way to do this is us


from __future__ import generators


At the beginning of the file (not ...
by yaswanth
29 Mar 2009, 12:47
Forum: Server Side Extension Development
Topic: Importing JAVA Libraries in Python
Replies: 2
Views: 6475

Importing JAVA Libraries in Python

Hi,

I am stuck in importing JAVA libraries to Python.

1. How do I import JSON?
I tried using simplejson with SFS Python, but its throwing some errors. So I didnt want to use external libs and wanted to use core JAVA libs. Is there a way I can directly import Java's JSON Classes? I have copied ...