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: Create a .dat file using a Mac  (Read 18196 times)

Carbon

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
  • Operating System:
  • Mac OS X 10.8.4 Mac OS X 10.8.4
  • Browser:
  • Safari 6.0.5 Safari 6.0.5
    • View Profile
Create a .dat file using a Mac
« on: 23 July 2013, 16:02 »

Hi,

normally I use a Windows executable of MAME or MESS in conjunction with ClrMAME using Wine on my Mac.

As an experiment, I just tried creating a .dat file using the -listxml option of SDLMAME directly on Mac OS X. This worked fine for MAME, but when Ido the same with SDLMESS, I get lots of errors when trying to load the corresponding file (Set: <no description>\<no set name> wasn't imported).

What am I doing wrong here (I'm using 0.149u1)?
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #1 on: 23 July 2013, 17:14 »

Well...did you look at the -listxml output? Redirect it yourself to a file and check if it actually is a valid xml file with valid entries.

......and of course for a MESS import you need to switch to a MESS xml parser in profiler->create...
Logged

Carbon

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
  • Operating System:
  • Mac OS X 10.8.4 Mac OS X 10.8.4
  • Browser:
  • Safari 6.0.5 Safari 6.0.5
    • View Profile
Re: Create a .dat file using a Mac
« Reply #2 on: 23 July 2013, 22:53 »

These are the first line of the .dat file:
Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE mess [
<!ELEMENT mess (machine+)>
<!ATTLIST mess build CDATA #IMPLIED>
<!ATTLIST mess debug (yes|no) "no">
<!ATTLIST mess mameconfig CDATA #REQUIRED>
<!ELEMENT machine (description, year?, manufacturer?, biosset*, rom*, disk*, device_ref*, sample*, chip*, display*, sound?, input?, dipswitch*, configuration*, adjuster*, driver?, device*, slot*, softwarelist*, ramoption*)>
<!ATTLIST machine name CDATA #REQUIRED>
<!ATTLIST machine sourcefile CDATA #IMPLIED>
<!ATTLIST machine isbios (yes|no) "no">
<!ATTLIST machine isdevice (yes|no) "no">
<!ATTLIST machine ismechanical (yes|no) "no">
<!ATTLIST machine runnable (yes|no) "yes">
<!ATTLIST machine cloneof CDATA #IMPLIED>
<!ATTLIST machine romof CDATA #IMPLIED>
<!ATTLIST machine sampleof CDATA #IMPLIED>
<!ELEMENT description (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT manufacturer (#PCDATA)>

Seems ok to me. I used the "Add DatFile..." button for MAME and MESS, as the "Create..." button expects an executable file, so I don't understand your last suggestion.
« Last Edit: 23 July 2013, 22:54 by Carbon »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #3 on: 24 July 2013, 06:49 »

As you can see, MESS is not using game elements but machine elements. That's why you have to switch to a different "Emulator" type in Profiler->Create. There you switch to MESS.

But I guess you can't do a direct import from a binary using WINE or other Windows emulators...

So you either convert your MESS XML with XSLT to a MAME XML one or you can add the following to cmpro's engine.cfg:

engine (
   name MESS_DATFILE
   cachefile _messdatfdat
   replace machine game
)

Restart cmpro and then you need to be sure to load the datfile with "datfile type "MESS_DATFILE" (profiler bottom left)...
Logged

Carbon

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
  • Operating System:
  • Mac OS X 10.8.4 Mac OS X 10.8.4
  • Browser:
  • Safari 6.0.5 Safari 6.0.5
    • View Profile
Re: Create a .dat file using a Mac
« Reply #4 on: 24 July 2013, 08:36 »

I made the changes but I'm getting the same errors.

I've attached a screenshot so you can see that I did the changes correctly and changed DatFile Type to MESS_DATFILE.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #5 on: 24 July 2013, 08:51 »

well, you can send me your datfile and I can try it (on a windows machine though)...
Logged

Carbon

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
  • Operating System:
  • Mac OS X 10.8.4 Mac OS X 10.8.4
  • Browser:
  • Safari 6.0.5 Safari 6.0.5
    • View Profile
Re: Create a .dat file using a Mac
« Reply #6 on: 24 July 2013, 09:33 »

Here it is.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #7 on: 24 July 2013, 09:45 »

thanks...
I don't know if I can look at it this week but next week definetly....
Logged

Carbon

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
  • Operating System:
  • Mac OS X 10.8.4 Mac OS X 10.8.4
  • Browser:
  • Safari 6.0.5 Safari 6.0.5
    • View Profile
Re: Create a .dat file using a Mac
« Reply #8 on: 24 July 2013, 09:56 »

No problem, thank you for your help!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #9 on: 24 July 2013, 10:05 »

well, a quick way for you would be to replace opening and closing machine xml elements with corresponding game elements with a text editor...
« Last Edit: 24 July 2013, 10:05 by Roman »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #10 on: 24 July 2013, 17:48 »

ok...use this in your engine.cfg

engine (
   name MESSDAT
   gamelist mess
   cachefile _datfdatm
   replace machine game
)


and use this build...
http://mamedev.emulab.it/clrmamepro/binaries/cmp20130724.rar
« Last Edit: 24 July 2013, 17:48 by Roman »
Logged

Carbon

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
  • Operating System:
  • Mac OS X 10.7.5 Mac OS X 10.7.5
  • Browser:
  • Safari 6.0.5 Safari 6.0.5
    • View Profile
Re: Create a .dat file using a Mac
« Reply #11 on: 25 July 2013, 08:50 »

Works perfectly now, thanks a lot!

Will these changes be added to a new version of CMP permanently?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3443
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.72 Chrome 28.0.1500.72
    • View Profile
Re: Create a .dat file using a Mac
« Reply #12 on: 25 July 2013, 09:14 »

not the engine.cfg ones but the cmpro binary changes of course
Logged
Pages: [1]   Go Up
 

Page created in 0.052 seconds with 22 queries.