Dolphin, the GameCube and Wii emulator - Forums

Full Version: Having Trouble Setting Up Individial Batch Files for ROMs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

Razwerkz

I have tried what JackyCola has posted in this thread, but it didn't exactly work for me.

Here's the exact batch contents I have composed:

Code:
start /realtime "D:\Program Files\Emulators\Dolphin\dolphin.exe" "--exec=D:\Program Files\Emulators\All Games\GCN\s3-zeltw.gcm" --batch

The batch is right next to the ROM in the GCN folder.

What am I doing wrong here? Thanks in advance for your help.

EDIT: Here, have a CMD screenie.

[Image: 1rwvba.png]
You shouldn't keep Dolphin in a folder like Program Files. You might not have enough of the permissions you need to fully use the emulator.

Put everything on the desktop (or any other user-owned folder) and try it then.
The text is garbled in your screenshot. There are some random characters prefixed to "start". That might be your problem. Make sure the command is "start" and not something else. Perhaps you copy + pasted the text into the CLI and some of the characters were of a different encoding or something.

Razwerkz

(10-20-2012, 01:34 AM)Axxer Wrote: [ -> ]You shouldn't keep Dolphin in a folder like Program Files. You might not have enough of the permissions you need to fully use the emulator.

Put everything on the desktop (or any other user-owned folder) and try it then.

I do this for consistency purposes. That is, I don't ever keep programs outside of Program Files. But I'll try it and see if that's the issue.

(10-20-2012, 02:05 AM)Shonumi Wrote: [ -> ]The text is garbled in your screenshot. There are some random characters prefixed to "start". That might be your problem. Make sure the command is "start" and not something else. Perhaps you copy + pasted the text into the CLI and some of the characters were of a different encoding or something.

I noticed that too--that's why I posted the screenshot. I typed everything out except for the paths themselves. I'm not sure why the weird scribble is there in front of "start" in the output.
Try text editing the batch file again to loom for any oddities with the command (like garbled text before start).

How are text documents formatted, again? Is it just a bunch of chars encoded as bytes or does it have a header? Hex editing one of these things to delete a couple of chars would be fun.
your file is encoded in UTF-8. the strange characters are the BOM.
write your bat file in plain old notepad, and save to a new file. or change the encoding with notepad

EDIT- looking at notepad, you can just set the encoding to ANSI in the Save As Dialog
Laaaaaame. That's boring.

Do what LPFaint said.

Razwerkz

(10-20-2012, 01:37 PM)LPFaint99 Wrote: [ -> ]your file is encoded in UTF-8. the strange characters are the BOM.
write your bat file in plain old notepad, and save to a new file. or change the encoding with notepad

EDIT- looking at notepad, you can just set the encoding to ANSI in the Save As Dialog

Well, that solved most of the problem.

Now it says it can't find "--exec=D:\Program Files\Emulators\All Games\GCN\s3-zeltw.gcm". It's apparently identifying the --exec handle as part of the directory now.

Here's another screenie.

[Image: 9jm4xf.png]
That's because the quote should go after --exec=, so you should have

--exec="D:/path/to/iso"
I've written a batch file that should be a bit more user-friendly and extensive than Jacky's version.

All you have to do is:
1. Open notepad
2. Copy the code below to a blank notepad
3. Set your directories to the emulator executable and game iso
4. Set the emulator name and name of the game you want to play
5. Uncomment the back-end you want to use
6. Save the file and run it

Code:
echo off

::Enter the emulator executable name including the filetype
set Emulator=Dolphin.exe

::Enter the game you would like to play including the filetype
set Game=Super Mario Galaxy.iso

::Enter the full path of the directory of your emulator
set EmulatorDirectory=D:\Emulation\GCWii\Emulator\Dolphin 3.0\dolphin-3.0-win64\

::Enter the full path of the game location
set GameDirectory=D:\Emulation\GCWii\ISOs\Wii\

::Uncomment (remove the ::'s) for the back-end you want to use
::Comment (add the ::'s infront of the line) everything else
::set BackEnd=OpenGL
set BackEnd=Direct3D9
::set BackEnd=Direct3D11

::DO NOT MODIFY UNLESS YOU KNOW WHAT YOU'RE DOING!
set LaunchEmulator=%EmulatorDirectory%%Emulator%
set LaunchGame=%GameDirectory%%Game%

start "" ^"%LaunchEmulator%^" /V ^"%BackEnd%^" /e ^"%LaunchGame%^" /b
Pages: 1 2