Search found 22646 matches

by Lapo
06 Aug 2007, 07:44
Forum: Server Side Extension Development
Topic: Program too big jump offset (Line number not available)
Replies: 9
Views: 15954

Hi, SmartFoxServer utilizes Rhino, Mozilla's javascript engine, to compile AS code at runtime and execute it. It is known that there might be a few cases in which the engine fails to compile the code due to very large methods or extremely large scripts. There can be a number of workarounds: 1- if yo...
by Lapo
04 Aug 2007, 16:16
Forum: Server Side Extension Development
Topic: python extension importing other modules/packages
Replies: 3
Views: 6555

there are currently a number of limitations that you should be aware of: 1. extensions should reside inside the sfsExtensions/ folder. Not necessarily at that level however. You could have something like this, for example: sfsExtensions/ chatApplication/ gameLobby/ drivingGame/ ... you get the idea ...
by Lapo
03 Aug 2007, 17:32
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Error 2048 (but from only one computer)
Replies: 5
Views: 7650

Yep, you should run the server on a machine that doesn't have other services running on those ports (the ideal one is port 80) As an alternative just add a new network card to the server, so you can run the server on another address and bind it to port 80 or 443. You can buy one for just a few $$ ch...
by Lapo
03 Aug 2007, 14:02
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomAdded event in gameRooms
Replies: 1
Views: 4006

Please check our examples (i.e the Tris game), they all solve this issue by calling the getRoomList again, when returning to the Lobby.
by Lapo
03 Aug 2007, 14:00
Forum: SmartFoxServer 1.x Discussions and Help
Topic: get username from userId
Replies: 1
Views: 3869

aargh.. the code is unreadable! :) Pleas use the Code button when posting code snippets, it will save our eyes :P this part is really obscure to me... for (var i=0; i<maxUsers; i++) { // get user obj var userObj = roomObj.getUser(usrId); if(userObj.getId() == usrId) { chat_txt.htmlText += "<fon...
by Lapo
02 Aug 2007, 07:57
Forum: Server Side Extension Development
Topic: Eclipse, Python, and PyDev
Replies: 1
Views: 4405

Unfortunately I've never used this combo for SFS. I did for Python and worked quite nicely, especially for debugging. In the specific case of SmartFoxServer python extensions it will probably not work in terms of code completion, because a good part of the python framework is in the lib/mainLib.py f...
by Lapo
02 Aug 2007, 07:52
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Reload extension, sart, restart sever without Admin.swf ?
Replies: 8
Views: 15549

I've sent an email
by Lapo
02 Aug 2007, 07:10
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Actionscript 3 Tutorials?
Replies: 3
Views: 4723

If you check the latest API update: http://www.smartfoxserver.com/forums/viewtopic.php?t=1424 you will find a CS3 code template to get you started. The differences between AS2 and AS3 in terms of SmartFoxServer usage are very small. The only thing that really changes is the way you specify the event...
by Lapo
01 Aug 2007, 14:58
Forum: Server Side Extension Development
Topic: DbManager could not retrive a connection. java.sql.SQLExcept
Replies: 13
Views: 23085

You seem to be running linux/unix
The Linux version of SFS comes with its own JRE ... if you are running the server with ./sfs you should make sure you install the driver in the embedded JRE
by Lapo
01 Aug 2007, 14:14
Forum: Server Side Extension Development
Topic: DbManager could not retrive a connection. java.sql.SQLExcept
Replies: 13
Views: 23085

How did you install the driver? Did you add it in the lib/ext/ folder of your JRE?
by Lapo
01 Aug 2007, 06:58
Forum: Server Side Extension Development
Topic: Dynamically created room & room-variables
Replies: 2
Views: 5692

Room variables are not passed in the roomList by default.
Check this -> viewtopic.php?p=686#686
by Lapo
01 Aug 2007, 06:56
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Obtain IP address without PRO Server
Replies: 6
Views: 9716

Not sure if I understand.
Do you need an ID that stays the same for the entire client session or for every client session?
by Lapo
01 Aug 2007, 06:54
Forum: Server Side Extension Development
Topic: Add extensions in admin interface
Replies: 3
Views: 5919

No, an ftp access or similar (sftp, ssh, telnet) is necessary for managing the extensions
by Lapo
31 Jul 2007, 14:21
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Transfer entire swf files as byte arrays through the socket
Replies: 5
Views: 8089

Also you must be sure that is hard to get the URL of the SWF file that it's loaded this way. Actually there's no url for the SWF file, since it can be retrieved by sending a simple request to the server extension. I agree that this is not the solution to all hacking problems, it's just another tric...
by Lapo
31 Jul 2007, 06:45
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Connection Sharing across Components...
Replies: 3
Views: 5496

In general it's okay. If you're familiar with OOP concepts you could subclass the Event class and create a custom one that allows a generic param object to be passed around. This way you could avoid those pretty unreadable lines like: var obj:Object = evt.target.parent.content.objSettings; which wou...

Go to advanced search