|
Why does mame input playback fall out of sync?
#394096 - 05/26/22 04:06 PM
|
|
|
I have not been successful trying to record long games on Mame because it falls out of sync in less than ten minutes.
Why is this?
|
|
|
Dullaron |
Diablo III - Dunard #1884
|
|
|
Reged: 07/22/05
|
Posts: 6125
|
Loc: Fort Worth, Tx
|
|
Send PM
|
|
|
Re: Why does mame input playback fall out of sync?
[Re: JHake]
#394098 - 05/26/22 06:33 PM
|
|
|
> I have not been successful trying to record long games on Mame because it falls out > of sync in less than ten minutes. > > Why is this?
Which recording program are you using? I used OBS to record the games.
|
W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
|
|
|
Re: Why does mame input playback fall out of sync?
[Re: JHake]
#394099 - 05/26/22 06:42 PM
|
|
|
If you're using MAME's built in record and playback functionality, you need to be aware that a lot of arcade games use existing config to determine their random seeds.
Basically, delete the following before you record:
cfg/[game].cfg diff/[game].diff nvram/[game] folder
And before you replay it, delete the same again.
|
------
Parallel Realities
|
|
|
Re: Why does mame input playback fall out of sync?
[Re: Dullaron]
#394100 - 05/26/22 07:06 PM
|
|
|
I use Mame itself.
First I call mame with the command line option to record input:
mame robotron -record robot.rkd
I then play the game through and quit mame.
Next I use the command line to replay the game using the recorded input:
mame robotron -playback robot.rkd
On my last attempt it was fine until level 13 and then falls out of sync.
|
|
|
Dullaron |
Diablo III - Dunard #1884
|
|
|
Reged: 07/22/05
|
Posts: 6125
|
Loc: Fort Worth, Tx
|
|
Send PM
|
|
|
Re: Why does mame input playback fall out of sync?
[Re: JHake]
#394101 - 05/26/22 07:31 PM
|
|
|
> I use Mame itself. > > First I call mame with the command line option to record input: > > mame robotron -record robot.rkd > > I then play the game through and quit mame. > > Next I use the command line to replay the game using the recorded input: > > mame robotron -playback robot.rkd > > On my last attempt it was fine until level 13 and then falls out of sync.
Oh ok. I wonder there is a limited the file size. Got so big to where it start lagging. I don't know actually.
|
W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
|
|
|
Re: Why does mame input playback fall out of sync?
[Re: JHake]
#394129 - 05/27/22 11:44 PM
|
|
|
> I use Mame itself. > > First I call mame with the command line option to record input: > > mame robotron -record robot.rkd > > I then play the game through and quit mame. > > Next I use the command line to replay the game using the recorded input: > > mame robotron -playback robot.rkd > > On my last attempt it was fine until level 13 and then falls out of sync.
The thing with input recordings, is that you need to start playback in the same state as when you started the recording. I think Robotron saves scores in NVRAM, so that could likely be the cause of the desync. You'll need to reset NVRAM before both recording and playback. The easiest way to do this is to move or delete the NVRAM files/folders via a script or batch file before recording or playback. An alternative is to set nvram_directory to NUL (or /dev/null for Linux/OS X/BSD) in mame.ini or on the commandline (-nvram_directory NUL)
|
- Barry Rodewald
Editor at MARP - http://replay.marpirc.net
|
|