Search found 13 matches

by Zak
11 Aug 2008, 01:12
Forum: Server Side Extension Development
Topic: using an egg module in a python (jython) server extension?
Replies: 1
Views: 5427

using an egg module in a python (jython) server extension?

Hello,

I have been trying to use pydao http://aplikacja.info/PyDAO.html, which depends on the python module: MySQLdb ( http://mysql-python.sourceforge.net/MySQLdb.html#mysqldb ).

MySQLdb installs using a build script, and installs the missing _mysql module to /usr/lib/python2.4/site-packages ...
by Zak
19 Apr 2008, 19:12
Forum: Server Side Extension Development
Topic: [TUTORIAL] Debug Smartfox at runtime
Replies: 32
Views: 200664

So any update?

Has anybody been able to get debugging to work with python extensions? Please post back if so. I'd kill for the ability to step through code on my extensions, it would certainly save me a lot of time now and in the future.

This would also certainly help out any other python ...
by Zak
19 Apr 2008, 06:35
Forum: Server Side Extension Development
Topic: serverside warning
Replies: 4
Views: 9076

Re: serverside warning

when we test DB Example Advanced, connected with mySQL.we can read data from mySQL by datamanager. but when we want to add some data into mySQL,we get following msg in serverside.

16:48:39.890 - [ WARNING ] > Exception in ExtensionHandler: java.lang.ClassCastException: java.lang.String cannot be ...
by Zak
10 Apr 2008, 09:14
Forum: Server Side Extension Development
Topic: [TUTORIAL] Debug Smartfox at runtime
Replies: 32
Views: 200664

I have tried both starting the server from eclipse and also connecting to the server while it is already running.

The project type in eclipse is a "pydev" project, and pydev "perspective" since I am using python, if that makes any difference. I have tried setting it as both types python 2.3-2.5 ...
by Zak
09 Apr 2008, 21:52
Forum: Server Side Extension Development
Topic: how do I get the room from a "userLost" InternalEv
Replies: 4
Views: 9336

I had a similar problem, and ended up solving it the long way by setting a "currentRoomId" user variable when a user enters a game room, which I then read when the userLost event goes. I'm sure this is a waste of resources though, and I will have to clean it up later.
by Zak
09 Apr 2008, 20:33
Forum: Server Side Extension Development
Topic: Java extension deleted from the server, but still visible...
Replies: 4
Views: 8571

Re: Java extension deleted from the server, but still visibl

Hi,

I started using java class for my extension. I made my extension, putted it in the javaExtension folder and configured the config.xml.

All worked perfectly, when i made change to my extension, i compiled it again and i remplaced the file in the javaExtension. The changes that i had made wasn ...
by Zak
09 Apr 2008, 19:50
Forum: Server Side Extension Development
Topic: [TUTORIAL] Debug Smartfox at runtime
Replies: 32
Views: 200664

I have gotten so close...

I still can't seem to have my breakpoints hit from the debugger.

Here's a screen shot of what I'm seeing in eclipse: http://outrunpoker.com/screenshot.jpg


Basically, I know for certain that I am connected to the remote debugger session because I can pause and start it ...
by Zak
07 Apr 2008, 20:14
Forum: Server Side Extension Development
Topic: [TUTORIAL] Debug Smartfox at runtime
Replies: 32
Views: 200664

i cannot help you any more than the tutorial. Make sure that you have followed all steps in the tutorial an you'll be able to remote debug and set breakpoints...


Does this work with python extensions as well as java or actionscript ones? Maybe that could be where I am going wrong...

What ...
by Zak
06 Apr 2008, 22:27
Forum: Server Side Extension Development
Topic: [TUTORIAL] Debug Smartfox at runtime
Replies: 32
Views: 200664

I connected to it fine using the "suspend=y" method posted above.

The console thing came up in eclipse, but it was blank and stayed blank through the execution of my program. The cmd window had output in it as usual, but nothing was in eclipse. What should I be seeing? Does this only work for java ...
by Zak
26 Mar 2008, 21:12
Forum: Server Side Extension Development
Topic: Help using Scheduler in python (I almost got it...)
Replies: 8
Views: 13460

Scheduler in python, how to:

Sorry it took so long, but we were working on other aspects of the poker game that I am building. It is done now, and I am adding in the scheduler to handle server based timing (new hand, count down each player turn, etc..)


Here's a working python version of scheduler:

Outside init:

from it ...
by Zak
13 Mar 2008, 08:22
Forum: Server Side Extension Development
Topic: Help using Scheduler in python (I almost got it...)
Replies: 8
Views: 13460

Help using Scheduler in python (I almost got it...)

Hello,

I have tried to port over the code in "8.18 Server side scheduler" to python, and came very close, but can't get past a certain part.

I can't make a ITaskHandler class... it gives me error:

Traceback (innermost last):
File "<string>", line 863, in init
TypeError: can't instantiate ...
by Zak
09 Mar 2008, 21:40
Forum: Server Side Extension Development
Topic: calling java Packages from python...
Replies: 3
Views: 7460

Nice, it works :)

Thank you Lapo.



For everybody else who comes across this thread, here's how I got a custom java class working with an SFS pro python extension:

I had the .java files, and compiled them into classes w/

javac filename1.java, etc,

then put them into a jar file:

jar cf ...
by Zak
09 Mar 2008, 10:07
Forum: Server Side Extension Development
Topic: calling java Packages from python...
Replies: 3
Views: 7460

calling java Packages from python...

Hello,

I have done good reading the documentation so far, or searching the forums for most of my answers, but I can not find the answer to this one anywhere:

I read in http://www.smartfoxserver.com/docs/docPages/tutorials_pro/18_scheduler/index.htm and also in 8.7 Tutorials: using Java classes in ...