What is inp?

General Chit-Chat about MAME and other emulators.
Post Reply
openformi
Posts: 5
Joined: Tue Apr 01, 2008 5:20 am

What is inp?

Post by openformi »

Hi guys,

Rather stupid question here but i was trying to record to inp for my gameplay and when i tried to playback the file, it doesnt seems to be my previous gameplay?

Any advise?

Cheers
mike_myers
Posts: 277
Joined: Sun Feb 23, 2003 1:16 pm

Post by mike_myers »

That happens with games that use NVRAM (in neogeo games, for example)
To avoid that, you've to open your MAME.INI (if it doesn't exist use -cc option to create it) and look for nvram line. change it to

Code: Select all

nvram_directory     NUL
:)
Image
mike_myers
Posts: 277
Joined: Sun Feb 23, 2003 1:16 pm

Re: What is inp?

Post by mike_myers »

To record the .inp you can use this .bat. Save it as rec.bat, for example.

Code: Select all

@echo off
cls
SET BEGIN=%TIME%
rem if you want to run in a window, use -w instead of -now
if "%2"=="" mame %1 -rec %1.inp -now -nocheat -nvram_directory NUL
rem this one than can be useful if you want to create the inp with another name
if not "%2"=="" mame %1 -rec %2.inp -now -nocheat -nvram_directory NUL
SET END=%TIME%
echo ROM %1: %BEGIN% -- %END%
SET BEGIN=
SET END=
To playback the inp you can use this one. Save it as play.bat , for example:

Code: Select all

@echo off
cls
SET BEGIN=%TIME%
rem if you want to run in a window, use -w instead of -now
if "%2"=="" mame %1 -pb %1.inp -now -cheat -pause_brightness 1.0000
rem this one than can be useful if you renamed the inp
if not "%2"=="" mame %1 -pb %2.inp -now -cheat -pause_brightness 1.0000
SET END=%TIME%
echo ROM %1: %BEGIN% -- %END%
SET BEGIN=
SET END=
Image
Post Reply