LaunchBox Community Forums

# Emulator Settings for All Platforms

## Recommended Posts

I'm attempting to work through the issues with the uploads; sorry for that, everybody. I believe I have batch files (and uploads) fixed for everyone. People should be able to upload now, including batch files. Please let me know if you can't. Unfortunately, the odd behavior with the backslashes seems more like a glitch with the forums software than anything else, so I don't have a solution to that one right away.

##### Share on other sites
For fullscreen in snes9x use cmd -fullscreen tried it and it works

##### Share on other sites
Jason Carr said I'm attempting to work through the issues with the uploads; sorry for that, everybody. I believe I have batch files (and uploads) fixed for everyone. People should be able to upload now, including batch files. Please let me know if you can't. Unfortunately, the odd behavior with the backslashes seems more like a glitch with the forums software than anything else, so I don't have a solution to that one right away.
You can use & # 9 2 ; without spaces to display a \

##### Share on other sites
Hi bd000 clicked on link for your script but cant find where to download it i am trying to get the M2 emulator to work but when i click on sega model 2 game only the M2 emulator opens and then i have to select the game from the emulator could you give link to the script or if there is another way to launch sega model 2 games have been all over google to no avail to get the games to launch. Thanking you in advance

##### Share on other sites
Odd, I was able to download it. I will try pasting the code. Hope this works. Code removed!
See THIS post.
Create a txt file on your desktop and rename it winwarks.bat Right click and choose edit, or use your preferred text editor. Paste the code above and save. Run the winwarks.bat file (a simple double click will do it) and follow the instructions from the quoted text in your last post. Let me know if you need any more assistance. I have to go right now, got some things to do, but I will check on you later. Best of luck.

##### Share on other sites
OK, a quick scan and the code seems OK. The forum still removes my whitespace though... very annoying.

##### Share on other sites
Sure, I changed it to allow uploading batch files, so that might be the best approach going forward.

##### Share on other sites
Hi bd000, created the text file and renamed it winwarks.bat when i click on it i get this it goes straight to add emulator instead of prompting me to enter romset directory and creates the filelist.txt and the usermessage2.vbs oh the desktop, so am stumpted at moment thanking you in advance

##### Share on other sites
OK, let me take a look... Lets simplify this, lets get rid of the vbs scripts, you can add the paths to the script yourself. There is also no need to limit the location to the desktop, so lets scrap that too. Use this:
@echo off :: Change these to relevant paths (NO QUOTES) set roms=enter\location\of\romset\here (no quotes) set emu=enter\full path\to\emu (no quotes) set exe=emu_name.exe ::############################################################### ::############################################################### ::############################################################### :: Change nothing below here. ::############################################################### set batloc=%~dp0 :: Creates a temp filelist of the romset cd /d "%roms%" for /f "delims=" %%f in ('dir /A-D /B /O:GEN') do echo %%~nf>> "%batloc%\filelist.txt" cd /d "%batloc%" :: Creates a temp batch file which serves as the template to be duplicated echo cd ..> template.bat echo start "Emulator" "%emu%\%exe%" %%~n0>> template.bat :: Creates a "launcher" batch file for each entry in the filelist mkdir "%batloc%\output" set output=%batloc%\output for /f "usebackq delims=," %%b in (TYPE filelist.txt) do copy template.bat "%output%\%%b.bat" del filelist.txt del template.bat :: Moves each batch file to it's own folder cd /d "%output%" for %%m in (*.bat) do ( md "%%~nm" 2>nul move "%%m" "%%~nm" ) :: Finish up msg * Finished! Now rename all folders to the game name. start "" "%output%"
Change the following lines to the relevant paths: set roms=enter\location\of\romset\here (no quotes) set emu=enter\full path\to\emu.exe (including .exe, no quotes) e.g. set roms=c:\emulators\winkawaks\roms set emu=c:\emulators\winkawaks\winkawaks.exe Note: The script will create an output folder wherever the batch file is located when you run it. This is the directory that will contain the scripts. Rename the folders inside the output directory to the game names you will use in LB. DO NOT rename the batch files. Then move them all to your games directory in the relevant platform folder. E.g. c:\launchbox\games\CPS2\ If you have any more issues, let me know.

##### Share on other sites
Jason, the backslash followed by R is still causing problems. The workaround I use (as mentioned earlier) is & # 9 2 ; (no spaces) followed by the R &_#_9_2_;_r - remove the _ underscores \r

##### Share on other sites
Hi bd000 followed your tutorial to the letter here is bat created @echo off :: Change these to relevant paths (NO QUOTES) set roms=C:\Users\PC\Documents\LaunchBox\Emulators\Model 2\ROMS set emu=C:\Users\PC\Documents\LaunchBox\Emulators\Model 2\emulator_multicpu.exe ::############################################################### ::############################################################### ::############################################################### :: Change nothing below here. ::############################################################### set batloc=%~dp0 :: Creates a temp filelist of the romset cd /d "%roms%" for /f "delims=" %%f in ('dir /A-D /B /O:GEN') do echo %%~nf>> "%batloc%\filelist.txt" cd /d "%batloc%" :: Creates a temp batch file which serves as the template to be duplicated echo start "Emulator" %emu% %%~n0> template.bat :: Creates a "launcher" batch file for each entry in the filelist mkdir "%batloc%\output" set output=%batloc%\output for /f "usebackq delims=," %%b in (TYPE filelist.txt) do copy template.bat "%output%\%%b.bat" del filelist.txt del template.bat :: Moves each batch file to it's own folder cd /d "%output%" for %%m in (*.bat) do ( md "%%~nm" 2>nul move "%%m" "%%~nm" ) :: Finish up msg * Finished! Now rename all folders to the game name. start "" "%output%" this creates the output file i then renamed them to games name and placed them in rom directory of m2 emulator. then i imported one into Launchbox and this is result and here is the bat it created for game start "Emulator" C:\Users\PC\Documents\LaunchBox\Emulators\Model 2\emulator_multicpu.exe %~n0

##### Share on other sites
Needs quotes. Hold on i'll edit the above post.

##### Share on other sites
OK updated, copy-paste it, delete the output folder and run again.

##### Share on other sites
Hi bd000 and thanks for all your help well its launching m2 emu now but it tells me i have files missing see jpg so game wont launch on my end it seems but will launch fine and play if i run through m2 emulator itself thanks for all the help and time youve put into this really appreciated launching the bat also creates an empty nvdata folder in same folder as game bat file

##### Share on other sites
Are your roms stored in the proper directory? Inside the emulator directory?

##### Share on other sites
OK, I was able to recreate and found the problem. I updated the script. Seems that you need to be in the emulators directory in order for it to work. Which means I had to separate the emulators path and actual exe into two separate variables. So now you need to add: Path to rom directory Path to emu directory (don't included emu_name.exe, just the directory) Executable name (e.g. emulator_multicpu.exe) I missed this because my script is a little more complex and is already in the emulator directory when it hits this command.

EDIT I just found an error, it is corrected now but if you happened to copy it before I fixed it, then your batch will fail. It is good now so copy it again. I'm so tired, I really need to go to bed.

##### Share on other sites
GIVE THAT MAN A CIGAR Total sucess working great just updated and all seems fine thanks you bd000 your script is amazing many many thanks

##### Share on other sites
HAHAHAHA! YES! Thank god it worked this time! Right I am off to bed. Night night.

##### Share on other sites
Me too its 3.31a.m here lol thanks for all your help sorting me out bd000

##### Share on other sites
Maddoc1007 said Me too its 3.31a.m here lol thanks for all your help sorting me out bd000
No probs. Anytime. Yeah, I live in England at present so it was 3.31am for me too. Was up at 6.30am this morning and had a busy day so far. Got one more errand to run shortly, then I should be able to relax for the rest of the afternoon. At least until I pick my son up from school.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.