RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    [SOLVED] Model 2 configuration on EmulationStation?

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiowindowssega model 2
    11 Posts 5 Posters 8.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mituM
      mitu Global Moderator
      last edited by mitu

      Does the emulator supports loading ROMs via command line ?

      EDIT: it seems the emulator has a fixed list of supported ROMs and it can start a ROM from the command line by adding just the name of the ROM (as shown in the File->Load ROMs). The ROm file (xyz.zip) must be present in the ROM folder configured in the emulator.ini.
      Your setting are correct, but the error messages indicate the ROM you have is incomplete (or missing from the ROMs folder).

      Z 1 Reply Last reply Reply Quote 0
      • PittStoneP
        PittStone
        last edited by PittStone

        Here is my Solution.
        in es_system.cfg i wrote:

        <system>
        <name>segamodel2</name>
        <fullname>Sega Model 2</fullname>
        <path>~.emulationstation\roms\segamodel2</path>
        <extension>.bat</extension>
        <command>"%ROM_RAW%"</command>
        <platform>segamodel2</platform>
        <theme>segamodel2</theme>
        </system>

        Than i made a .bat file for each game (daytona.bat) and in the .bat i wrote:

        cd .emulationstation\systems\segamodel2
        .\emulator_multicpu.exe daytona

        The zipped Roms are all in the "roms" folder from the Emulator, otherwise the Emulator don't find the roms.
        You must have the Emulator in "systems\segamodel2".
        http://nebula.emulatronia.com

        1 Reply Last reply Reply Quote 0
        • Z
          zerel @mitu
          last edited by

          @mitu in the thread i said i can load it without issues with the exe. but the problem is when i load it with ES. is not a rom issue

          @PittStone not the prettiest fix but sounds good, i'll try it :D at least model 2 doesn't have a long romset

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @zerel
            last edited by

            @zerel said in Model 2 configuration on EmulationStation?:

            @mitu in the thread i said i can load it without issues with the exe. but the problem is when i load it with ES. is not a rom issue

            Then it might be because the emulator cannot find the emulator.ini where you have the ROM path. Try creating a .bat file - like @PittStone mentioned - and cd to the emulator's folder before starting the game, then modify the ES system's file to run the .cmd instead of the emulator directly.

            cd /d d:\RETROCAKE\Emulators\M2emulator
            Emulator.exe %~1
            
            Z 1 Reply Last reply Reply Quote 0
            • Z
              zerel @mitu
              last edited by

              @mitu said in Model 2 configuration on EmulationStation?:

              @zerel said in Model 2 configuration on EmulationStation?:

              @mitu in the thread i said i can load it without issues with the exe. but the problem is when i load it with ES. is not a rom issue

              Then it might be because the emulator cannot find the emulator.ini where you have the ROM path. Try creating a .bat file - like @PittStone mentioned - and cd to the emulator's folder before starting the game, then modify the ES system's file to run the .cmd instead of the emulator directly.

              cd /d d:\RETROCAKE\Emulators\M2emulator
              Emulator.exe %~1
              

              so i put this code in a .bat and load it with ES? i should put something on %~1?

              Also i don't know what i should put on es_system

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by mitu

                You now have in es_systems.cfg

                <system>
                ...
                <command>D:\RetroCake\Emulators\M2emulator\Emulator.exe %BASENAME%</command>
                ...
                </system>
                

                Create a script file called emulator.cmd in the M2emulator folder, with the contents I posted earlier, and change in the es_systems.cfg the command line:

                <system>
                ...
                <command>D:\RetroCake\Emulators\M2emulator\Emulator.cmd %BASENAME%</command>
                </system>
                

                Try to see if it works like this. %~1 means the 1st parameter received by the script (i.e. the name of the ROM as it's sent by Emulationstation).

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  zerel @mitu
                  last edited by zerel

                  @mitu FIXED!!! this is what i've done so far for everyone that want to know how i fixed it.

                  1. i've made a .bat file inside the emulator root folder with the code you said (also .cmd doesn't work, it needs to be .bat)
                  cd /d "%~dp0" //%~dp0 search where the .bat is located. that's why i put it on model 2 emulator root folder
                  Emulator.exe %~1
                  

                  if you want absolute rute just put

                  cd /d d:\RETROCAKE\Emulators\M2emulator
                  Emulator.exe %~1
                  

                  (remember to put your emulator path, don't copypaste)

                  1. on es_systems.cfg you put this
                    <system> 
                      <name>Model 2</name> 
                      <fullname>Sega Model 2</fullname> 
                      <path>**ROM PATH**</path> 
                      <extension>.zip .ZIP</extension> 
                      <command>**emulator path**\**bat name**.bat %BASENAME%</command> 
                    </system>
                  
                  1. if you have roms in other folder, put them on emulator.ini
                  Dir1: *//path of the roms*
                  

                  also make sure that this Dir and the es_system.cfg dir is the same

                  Thank you all, you can close it if you want :D

                  EDIT: One problem i had with this method is that when you press ESC button to exit, it goes windowed instead of closing. so i've made an .ahk script for closing Model 2 and .bat file when pressing ESC.

                  Keep in mind that you need Autohotkey on your PC. you can launch it with the cmd command

                  Esc::
                  {
                   Winclose, ahk_exe Emulator_multicpu.exe
                   Winclose, ahk_exe Emulator.exe
                   Winclose, ahk_exe cmd.exe
                   ExitApp
                  }
                  

                  (keep in mind that if you open cmd for whatever reason with autohotkey enable, pressing ESC will close it)

                  if you want to add autohotkey to the .bat file, put this after the model 2 code:

                  cd /d "%~dp0"/AutoHotkey
                  tasklist /nh /fi "imagename eq AutoHotkey.exe" | find /i "AutoHotkey.exe" > nul ||(start AutoHotkey.exe)
                  pause
                  

                  This will open it the first time and if it's already open, it will don't open again

                  1 Reply Last reply Reply Quote 0
                  • R
                    retroman
                    last edited by mitu

                    i have found a easier way to get sega model 2 and sega model 3 to working with emulation station
                    step 1 go to arcade and download the sega model 2 pack for coinops 2 it should have all the .bat files need to run the roms
                    step 2 to to your es_systems file copy paste this

                    <system>
                    <name>Sega Model 2</name>
                    <fullname>Sega Model 2</fullname>
                    <path>H:\Roms\Sega Model 2</path>
                    <extension>.bat .BAT</extension>
                    <command>"%ROM_RAW%"</command>
                    <platform>sm2</platform>
                    <theme>sm2</theme>
                    </system>

                    make sure u make a theme for sega model 2

                    step 3 place your coinops folder in your emulators folder
                    step 4 create a sega model 3 folder in your roms dir
                    step 5 make folders for all of your games
                    step 6 make .bat files for all of your games make sure they are spelt all the same open .bat file and copy paste this

                    @echo off
                    set "GAMENAME=daytona"
                    set "GAMEPATH=\daytona"
                    set HOME="%~dp0"
                    set "GAMEROOT=%~dp0%GAMEPATH%"
                    cd %GAMEROOT%
                    start "" /WAIT "%GAMEROOT%%GAMENAME%"
                    exit

                    step 7 open sega model 2 folder in your emulators folder
                    step 8 go to roms/sega model 2 open the folder with the same name as one of your .bat files right click drag and drop and select create a shortcut rename it so it's all the same

                    test to see if it works go back and double click on the .bat file it should load

                    now if you want to add video art work you will to remove the folders for now and only have the .bat files in the sega model 2 folder make another folder called snap and put all your mp4 in there (make sure they are named all the same as the .bat files) you'll need to run your gengal program
                    after it creats a .xml files open emulation station go to the sega model 2 and u should see all the videos work ES doesn't like AVI format so make sure they are all in MP4 format

                    i have joy to key pre programmed but if you don't to exit i like to use a program call closemul to get this to work place the 3 files in the folder with your emulator
                    right click and edit the closemul config setting files scroll down in parameters you should see

                    Program=

                    this is what it should look like for sega model 2

                    Program=EMULATOR.EXE

                    save and exit

                    last step same folder right click and edit your .bat file ie daytona this is what it shoulde look like

                    @echo off
                    start JoyToKey\JoyToKey.exe
                    .\closemul.EXE daytona
                    TASKKILL /F /IM JoyToKey.exe

                    just replace the emulator.exe with closemul.exe this will work with all exe very handy no need to ALT+F4 any more

                    and that's it same process for sega model 3

                    mituM 1 Reply Last reply Reply Quote -1
                    • mituM
                      mitu Global Moderator @retroman
                      last edited by

                      @retroman Please try to respect the forum's rules - no links to ROM sites.

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        Imgema @mitu
                        last edited by

                        Can someone update this topic with a new, working command?

                        The solutions in this topic no longer work

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.