EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: MESS XML import  (Read 14656 times)

delta

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Chrome 7.0.513.0 Chrome 7.0.513.0
    • View Profile
MESS XML import
« on: 02 September 2010, 20:37 »

Hello Roman,

  It seems that the suggested method to load a MESS XML file doesn't work anymore. As soon as the changes are done to engine.cfg  and clrmamepro is started again, clrmamepro will display an error while scanning the available datfiles.

  The errormessage states "Found an incomplete datfile or a bad exe-output!" followed by information about the last set that is correctly imported.

  At this point there has not been any datfile added and all sets were correct before the change.

Some more information that may be relevant:

- All datfiles in the profiler were either MESS softwarelists (XML) or MAME (XML).
- I'm running clrmamepro on Linux (64-bit) using Wine.
- I remember using this method successfully before with an older version of clrmamepro (I think until around version 3.134).

If you need more information let me know.

Thanks!
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.8 Firefox 3.6.8
    • View Profile
Re: MESS XML import
« Reply #1 on: 03 September 2010, 05:24 »

For MESS you can either use the direct import via the MESS selector in Profiler->CreateBooking
...or...
software lists should work right away as dats

...or....
in case you create a mess xml output you need to add a new entry to your engine.cfg which should look like this

engine (
   name MESS_DAT
   gamelist mess
   cachefile _messdat
   replace machine game
)
...and you have to switch to that type in the profiler if you're trying to load a mess xml dat
Logged

delta

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Chrome 7.0.513.0 Chrome 7.0.513.0
    • View Profile
Re: MESS XML import
« Reply #2 on: 03 September 2010, 06:54 »

Creating a profile for MESS using the first method (Creating a profile from a MESS executable) and loading software lists both work great.

But after I add the MESS_DAT entry to engine.cfg and start cmpro, the profiler will display the error mentioned in my first post while scanning the already existing profiles. At this point I didn't change anything else yet.

If I ignore the error and try to add a MESS XML file I get the error message "Found an incomplete datfile or a bad exe-output!" followed by "An error occurred while reading information from: <path to mess.dat>".

Removing the MESS_DAT entry from engine.cfg and starting cmpro again will cause the error message in the profiler to disappear.

BTW in my first post I did link to your original MESS XML suggestion (http://www.emulab.it/forum/index.php?topic=280.msg806#msg806) but at least for me links do not display not different from any other text in the post so maybe you missed it.

Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.6.8 Firefox 3.6.8
    • View Profile
Re: MESS XML import
« Reply #3 on: 03 September 2010, 07:11 »

Most likely you're loading it wrongly.
Look at the attached screenshot. You need to load the mess xml with the newly created engine name....

Just tested it, exe import works and if you really need to use a mess xml file, this works as well with the shown method.
« Last Edit: 03 September 2010, 07:12 by Roman »
Logged

delta

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Chrome 7.0.513.0 Chrome 7.0.513.0
    • View Profile
Re: MESS XML import
« Reply #4 on: 03 September 2010, 07:46 »

Thanks, I just tried this using a fresh cmpro install and I can confirm this method works. So I tried to find out how to reproduce the error messages in the profiler again and this is what I found:

- Start with a fresh cmpro install.
- Add the MESS_DAT entry to engine.cfg.
- Add a MAME XML file.
- After adding the MAME XML file, cmpro scans the available profiles and will show the error "Found an incomplete datfile or a bad exe-output!"
- Selecting the MAME profile and pressing "Load/Update" will load the MAME profile anyway.
- Opening the profiler again will show the error "Found an incomplete datfile or a bad exe-output!" again.

I have also tried this with a couple of MESS software list XML files and they all worked great. So it seems it only shows a (harmless) error message in the profiler when MESS_DAT is added to engine.cfg and when a MAME XML file is loaded.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.8 Firefox 3.6.8
    • View Profile
Re: MESS XML import
« Reply #5 on: 03 September 2010, 20:14 »

People should use the direct MESS import ;)
Time will tell if this will change...

instead you should use xslt to transform it to a standard MAME style xml ;)
« Last Edit: 03 September 2010, 20:18 by Roman »
Logged

donnyj

  • Karma: 0
  • Offline Offline
  • Posts: 43
  • Operating System:
  • Windows Vista Windows Vista
  • Browser:
  • Firefox 3.6.8 Firefox 3.6.8
    • View Profile
Re: MESS XML import
« Reply #6 on: 03 September 2010, 21:00 »

Hmmm...

What I have been doing is using the actual .xml files from the "hash" directory.

To sort a pile of roms I use the .XML output: "mess -listsoftware > mess_software_lists.xml" and then rebuild those rebuilt files with each individual system "XML".  (Before someone asks/tells, I have too many roms spread around to do a "batch run".

Only "problem" is for the "big" XML, the profile name is "a5200"... no big deal.

Anyways, is my way of doing it wrong, meaning will I not end up with the same results?

On a side note, is "cloneof" working?
Logged

delta

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Chrome 7.0.513.0 Chrome 7.0.513.0
    • View Profile
Re: MESS XML import
« Reply #7 on: 03 September 2010, 21:47 »

People should use the direct MESS import ;)
Time will tell if this will change...

instead you should use xslt to transform it to a standard MAME style xml ;)

I get the hint, I'll use the direct MESS import for now :) Thanks for taking your time to answer my questions and for clrmamepro ofcourse!

Hmm, I just realised how much I actually use clrmamepro and how little issues I actually encounter. I think this is the second issue I encountered (and asked about) in about... 10 years (It really has been that long?!), which shows what a great utility this is :)
Logged

delta

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Linux Linux
  • Browser:
  • Chrome 6.0.472.53 Chrome 6.0.472.53
    • View Profile
Re: MESS XML import
« Reply #8 on: 03 September 2010, 22:13 »

Hmmm...

What I have been doing is using the actual .xml files from the "hash" directory.

To sort a pile of roms I use the .XML output: "mess -listsoftware > mess_software_lists.xml" and then rebuild those rebuilt files with each individual system "XML".  (Before someone asks/tells, I have too many roms spread around to do a "batch run".

Only "problem" is for the "big" XML, the profile name is "a5200"... no big deal.

Anyways, is my way of doing it wrong, meaning will I not end up with the same results?

On a side note, is "cloneof" working?

I always use the XML files from the hash/ directory also, which works great. As far as I know there is no way to import the MESS software lists directly from the MESS executable. For the MESS (The mess -listxml output) import however the recommended way is to use the direct MESS import. And that is what this thread was/is about :)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 4.0.5 Safari 4.0.5
    • View Profile
Re: MESS XML import
« Reply #9 on: 04 September 2010, 06:58 »

But softwarelists should not require an engine change or show the warning....


anyway...regarding the warning for the mess.xml....I will look into this after my holiday....
« Last Edit: 04 September 2010, 18:39 by Roman »
Logged

etabeta

  • Karma: 0
  • Offline Offline
  • Posts: 111
  • Operating System:
  • Mac OS X 10.6.3 Mac OS X 10.6.3
  • Browser:
  • Safari 4.0.5 Safari 4.0.5
    • View Profile
Re: MESS XML import
« Reply #10 on: 07 September 2010, 17:50 »

On a side note, is "cloneof" working?

it works in clrmame (i.e. you can store you romsets in merged/nonmerged/split form based on the settings), but it does not fully work in MESS (i.e. split romsets cannot be loaded if they have shared roms with the parent, see e.g. NES roms which only works if you use the non-merged mode)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 4.0.5 Safari 4.0.5
    • View Profile
Re: MESS XML import
« Reply #11 on: 07 September 2010, 17:52 »

do I hear a new requirement here?
Logged

etabeta

  • Karma: 0
  • Offline Offline
  • Posts: 111
  • Operating System:
  • Mac OS X 10.6.3 Mac OS X 10.6.3
  • Browser:
  • Safari 4.0.5 Safari 4.0.5
    • View Profile
Re: MESS XML import
« Reply #12 on: 12 September 2010, 07:35 »

do I hear a new requirement here?

?

if you are referring to my post, I was just warning about a known MESS bug which will be fixed eventually ;)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 4.0.5 Safari 4.0.5
    • View Profile
Re: MESS XML import
« Reply #13 on: 12 September 2010, 07:46 »

yeah was refering to your post... if it's a purely mess related issue, fine... won't touch it.
Logged
Pages: [1]   Go Up
 

Page created in 0.13 seconds with 20 queries.

anything