[SOLVED] Model 2 configuration on EmulationStation?
-
Since ES doesn't have forum this is the only site i can think of to fix this.
So i have setting up ES for windows, and everything works fine but i have troubles adding Model 2 Emulator on the frontend. First it doesn't load roms, and i realize that if i put %BASENAME% on the "es_systems.cfg" it loads the rom but doesn't get it. like if the rom is not on the folder (it is) and i don't know what to do.
Here are some screenshots for more info
also, if i load the same rom with the emu it works well, it's not a corrupted file. and if i put %ROM% or "%ROM_RAW%" it doesn't even try to load.Hope one of you guys can help me D:
-
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). -
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 daytonaThe 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 -
@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
-
@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 - andcd
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
-
@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 - andcd
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
-
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 theM2emulator
folder, with the contents I posted earlier, and change in thees_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). -
@mitu FIXED!!! this is what i've done so far for everyone that want to know how i fixed it.
- 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)
- 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>
- 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
-
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%"
exitstep 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 sametest 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 formati 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 seeProgram=
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.exejust 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
-
@retroman Please try to respect the forum's rules - no links to ROM sites.
-
Can someone update this topic with a new, working command?
The solutions in this topic no longer work
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.