Page 1 of 1
"failed to open xxx for playback"?
Posted: Thu Jun 24, 2004 5:27 pm
by joemagiera
I read the "how to playback files" and followed the directions. I got a "failed to open (xxx-file) for playback" whether I used the .bat file or just entered the line myself in DOS. Can someone please help show me what/where I went wrong? Thanks,
What directory is the playback file expected to be in? The same one as the mame.exe? Something else?
Joe
joemagiera@ameritech.net
Posted: Thu Jun 24, 2004 5:52 pm
by QRS
Place the recording (unzipped) in the "inp" folder. I think you can tell mame to use other directories, using the command line version of mame, but I have never tried it actually. I may be wrong though
If you use the gui version (recent versions), just browse to find your file. In earlier mame gui versions I think it had to be in the mame-inp folder though.
Posted: Thu Jun 24, 2004 6:08 pm
by Weehawk
As Anders said, the .inp file is expected to be in a folder named "inp" in the same directory with your MAME executable.
You can use the -input_directory option in the command line to change this.
From the documentation that comes with MAME:
Code: Select all
-input_directory
Input recordings created by "-record" will be saved here and loaded by
"-playback". The default is INP.
closer, but not there yet
Posted: Thu Jun 24, 2004 6:42 pm
by joemagiera
Thanks for the tip to put the recorded file in the inp directory.
That got me further, but not quite there.
Here's exactly what I tried (in a DOS window):
playback marble marble-208480 -AND-
mame marble -playback marble-208480
Either way, my results are the same, which are:
Playing back previously recorded game marble (Marble Madness (set1)) [press return]
(I hit enter)
I then get the "type OK" message (I type OK)
I then get the "press any key" message (I hit the space bar)
Then the game goes into switch test and just keeps cycling in the switch test of Marble Madness
I tried this with a different Marble Madness file (the second high score) and get the same results. Any ideas anyone? Thanks,
Joe
Posted: Thu Jun 24, 2004 6:58 pm
by QRS
Are you using the correct mame version? Correct romset etc?
Re: closer, but not there yet
Posted: Thu Jun 24, 2004 7:48 pm
by destructor
joemagiera wrote:mame marble -playback marble-208480
marble-208480 is too long name for DOS. Change inp name to shorter (8 signs).
If you enter to DOS then enter without run Windows. If you enter to DOS from Windows then will be problem with playback.
Re: closer, but not there yet
Posted: Thu Jun 24, 2004 8:19 pm
by Chad
joemagiera wrote:Playing back previously recorded game marble (Marble Madness (set1)) [press return]
(I hit enter)
I then get the "type OK" message (I type OK)
I then get the "press any key" message (I hit the space bar)
Then the game goes into switch test and just keeps cycling in the switch test of Marble Madness
I tried this with a different Marble Madness file (the second high score) and get the same results. Any ideas anyone? Thanks,
Joe
since you got that far you've got it in the right place and dos/windows can see the inp filename ok. It's probably that you are not using the correct version of mame, in many cases you must get the same version of mame as was when it was recorded, there is a "GET MAME" link right next to the inp download link for marp so getting the right mame.exe is probably the first step. Next are other complexe playback issues to deal with but verify you have the correct version and have tried to play it back with sound and then with "-nosound".
Posted: Thu Jun 24, 2004 8:41 pm
by mahlemiut
Obviously, MAME can see where the inp is. The 8.3 filename requirement is only relevant for Win9x/Me systems running in MS-DOS mode. DOS MAME supports long filenames, so if you're running DOS MAME under Windows, then there should be no issue. This is was I think destructor was trying to say (just clarifying it).
Basic checklist:
Use the same version of MAME as was used to make the recording, and where possible, the same port (ie: DOS/Win32/MAME32/XMAME/MacMAME/whatever).
Make sure you delete or move the relevant .nv file, if the game uses one. Hopefully the batch file you're using does that for you.
Make sure you use any settings mentioned in the upload description, it may or may not make a difference. -sound/-nosound (-soundcard in DOS MAME) is a pretty common one.
Posted: Thu Jun 24, 2004 8:53 pm
by LN2
this one is too easy. don't use "-" in the filename. The code in MAME parses the command line looking for args which start with a "-"....so it gets fooled by you using a "-" in the filename. This wouldn't be a problem if it parsed for " -" but it seems any "-" causes a separation in potential args.
also....if using the DOS version, you need to follow the 8.3 crap.
the windows and mame32 and wolfmame and mameplus allow the longer file names, but keep your filenames to ABC,1-9 and _ .
so rename your marble-208480.inp filename to marble_208480.inp or marble208480.inp and give that a try.
Posted: Thu Jun 24, 2004 9:20 pm
by destructor
mahlemiut wrote: if you're running DOS MAME under Windows, then there should be no issue.
I have problems with correctly playback inps in DOS mode under Windows (especially if I must initialize sound card under DOS). I always (after reset computer) start DOS with F8 key and choose 'command line only'. But I have Win98 not WinXP.
Posted: Thu Jun 24, 2004 9:49 pm
by mahlemiut
LN2 wrote:this one is too easy. don't use "-" in the filename. The code in MAME parses the command line looking for args which start with a "-"....so it gets fooled by you using a "-" in the filename. This wouldn't be a problem if it parsed for " -" but it seems any "-" causes a separation in potential args.
And that filename starts with a hyphen? No. So that's a non-issue.
LN2 wrote:also....if using the DOS version, you need to follow the 8.3 crap.
Only in Win9x/Me DOS mode. As I said before, DOS MAME supports long filenames, so running DOS MAME under Windows is not an issue.
LN2 wrote:the windows and mame32 and wolfmame and mameplus allow the longer file names, but keep your filenames to ABC,1-9 and _ .
so rename your marble-208480.inp filename to marble_208480.inp or marble208480.inp and give that a try.
Someone hasn't read past the first post...
Posted: Fri Jun 25, 2004 8:33 am
by Buttermaker
joemagiera wrote:mame marble -playback marble-208480
You don't need the romset's name there. MAME gets it from the inp file. (Doesn't matter for playbackability of course)
That recording was made with WolfMAME .77 so that's what you should use to play it back.
mahlemiut wrote:And that filename starts with a hyphen? No. So that's a non-issue.
He thinks that any hyphen in a filename causes a problem. Hyphens don't cause any problems at all. No matter where they are in a filename. MAME treats whatever you put after -pb as an inp name.