Adam Tommasi wrote:
I'm having a bit of trouble tryinng to play games via the games plugin. Things were working just fine, but I must have changed something that inadvertantly broke the games plugin because now it doesn't work. It doesn't matter if I'm using zsnes or generic, I get the error below. Can anybody help me figure out what's wrong here?

Playing:  /data1/roms/snes/3 Ninjas Kick Back (U).smc
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/freevo/main.py", line 297, in 
eventhandler
    app.eventhandler(event)
  File 
"/home/cvs-community/community/multimedia/freevo/pkg/usr/lib/python2.5/site-packages/freevo/menu.py",
 line 730, in eventhandler
    action(arg=arg, menuw=self)
  File 
"/home/cvs-community/community/multimedia/freevo/pkg/usr/lib/python2.5/site-packages/freevo/games/snesitem.py",
 line 329, in play
  File 
"/home/cvs-community/community/multimedia/freevo/pkg/usr/lib/python2.5/site-packages/freevo/games/game.py",
 line 97, in play
TypeError: _debug_function_() takes at most 2 arguments (3 given)

Well you've found a bug when there is no working joystick, attached is a patch that will fix this. What you need to do is:

# cd /home/cvs-community/community/multimedia/freevo/pkg/usr/lib/python2.5/site-packages/freevo

# patch -Np1 -i /path/to/games-error.patch

HTH
Duncan
Index: src/games/game.py
===================================================================
--- src/games/game.py	(revision 10742)
+++ src/games/game.py	(working copy)
@@ -93,8 +93,8 @@
         if plugin.is_active('joy'):
             try:
                 plugin.getbyname('JOY').enable(FALSE)
-            except Exception, e:
-                _debug_('getbyname(\'JOY\')', e, DWARNING)
+            except Exception, why:
+                _debug_('getbyname(\'JOY\'): %s' % why, DWARNING)
 
         _debug_('Game.play(): Starting thread, cmd=%s' % self.command)
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to