Re: [Xmame] Frontend question
On Sunday 18 July 2004 12:08 pm, Frank Cox wrote: On Sun, 18 Jul 2004 11:34:01 -0600 Frank Cox [EMAIL PROTECTED] wrote: xmame.x11 -listxml works fine; gives me the list from start to end. gxmame rebuild game list segfaults in the middle of the job. So it appears to be something on the gxmame end of things, not the xmame end, that's blowing up. In the spirit of scientific experimentation, I just tried this: xmame.x11 -listxml | xml2info And it rocked on right through the entire list with no problem. Interesting... Well, after applying the patch, (as found on the xmame web page), gxmame now works, but it doesn't display mameinfo.dat data - just a blank sidebar with my screenshots. Could it be that there are multiple places in gxmame that depend on listinfo? Doug pgpH891gEYAZh.pgp Description: signature
Re: [Xmame] Frontend question
On Thursday 29 July 2004 10:38 am, Doug Holland wrote: Well, after applying the patch, (as found on the xmame web page), gxmame now works, but it doesn't display mameinfo.dat data - just a blank sidebar with my screenshots. Could it be that there are multiple places in gxmame that depend on listinfo? Never mind, operator error on my part, got the mameinfo stuff working again. pgpv8EPALOqOJ.pgp Description: signature
Re: [Xmame] Frontend question
On Sat, 17 Jul 2004 14:39:25 -0500 handsomepete [EMAIL PROTECTED] wrote: Thanks Lawrence. Works great. It does? It segfaults about halfway through rebuilding the gamelist here. ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Lawrence Gold wrote: Attached is a patch that works. Note that you need to have xml2info somewhere in your path (e.g., /usr/local/bin). To apply it, cd into the gxmame directory and run patch -p1 /path/to/gxmame-xml-patch You are superior. ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Pierre Maziere wrote: Rather than patching your existing xmame-0.83.1 build tree, recompile xmame from a clean tree, and it won't segfaults At least, that's what happens for me Isn't it a patch for gxmame? ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
On Sun, 18 Jul 2004, Julian Sikorski wrote: Pierre Maziere wrote: Rather than patching your existing xmame-0.83.1 build tree, recompile xmame from a clean tree, and it won't segfaults At least, that's what happens for me Isn't it a patch for gxmame? yes, but it only affects the way xmame is called by gxmame. When i patched xmame 0.83.1 and recompiled xmame from this pre build tree, i had an illegal instruction error when using -listxml option. This makes gxmame unable to built the games list. Recompiling xmame from a clean tree fixes the problem - Pierre Maziere http://mamory.sourceforge.net ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Pierre Maziere wrote: On Sun, 18 Jul 2004, Julian Sikorski wrote: Pierre Maziere wrote: Rather than patching your existing xmame-0.83.1 build tree, recompile xmame from a clean tree, and it won't segfaults At least, that's what happens for me Isn't it a patch for gxmame? yes, but it only affects the way xmame is called by gxmame. When i patched xmame 0.83.1 and recompiled xmame from this pre build tree, i had an illegal instruction error when using -listxml option. This makes gxmame unable to built the games list. Recompiling xmame from a clean tree fixes the problem I've misunderstood you. I'm using 0.84u3 clean build and it works fine. ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
On Sun, 18 Jul 2004 14:33:46 +0200 (CEST) Pierre Maziere [EMAIL PROTECTED] wrote: When i patched xmame 0.83.1 and recompiled xmame from this pre build tree, i had an illegal instruction error when using -listxml option. This makes gxmame unable to built the games list. Recompiling xmame from a clean tree fixes the problem Not for me. xmame.x11 -listxml works fine; gives me the list from start to end. gxmame rebuild game list segfaults in the middle of the job. So it appears to be something on the gxmame end of things, not the xmame end, that's blowing up. ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Frank Cox wrote: Not for me. xmame.x11 -listxml works fine; gives me the list from start to end. gxmame rebuild game list segfaults in the middle of the job. So it appears to be something on the gxmame end of things, not the xmame end, that's blowing up. Just a guess, try moving mameinfo.dat and history.dat out of your MAME dir. Lawrence's patch removed the bit that set the path to these to /dev/null. Otherwise all that text gets dumped in the -listxml output and gxmame might not be able to cope with it. - Paul ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
On Sun, 18 Jul 2004 11:34:01 -0600 Frank Cox [EMAIL PROTECTED] wrote: xmame.x11 -listxml works fine; gives me the list from start to end. gxmame rebuild game list segfaults in the middle of the job. So it appears to be something on the gxmame end of things, not the xmame end, that's blowing up. In the spirit of scientific experimentation, I just tried this: xmame.x11 -listxml | xml2info And it rocked on right through the entire list with no problem. Interesting... ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Paul Priest wrote: Just a guess, try moving mameinfo.dat and history.dat out of your MAME dir. Lawrence's patch removed the bit that set the path to these to /dev/null. Otherwise all that text gets dumped in the -listxml output and gxmame might not be able to cope with it. Here's an improved patch. The first time around, I had put the pipe to xml2info in the wrong spot, and the quick way to fix it was to remove the two /dev/null bits. diff -Nur gxmame-0.34b/src/mameio.c gxmame-0.34b-xml/src/mameio.c --- gxmame-0.34b/src/mameio.c 2003-11-26 02:38:21.0 -0700 +++ gxmame-0.34b-xml/src/mameio.c 2004-07-18 13:58:18.890130776 -0600 @@ -217,7 +217,7 @@ /* Generate the list */ /* without including neither history nor mameinfo to have less to parse after*/ - opt=g_strdup_printf(%s -listinfo -%s /dev/null -%s /dev/null 2/dev/null, + opt=g_strdup_printf(%s -listxml -%s /dev/null -%s /dev/null | xml2info 2/dev/null, current_exec-path, available_options-mameinfo_file_option, available_options-history_file_option);
[Xmame] Frontend question
Hi. I got used to gxmame and was sad when I saw it no longer functions with 0.84 due to lack of -listinfo. Have a look at this (fragment of mameio.c from gxmame-0.34b) /* Generate the list */ /* without including neither history nor mameinfo to have less to parse after*/ opt=g_strdup_printf(%s -listinfo -%s /dev/null -%s /dev/null 2/dev/null, current_exec-path, available_options-mameinfo_file_option, available_options-history_file_option); How to make it working with -listxml | xml2info? I have to learn C programming :( ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Julian Sikorski wrote: Hi. I got used to gxmame and was sad when I saw it no longer functions with 0.84 due to lack of -listinfo. Have a look at this (fragment of mameio.c from gxmame-0.34b) /* Generate the list */ /* without including neither history nor mameinfo to have less to parse after*/ opt=g_strdup_printf(%s -listinfo -%s /dev/null -%s /dev/null 2/dev/null, current_exec-path, available_options-mameinfo_file_option, available_options-history_file_option); How to make it working with -listxml | xml2info? I have to learn C programming :( You might be able to simply substitute -listxml %s | xml2info for -listinfo %s in the above code. ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Lawrence Gold wrote: You might be able to simply substitute -listxml %s | xml2info for -listinfo %s in the above code. It doesn't work. Sorry to bother you, but shadow_walker doesn't respond. ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
On Sat, 2004-07-17 at 11:58 +0200, Julian Sikorski wrote: Lawrence Gold wrote: You might be able to simply substitute -listxml %s | xml2info for -listinfo %s in the above code. It doesn't work. Sorry to bother you, but shadow_walker doesn't respond. I can't speak for the rest of the gxmame developers but I don't have the time right now to fix it. If you want to see this fixed ASAP, send us patches. If you are gonna use an xml library please use libxml2 which is used by gtk anyway. Give us a couple of weeks and it will be fixed (at least in CVS). Promise :) Nicos ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Nicos Panayides wrote : I can't speak for the rest of the gxmame developers but I don't have the time right now to fix it. If you want to see this fixed ASAP, send us patches. If you are gonna use an xml library please use libxml2 which is used by gtk anyway. Give us a couple of weeks and it will be fixed (at least in CVS). Promise :) Well, xmame 0.84 isn't out yet, so I guess the real bugging hasn't surfaced yet... I know I'll also be lost and miserable when gxmame will stop working ;-) Matthias -- Matthias SaouWorld Trade Center -Edificio Norte 4 Planta System and Network Engineer 08039 Barcelona, Spain Electronic Group Interactive Phone : +34 936 00 23 23 ___ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
Re: [Xmame] Frontend question
Uytkownik Matthias Saou napisa: Well, xmame 0.84 isn\'t out yet, so I guess the real bugging hasn\'t surfaced yet... I know I\'ll also be lost and miserable when gxmame will stop working ;-) You can build it for yourself - port mame 0.84u3 and use unix folder from mess cvs. Detailed instructions are in src/unix/contrib/porting.
Re: [Xmame] Frontend question
Julian Sikorski wrote: Lawrence Gold wrote: You might be able to simply substitute -listxml %s | xml2info for -listinfo %s in the above code. It doesn't work. Sorry to bother you, but shadow_walker doesn't respond. Attached is a patch that works. Note that you need to have xml2info somewhere in your path (e.g., /usr/local/bin). To apply it, cd into the gxmame directory and run patch -p1 /path/to/gxmame-xml-patch diff -Nur gxmame-0.34b/src/mameio.c gxmame-0.34b-xml/src/mameio.c --- gxmame-0.34b/src/mameio.c 2003-11-26 02:38:21.0 -0700 +++ gxmame-0.34b-xml/src/mameio.c 2004-07-17 12:41:19.661517600 -0600 @@ -217,10 +217,8 @@ /* Generate the list */ /* without including neither history nor mameinfo to have less to parse after*/ - opt=g_strdup_printf(%s -listinfo -%s /dev/null -%s /dev/null 2/dev/null, - current_exec-path, - available_options-mameinfo_file_option, - available_options-history_file_option); + opt=g_strdup_printf(%s -listxml | xml2info 2/dev/null, + current_exec-path); xmame_pipe = popen(opt, r); g_free(opt);