mame and wahcade python error

A nice (keyboard based) front end for Arcade / Console game emulators.

Moderator: battlecat

mame and wahcade python error

Postby eternal_sage » Thu Mar 15, 2012 12:20 am

i followed this guide with a little help from here as well. everything seems fine, but when i start wahcade from terminal everything comes up as if it is fine but i get a window with this message. running this on ubuntu 11.10 64 bit if that matters (although I seem to get the same issue on my 32 bit Lubuntu 11.10 machine as well), with the setup files that are found here. thanks in advance!

Code: Select all
Traceback (most recent call last):
  File "wahcade.py", line 81, in <module>
    app = WinMain(options)
  File "/usr/local/share/games/wahcade/win_main.py", line 300, in __init__
    self.load_emulator()
  File "/usr/local/share/games/wahcade/win_main.py", line 1078, in load_emulator
    self.load_list()
  File "/usr/local/share/games/wahcade/win_main.py", line 1121, in load_list
    self.pop_games_list()
  File "/usr/local/share/games/wahcade/win_main.py", line 1384, in pop_games_list
    self.emu_ini)
  File "/usr/local/share/games/wahcade/filters.py", line 369, in create_initial_filter
    gd = mi.next()
  File "/usr/local/share/games/wahcade/filters.py", line 271, in get_xml_game_item
    d['controller_type'] = _controllers[ctrl.attrib['type']]
KeyError: 'joy'
eternal_sage
 
Posts: 7
Joined: Thu Mar 15, 2012 12:14 am

Re: mame and wahcade python error

Postby sairuk » Thu Mar 15, 2012 9:24 pm

You should upgrade to one of the launchpad/development version of wahcade. http://wahki.mameau.com/index.php?title ... stallation

The current wahcade release will not work with newer versions of mame.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: mame and wahcade python error

Postby General_Faliure » Fri Mar 16, 2012 2:38 pm

Maybe it is time to update the frontpage to point to the newer versions of wahcade/mahcade.
Or isn't that possible?
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: mame and wahcade python error

Postby codefenix » Fri Mar 16, 2012 3:02 pm

It might be possible if the webmaster was around to do it. Paint me cynical, but we might be better off starting a new page altogether and letting this one orphan itself.
User avatar
codefenix
 
Posts: 219
Joined: Fri Sep 25, 2009 3:45 pm
Location: USA

Re: mame and wahcade python error

Postby eternal_sage » Thu Mar 29, 2012 2:48 am

ok... i'm trying to get the updated version, but seem to be having some troubles. i've never used bzr before, so if i'm doing something stupid, let me know (probably why its not working, i'd wager)

Code: Select all
jason@Durandal:~$ bzr branch lp:wahcade
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 25 revision(s).
jason@Durandal:~$ cd wahcade
jason@Durandal:~/wahcade$ bzr pull --overwrite -r 25
Using saved parent location: http://bazaar.launchpad.net/~andy-balcombe/wahcade/main/
No revisions to pull.   
eternal_sage
 
Posts: 7
Joined: Thu Mar 15, 2012 12:14 am

Re: mame and wahcade python error

Postby sairuk » Thu Mar 29, 2012 10:13 pm

Code: Select all
Branched 25 revision(s).
jason@Durandal:~/wahcade$ bzr pull --overwrite -r 25


by exectuting the initial branch function you have already grabbed the latest wahcade version, you are trying to overwrite rev25 with rev25 when using the pull command.

the most up to date version, although experimental can be branched from:
Code: Select all
bzr branch lp:~waynemou/wahcade/devel
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: mame and wahcade python error

Postby eternal_sage » Fri Mar 30, 2012 4:20 am

ah, that makes sense. but, no luck. i ran the commands you gave me, and it downloaded and updated some files

Code: Select all
jason@Durandal:~$ bzr branch lp:~waynemou/wahcade/devel
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 102 revision(s).           


but when i try to run wahcade i still the same errors.

Code: Select all
Traceback (most recent call last):
  File "wahcade.py", line 81, in <module>
    app = WinMain(options)
  File "/usr/local/share/games/wahcade/win_main.py", line 300, in __init__
    self.load_emulator()
  File "/usr/local/share/games/wahcade/win_main.py", line 1078, in load_emulator
    self.load_list()
  File "/usr/local/share/games/wahcade/win_main.py", line 1121, in load_list
    self.pop_games_list()
  File "/usr/local/share/games/wahcade/win_main.py", line 1384, in pop_games_list
    self.emu_ini)
  File "/usr/local/share/games/wahcade/filters.py", line 369, in create_initial_filter
    gd = mi.next()
  File "/usr/local/share/games/wahcade/filters.py", line 271, in get_xml_game_item
    d['controller_type'] = _controllers[ctrl.attrib['type']]
KeyError: 'joy'


thanks for trying though.
eternal_sage
 
Posts: 7
Joined: Thu Mar 15, 2012 12:14 am

Re: mame and wahcade python error

Postby sairuk » Fri Mar 30, 2012 11:29 am

please post you mame-0.ini file from ~/.wahcade/ini/ maybe it will give us some clues.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: mame and wahcade python error

Postby shell » Fri Mar 30, 2012 2:04 pm

Here is the mame-O.ini

Code: Select all
### mame-0.ini (wahcade v0.8) ###

list_title                              All Games

### Games List Settings ###
cycle_list                              1

### Execution Settings ###
commandline_format                     
alt_commandline_format_1               
alt_commandline_format_2               

### Settings used by MAMEWAH ###
current_game                            0


I get the same error message after clicking on "Setup Filters..." in the wahcade-setup.py
User avatar
shell
 
Posts: 3
Joined: Fri Mar 30, 2012 2:00 pm

Re: mame and wahcade python error

Postby eternal_sage » Fri Mar 30, 2012 10:00 pm

here is mine

Code: Select all
### mame-0.ini (wahcade v0.8) ###

list_title                              All Games

### Games List Settings ###
cycle_list                              1

### Execution Settings ###
commandline_format                     
alt_commandline_format_1               
alt_commandline_format_2               

### Settings used by MAMEWAH ###
current_game                            0
eternal_sage
 
Posts: 7
Joined: Thu Mar 15, 2012 12:14 am

Re: mame and wahcade python error

Postby sairuk » Fri Mar 30, 2012 10:36 pm

eternal_sage wrote:but when i try to run wahcade i still the same errors.


are you executing the branched instance of wahcade from the local dir while testing?
Code: Select all
jason@Durandal:~/wahcade$ ./wahcade

not
Code: Select all
jason@Durandal:~/wahcade$ wahcade


if you have normal wahcade installed from apt, branching the version will not automatically update the launch script to run from the new location. I can't remember where ubuntu installs wahcade too but its probably /usr/local/games/ or something similar.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: mame and wahcade python error

Postby shell » Mon Apr 02, 2012 12:56 pm

Jep, i'm starting it with ./wahcade

EDIT:

Hm... looks like the mameinfo.xml isn't created correctly:

Code: Select all
                <input players="2" buttons="1" coins="2">
                        <control type="joy" ways="2"/>
                </input>


EDIT2:
Ok, i got it... may be :|
I've removed some line from the xml files. I removed lines with the following words:

type="joy"
type="keypad"
type="positional"
type="mouse"
type="doublejoy"
type="hanafuda"
type="mahjon"
type="gambling"

Hope that helps to fix this error.
User avatar
shell
 
Posts: 3
Joined: Fri Mar 30, 2012 2:00 pm

Re: mame and wahcade python error

Postby eternal_sage » Mon Apr 02, 2012 4:39 pm

okay, so i did this:
Code: Select all
jason@Durandal:~/wahcade$ ./wahcade


and still nothing.

could you post up your xml files so i could see if this works for me? i'm not sure i understand exactly what you edited, and a bad edit would likely be worse than what i have now. thanks!
eternal_sage
 
Posts: 7
Joined: Thu Mar 15, 2012 12:14 am

Re: mame and wahcade python error

Postby shell » Mon Apr 02, 2012 8:06 pm

My xml won't work for you. All pathes etc. dosen't fit.

Just remove all lines with the patterns above.
User avatar
shell
 
Posts: 3
Joined: Fri Mar 30, 2012 2:00 pm

Re: mame and wahcade python error

Postby sairuk » Mon Apr 02, 2012 10:36 pm

shell wrote:type="joy"
type="keypad"
type="positional"
type="mouse"
type="doublejoy"
type="hanafuda"
type="mahjon"
type="gambling"

Hope that helps to fix this error.


If you need to do this, you will not be running the experimental branch, please see http://bazaar.launchpad.net/~waynemou/w ... filters.py lines 74 to 98 accomodate these new input types. Currently just a patch job but if the system is executing correctly it should not fail as per above.

if you are running ./wahcade from the branched directory (looking at the script here) it will still launch the packaged version try instead
Code: Select all
~/wahcade/$ python wahcade.py

or modify the launch script to launch from the new directory instead of /usr/local/ etc.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Next

Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 3 guests

cron