[SOLVED] Trace generating file list for "All Games"

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

Moderator: battlecat

[SOLVED] Trace generating file list for "All Games"

Postby RomKnight » Thu Nov 04, 2010 7:05 pm

Hi,

Long time no post. My wahcade has been running like a charm, until today.

I've upgraded to Fedora14 and mame .140 and while it give some erros about deprecated functions which does not affect functionality, this error has the effect of not showing me half the games in my list. :(

I can generate other lists but "All Games" seems either to big to parse or the new mameinfo.xml has something extra now.

Is there a something I can do or a quick fix to this?

Thanks

Code: Select all
Traceback (most recent call last):
  File "/usr/local/share/games/wahcade/win_filter.py", line 196, in on_btnApplyFilter_clicked
    self.create_initial_filter()
  File "/usr/local/share/games/wahcade/win_filter.py", line 314, in create_initial_filter
    self.dlgwait_pulse)
  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: 'keyboard'
Last edited by RomKnight on Sat Nov 06, 2010 2:56 pm, edited 1 time in total.
RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Re: Trace generating file list for "All Games"

Postby sairuk » Fri Nov 05, 2010 3:27 am

You will need to use one of the later launchpad Wah!Cade releases (or tweak the win_filters.py file yourself), see Bug #573073

https://bugs.launchpad.net/wahcade/+bug/573073
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: Trace generating file list for "All Games"

Postby RomKnight » Sat Nov 06, 2010 2:00 pm

Unfortunately I'm using the latest v.99pre8 for awhile. I used the RPM available on the site.

I definitely don't know how to fix the code :(

I'll download the source and start from there. Maybe the RPM doesn't contain the fix.
RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby RomKnight » Sat Nov 06, 2010 2:59 pm

Saruk, thanks for pointing me in the right direction.

After reading the bug comments, I decided to give it a shot since it was only a matter of adding 'keyboard' as "controller_type"

So in filters.py I added the line " 'keyboard': u'keyboard'" in "controller_types" section:

Code: Select all
    'joy2way': u'2-Way Joystick',
    'vjoy2way': u'Vertical 2-Way Joystick',
    'joy4way': u'4-Way Joystick',
    'joy8way': u'8-Way Joystick',
    'stick': u'Analogue Joystick (or ~270\xb0 Wheel)',
    'doublejoy2way': u'Double 2-Way Joysticks',
    'vdoublejoy2way': u'Double Vertical 2-Way Joysticks',
    'doublejoy4way': u'Double 4-Way Joysticks',
    'doublejoy8way': u'Double 8-Way Joysticks',
    'lightgun': u'Light-Gun',
    'paddle': u'Paddle (or ~270\xb0 Wheel)',
    'dial': u'Spinner (or 360\xb0 Wheel)',
    'trackball': u'Trackball',
    'pedal': u'Pedal',
    'keyboard': u'keyboard'
    '': u'None'}

RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby sairuk » Sun Nov 07, 2010 12:19 am

Glad to help, so it was filters.py? I was at work and couldn't recall exactly which file it was.
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: [SOLVED] Trace generating file list for "All Games"

Postby RomKnight » Thu Nov 11, 2010 11:31 pm

yes, it was in filters.py
RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby J-Rod » Wed Dec 15, 2010 1:14 am

Is anyone able to help me compile the current build, after fixing the "filters.py" file to include the missing keyboard entry? I am getting this exact same issue using the latest .deb compile from the downloads. I tried installing the source with the install file as root, yet I get errors about non-existing directories. (I would think they could be created when run as root, no?) I also tried changing the path in the install file to point to space inside my home folder, no dice there either.
J-Rod
 
Posts: 5
Joined: Sun Dec 12, 2010 5:17 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby J-Rod » Fri Dec 17, 2010 12:47 am

Okay, so again I am a bit of a moron. I didn't realize that the .deb was just placing all the python files in the correct locations in the OS. I made the proper edit to the filters.py file, and replaced them as I found them with a "locate" command. All is well!
J-Rod
 
Posts: 5
Joined: Sun Dec 12, 2010 5:17 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby SeTTleR » Thu Jan 27, 2011 8:20 pm

Hi,
with Mame 141u1, I have nearly the same problem, only the key is 'Keypad'.
Adding
Code: Select all
'keypad': u'Keypad',


to _controllers in filters.py solved it.
SeTTleR
 
Posts: 35
Joined: Sat Jul 28, 2007 8:36 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby sairuk » Thu Jan 27, 2011 10:10 pm

Thanks, i was about to update this weekend
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: [SOLVED] Trace generating file list for "All Games"

Postby RomKnight » Wed Dec 28, 2011 12:13 am

So I tried to generate my filters again with mame .144 ( i try every once and a while) and was stuck again.

After sorting the newly created mameinfo.xml controllers here's my current list inf filters.py

PS: quite a few things changed...

Wah!cade / (mah!cade now?) is still my choice as MAME front-end

_controllers = {
# 'doublejoy2way': u'Double 2-Way Joysticks',
# 'doublejoy4way': u'Double 4-Way Joysticks',
# 'doublejoy8way': u'Double 8-Way Joysticks',
# 'joy2way': u'2-Way Joystick',
# 'joy4way': u'4-Way Joystick',
# 'joy8way': u'8-Way Joystick',
# 'vdoublejoy2way': u'Double Vertical 2-Way Joysticks',
# 'vjoy2way': u'Vertical 2-Way Joystick',

'dial': u'Spinner (or 360\xb0 Wheel)',
'doublejoy': u'Double Joystick',
'gambling': u'Gambling keys: ZXCVBN',
'hanafuda': u'Hanafuda: keys: A to M and/or keypad',
'joy': u'Joystick',
'keyboard': u'Keyboard',
'keypad': u'Keypad',
'lightgun': u'Light-Gun',
'mahjong': u'Mahjong keys: A to M and/or keypad',
'mouse': u'Mouse',
'paddle': u'Paddle (or ~270\xb0 Wheel)',
'pedal': u'Pedal',
'positional': u'Rotary',
'stick': u'Analogue Joystick (or ~270\xb0 Wheel)',
'trackball': u'Trackball',
'': u'None'}
RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby sairuk » Wed Dec 28, 2011 4:54 am

Mah!Cade had been updated previously to handle 144, some of your descriptions are better than I have so I will add them next commit. Thanks.
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: [SOLVED] Trace generating file list for "All Games"

Postby RomKnight » Thu Dec 29, 2011 3:51 am

Weird... I updated to Mah!Cade and got the error. That's why I changed filters.py.

Then again it overwrites over Wah!Cade so I may be using something older.

Anyway, at least you have new descriptions :lol:
RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Re: [SOLVED] Trace generating file list for "All Games"

Postby sairuk » Thu Dec 29, 2011 7:05 am

RomKnight wrote:Weird... I updated to Mah!Cade and got the error. That's why I changed filters.py.


Launchpad version should have contained the fix, not the packaged version; is that what you used?
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: [SOLVED] Trace generating file list for "All Games"

Postby RomKnight » Fri Dec 30, 2011 2:43 pm

Due to an HDD problem (started failing) I had to reinstall the OS.

I used bzr to download mahacade, restored my .wahcade folder, changed some paths and all was fine after generating the filters and all was fine without any modification.

This was yesterday (29th DEcember 2011) so, thumbs up. Nice work.
Last edited by RomKnight on Fri Dec 30, 2011 3:12 pm, edited 1 time in total.
RomKnight
 
Posts: 103
Joined: Wed Oct 03, 2007 10:52 pm

Next

Return to Wah!Cade

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron