How do I setup dip switches and keys in WolfMAME Record mode?

  1. How do I setup dip switches and keys in WolfMAME Record mode?

    12-20-2019, 07:57 PM
    If I start MAME to play normally it has my joystick setup and dipswitches.

    If I type record gamename filename it doesn't have any settings. I have to setup keys and dipswitches everytime I make a new recording and it's super annoying.

    I tried to sign up at the marpirc forums, but it says an administrator needs to approve accounts first, and it's been a long time now. I don't think anyone checks that stuff.
  2. 12-23-2019, 09:47 AM
    You have to first setup your keys and dip switches before running the record command.
    1) start wolfmame at the command prompt or click on mame64.exe
    2) then press TAB setup the keys and dip switches
    3) press ESC to exit
    4) start recording by entering c:\wolfmame>record.bat "romname" "inpfilename"

    Enter "inp file name without the extension ".inp" because the extension is already included
    in your batch file.

    REM RECORD.BAT
    mame64 %1 -record %2.inp %3 %4 %5 %6 %7 %8 %9 -nvram_directory NUL

    You can create a PLAYBACK.BAT by just copy the file and rename it to PLAYBACK.BAT
    Now change the command inside the playback.bat file to:

    REM PLAYBACK.BAT
    mame64 %1 -playback %2.inp %3 %4 %5 %6 %7 %8 %9 -nvram_directory NUL

    Now you can playback the file which was recorded.

    Bear in mind that if you enter the same ".inp" filename each time you record
    it will overwrite your previous runs - which you want to keep to check out
    areas where you can improve or uncover slick moves you want to repeat
    and cannot remember.

    So then rather incrmentally increase your filename by:

    First run do enter:
    record pacman pacman1 (This will run the game pacman and record an ".inp" file named "pacman1.inp"

    Second run do enter:
    record pacman pacman2 (This will run the game pacman and record an ".inp" file named "pacman2.inp"

    and so forth..

    If you want to be fancy. You can use my .bat file that automatically incrementally increase the filename
    for you each time with a date increment.

    Save the file as "recordgame.bat"

    @SETLOCAL ENABLEDELAYEDEXPANSION
    @echo off

    @REM Use WMIC to retrieve date and time
    @REM ===================================
    FOR /F "skip=1 tokens=1-6" %%A IN ('WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') DO (
    IF NOT "%%~F"=="" (
    SET /A SortDate = 10000 * %%F + 100 * %%D + %%A
    set YEAR=!SortDate:~0,4!
    set MON=!SortDate:~4,2!
    set DAY=!SortDate:~6,2!
    @REM Add 1000000 so as to force a prepended 0 if hours less than 10
    SET /A SortTime = 1000000 + 10000 * %%B + 100 * %%C + %%E
    set HOUR=!SortTime:~1,2!
    set MIN=!SortTime:~3,2!
    set SEC=!SortTime:~5,2!
    )
    )

    @REM SET THE DATE yyymmdd
    @REM ===================================
    SET DATECODE= !YEAR!!MON!!DAY!!HOUR!!MIN!

    @REM For Testing purposes only - view values
    @REM @echo on
    @REM @echo DATE=%DATE%, TIME=%TIME%
    @REM @echo HOUR=!HOUR! MIN=!MIN! SEC=!SEC!
    @REM @echo YR=!YEAR! MON=!MON! DAY=!DAY!
    @REM @echo %DATECODE%

    @REM Set the filename parts
    @REM =======================

    @REM Your initials are most cases accoridng MAME REPLAy PAGE must prefix your recorded .INP file
    SET MAMEPLAYERINITIALS=fdt

    @REM Then the game name you are playing. In this case the game name is passsed in as a parameter on the
    @REM commandline or createa an icon of the batch file on your desktop and right-click, goto properties
    @REM settings, inside the target command on the line of text eecute the batch file name post fix the
    @REM batch file with tha game name as a parameter. The parameter will be passed in as the first
    @REM parameter. This is automactically numbered as "%1"
    @REM ================================================== ==================================================
    SET GAMETOPLAY=%1
    SET INPFILENAME= %MAMEPLAYERINITIALS%_%GAMETOPLAY%%DATECODE%.inp

    if exist hi\%1.hi move hi\%1.hi hi\%1.bak
    if exist nvram\%1.nv move nvram\%1.nv nvram\%1.bak

    @REM Format of the Command to Execute
    @REM =================================
    @REM "MAME Executeable" "Gamename" -record "ToRecord_INP_FILE_NAME" "Additional paramaters"

    mame64 %1 -record %%INPFILENAME%% -nvram_directory NUL


    REM TO RUN: Do enter c:\wolfmame>recordgame pacman
    REM You can also create a shortcut on your desk top and set the properties to

    Name:  image.png
Views: 58
Size:  22.0 KB


    Now all you have to do is "doubleclick" no more manual commandline.
    streaming mspacman normal and turbo speed at: https://www.twitch.tv/francoisadt

    Francois du Toit
  3. 12-24-2019, 04:41 PM
    Quote Originally Posted by francoisadt View Post
    You have to first setup your keys and dip switches before running the record command.
    1) start wolfmame at the command prompt or click on mame64.exe
    2) then press TAB setup the keys and dip switches
    3) press ESC to exit
    4) start recording by entering c:\wolfmame>record.bat "romname" "inpfilename"
    Maybe my original post wasn't clear. If I start mame64, my keys and dipswitches are already set. If I record they're never set.

    EDIT: I have to set keys in Input (general) or whatever it is, not in Input (this machine). Dipswitches do not work, though. I think I remember this being an issue years ago when I was recording scores.
    Last edited by yuppicide; 12-24-2019 at 04:44 PM.
  4. 12-24-2019, 04:53 PM
    I believe for most games, input and dip settings are in a file in the "cfg" folder, eg, "cfg\pacman.cfg" for romset "pacman", etc. Make sure you don't have a regular file named "cfg" instead of a folder in your main MAME folder.
  5. 12-25-2019, 04:07 AM
    Modify your record.bat file or just used mine I have posted below.

    Remove the all the "move" commands before and after mame64.exe in your record.bat

    Only have this ONE line in your record.bat command in "that's it":

    mame64 %1 -record %2 -nvram_directory NUL

    Ad DBH/Donald suggest only have a CFG folder, no .cfg files in your mame folder.

    In my CFG folder I do have only "___empty.cfg" , default.cfg and mspacman.cfg (or in your case your gamename.cfg

    "___empty.cfg":
    =============
    <?xml version="1.0"?>
    <!-- This file is autogenerated; comments and unknown tags will be stripped -->
    <mameconfig version="10">
    <system name="___empty" />
    </mameconfig>



    default.cfg:
    ==========
    <?xml version="1.0"?>
    <!-- This file is autogenerated; comments and unknown tags will be stripped -->
    <mameconfig version="10">
    <system name="default" />
    </mameconfig>



    Also check your paths in your mame.ini

    I have set mine ti "." which is current folder

    #
    # CORE SEARCH PATH OPTIONS
    #
    homepath .
    rompath roms
    hashpath hash
    samplepath samples
    artpath artwork
    ctrlrpath ctrlr
    inipath .
    fontpath .
    cheatpath cheat
    crosshairpath crosshair
    pluginspath plugins
    languagepath language
    swpath software
    streaming mspacman normal and turbo speed at: https://www.twitch.tv/francoisadt

    Francois du Toit
  6. 12-25-2019, 01:52 PM
    On marp site their is somewhere the admin email. I will sent it to you via a PM here
    streaming mspacman normal and turbo speed at: https://www.twitch.tv/francoisadt

    Francois du Toit
  7. 12-25-2019, 01:58 PM
    I was not able to sent you the MARP site admin contact name and email address.
    Your PM settings here at TG site prohibit me to sent you the details.

    If you allow me to sent me PM I can asssit that your admin issue get sorted in one day... your choice..
    streaming mspacman normal and turbo speed at: https://www.twitch.tv/francoisadt

    Francois du Toit
  8. 01-17-2020, 05:40 PM
    I tried to contact MARP forum why my account was never approved. They did not answer and it's been almost a month now.
  9. 01-20-2020, 10:33 PM
    Quote Originally Posted by yuppicide View Post
    I tried to contact MARP forum why my account was never approved. They did not answer and it's been almost a month now.
    This is the contact email I have used a year ago:
    http://replay.marpirc.net/staff.htm

    Sent emails to both Barry and Phil.

    Barry Rodewald


    Email – bsr at xnet.co.nz

    Also try Phil Lamat : He is forum moderator on MARP board.

    Phil Lamat

    Email – plamat[at]numericable.fr


    Phil always replied - he is also maintaining WolfMame build on GItHub. So also try contact him there.
    streaming mspacman normal and turbo speed at: https://www.twitch.tv/francoisadt

    Francois du Toit
Results 1 to 10 of 10
Join us