Search found 22667 matches

by Lapo
07 Aug 2007, 14:22
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Install on remote Linux server
Replies: 15
Views: 14853

It would be great if you could tell us more about what you're doing or it we won't be able to help. Have you installed the server using the provided installer? Did it work successfully? After starting the server you should find one or more wrapper_xxyyzz.log in the logs/ folder (where xxyyzz is a da...
by Lapo
07 Aug 2007, 07:46
Forum: Server Side Extension Development
Topic: python LoadVars missing?
Replies: 1
Views: 4333

It is very easy to perform a LoadVars in python using the urllib and urllib2 modules. Snippet: import urllib, urllib2 def postRequest( theUrl, postParams ): # url-encode post data postData = urllib.urlencode( postParams ) # create a Request object httpReq = urllib2.Request( theUr...
by Lapo
07 Aug 2007, 06:57
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Install on remote Linux server
Replies: 15
Views: 14853

That's the output that you should get :)
If you want to check the status of the server use

Code: Select all

./sfs status


If the server don't start check the log files in the logs/ folder, they are all named with an additional date at the end so its easy to check them out
by Lapo
06 Aug 2007, 16:28
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Install on remote Linux server
Replies: 15
Views: 14853

./install

Check the documentation for more info, chapter 1.3
by Lapo
06 Aug 2007, 07:51
Forum: Server Side Extension Development
Topic: sendXtMessage Question
Replies: 3
Views: 6327

It's a problem with variable scope, or visibility. It's not enough to declare an import... that is just used at compile time to determine the fully qualified name of a class If the object comes undefined you're out of the scope where that variable was declared. The easiest way to avoid such problem ...
by Lapo
06 Aug 2007, 07:46
Forum: Server Side Extension Development
Topic: Program too big jump offset (Line number not available)
Replies: 9
Views: 16018

One thing I've noticed is that when I comment out a couple of Trace functions

According to the above links, this is probably due to a jump larger than 32k.
In other words the point in you code where the trace is called is more than 32k "away" from where the trace function is defined...
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: 16018

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: 6574

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: 7683

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: 4021

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: 3889

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: 4424

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: 15590

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: 4742

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: 23173

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

Go to advanced search