sdlmame 0143 - Game list

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

Moderator: battlecat

sdlmame 0143 - Game list

Postby marcello_2011 » Sat Aug 20, 2011 10:24 pm

Hi,

I am a long time wahcade user and I had to upgrade my Mame PC due to hardware issues and decided to go with a newest release 0.143. ROM set and SDLmame are both on 0.143. The problem I am having is with the game lists. With Wahcade does not matter what I do, it always crash when generating the game list. So I decided to give the latest mahcade launchpad release a try. I am able to generate the "all games" list, but none of the custom lists work. It always crashes the setup. catver.ini is the latest for 0.143 and mameinfo.xml is generate from mame 0.143. I then realized that when trying to create the custom gamelist from the setup, the only option I can select something is if the game is clone or not. All other options based on date, etc are there, but there is nothing to chose from. So I am wondering if there might be an issue with the 0.143 mame xml and mahcade. BTW, I am running it on ubuntu 10.10 (lubunutu).

Thanks,
Marcello
marcello_2011
 
Posts: 4
Joined: Sat Aug 20, 2011 10:12 pm

Re: sdlmame 0143 - Game list

Postby sairuk » Sat Aug 20, 2011 11:58 pm

Delete or move the existing ~/.wahcade/files/mame-0.ftr file and let the setup regenerate it, see if that fixes your issue. I'm not that familar with this portion of standard wahcade yet.

My setup filters works fine (so far as I can tell) after the regeneration.
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: sdlmame 0143 - Game list

Postby marcello_2011 » Sun Aug 21, 2011 1:51 am

Deleting the file you mention recreated my all_games list and it stopped crashing when other filters are selected. But still the only option that allows any selection on the filters is the display clones. All other options always generate a list with a full set of games. I recalled on previous versions that I could select a year (eg 1987) when clicked on "years filters". Now there is no options. See the screenshot I attached. Do you get the same thing?

Thanks,
Marcello
You do not have the required permissions to view the files attached to this post.
marcello_2011
 
Posts: 4
Joined: Sat Aug 20, 2011 10:12 pm

Re: sdlmame 0143 - Game list

Postby sairuk » Sun Aug 21, 2011 3:20 am

ok i see what you mean, I will have to have a look. it may be the result of the fix i asked people to test here: http://www.anti-particle.com/forum_phpbb3/viewtopic.php?f=2&t=666#p2769
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: sdlmame 0143 - Game list

Postby marcello_2011 » Sun Aug 21, 2011 10:09 pm

I did revert the change you referred and it does not make any difference. It seems the game elements from the xml are not parsing properly somewhere in the filters.py. I will see if I can find something in the code. thxs
marcello_2011
 
Posts: 4
Joined: Sat Aug 20, 2011 10:12 pm

Re: sdlmame 0143 - Game list

Postby sairuk » Mon Aug 22, 2011 10:19 am

have committed a quick fix, try it pls
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: sdlmame 0143 - Game list

Postby marcello_2011 » Mon Aug 22, 2011 11:27 pm

I just tried it. It ran for almost 3 hours. The .lst was being generated but it then aborted with the error attached.

I checked the .lst generate against a previous .lst I had and I believe it stopped because of the Ö character.

Current mame-0.lst:

Raster
0
8-Way Joystick
Status Preliminary
Color Good
Sound Good
Casino
funnymou
Funny Mouse
1982
Bootleg? (Chuo Co. Ltd)
suprmous
suprmous
Raster
90
8-Way Joystick
Status Good
Color Good
Sound Good
Platform / Run Jump
funquiz
Fun World Quiz (Austrian)
198?

Previous mame-0.lst:

Raster
0
8-Way Joystick
Status Preliminary
Color Good
Sound Good
Casino
funquiz
Fun World Quiz (Austrian)
198?
Funworld / Öhlinger <--

Thanks,
Marcello
You do not have the required permissions to view the files attached to this post.
marcello_2011
 
Posts: 4
Joined: Sat Aug 20, 2011 10:12 pm

Re: sdlmame 0143 - Game list

Postby sairuk » Tue Aug 23, 2011 3:36 am

marcello_2011 wrote:I just tried it. It ran for almost 3 hours.


Thought that was just my netbook acting up last night, i had to leave it run overnight and it had the same error this morning; my vm doesnt present the same behavior. (although it has a very limited romset installed)

I can use that information to crash mine now, ta so i can look at the problem.
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: sdlmame 0143 - Game list

Postby kerobaros » Sat Sep 17, 2011 9:45 am

I can confirm an identical error to marcello's. Same error message, same everything.
kerobaros
 
Posts: 5
Joined: Wed Dec 03, 2008 5:55 pm

Re: sdlmame 0143 - Game list

Postby kerobaros » Wed Sep 21, 2011 6:46 am

I fixed it!

Okay, in filters.py, there's a function (open_file) that opens up a file (in this case mameinfo.xml) and tries to guess said file's text encoding. For whatever reason, the function that guesses the file's encoding (get_file_encoding) believes that a mameinfo.xml generated by SDLMAME 0.143u5 is written in EUC-KR. (EUC-KR being a now outdated way of storing Korean characters, I know that that just isn't right.)

Line 119 of filters.py currently reads:
Code: Select all
if file_enc.lower() == 'ascii':

I changed it to:
Code: Select all
if file_enc.lower() == 'ascii' or file_enc.lower() == 'euc-kr':

and presto-changeo, everything works perfectly.

Now, I could spend some time and try to figure out why chardet.universaldetector seems to think mameinfo.xml is written in Korean, but... I don't know if I care that much.
kerobaros
 
Posts: 5
Joined: Wed Dec 03, 2008 5:55 pm

Re: sdlmame 0143 - Game list

Postby stealth » Wed Sep 21, 2011 10:12 am

Thank,

Maybe you can post a bug report here http://www.mametesters.org/view_all_bug_page.php
A little mamecab OS - Mah!Cade, mame , retroarch - Livemamecab
The live CD can be used for a quick demo or test, Download ISO
stealth
 
Posts: 70
Joined: Tue Jan 01, 2008 6:26 pm

Re: sdlmame 0143 - Game list

Postby codefenix » Wed Sep 21, 2011 2:33 pm

Kudos to kerobaros for that find. I've long thought that this was caused by certain non-english versions of the catver file. I still have my suspicions, but it looks like I was way off. If it actually has to do with the mameinfo.xml file, which is generated by your own mame on your own system, then maybe Wah!Cade just needs to use the encoding for the OS's default locale instead of trying to autodetect it from the file. It should always match, shouldn't it?


stealth wrote:Maybe you can post a bug report here http://www.mametesters.org/view_all_bug_page.php

This forum and launchpad are the two and only places to discuss Wah!Cade bugs.
User avatar
codefenix
 
Posts: 219
Joined: Fri Sep 25, 2009 3:45 pm
Location: USA

Re: sdlmame 0143 - Game list

Postby kerobaros » Wed Sep 21, 2011 10:55 pm

As you say, codefenix, I believe the bug is in Wah!Cade and Mahcade, not in Mame itself. As far as I can tell, Mame exports its information perfectly; something in python-chardet (if I had to guess) just gets things wrong.
kerobaros
 
Posts: 5
Joined: Wed Dec 03, 2008 5:55 pm

Re: sdlmame 0143 - Game list

Postby Oliveber » Tue Dec 13, 2011 3:34 am

Now, I could spend some time and try to figure out why chardet.universaldetector seems to think mameinfo.xml is written in Korean, but... I don't know if I care that much.
Oliveber
 
Posts: 3
Joined: Tue Dec 13, 2011 3:32 am


Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 3 guests

cron