Dolphin

This page uses content or is imported from the abandoned Miraheze counterpart of this page. You can view the original authors of this page here.

== The Sinden Lightgun Wiki Has Moved ==

### Notes

* Sadly there are no lightgun games for GC but there are some for the Wii!
* You can now use 2 Sinden lightguns for 2-Player action through the use of reWASD and Demulshooter. GUIDE

## Portable Install

If you don't want to have the user files in **Windows>User folder** you can create a text file in the **Dolphin folder** and name it to `portable.txt`

The user folder will then be generated in the root of Dolphin.

So having that file in there tells Dolphin it's a portable version and can be moved between systems. *(Thanks to Gigapig for this tip!)*

## Accuracy Settings

If you want to improve accuracy of your games and remove crosshairs easily, PiperCalls and Prof\_gLX made a pack of ini's you can download with instructions from HERE

After applying the *Dolphin Accuracy Pack*, edit the ini files to fine-tune and calibrate your aim using the instructions from HERE

## 2-Player Setup

*This 2-Player Setup Guide is based on the instructions provided by spatz0r.*

### Required Files

* Download **Dolphin v5.0**: HERE
	+ This 2-player setup will ONLY work with the older Dolphin 5.0 Stable Version.
	+ The *Aim Accuracy Pack* linked above will not work with this version of Dolphin.
	+ Use WBFS and WAD game files.
* Download **reWASD**: HERE
	+ reWASD with *Advanced Mapping* add-on feature is required.
	+ The software must be purchased after the free 7-day trial period ends.
* Download **Demulshooter**: HERE
	+ Follow this GUIDE to set up Demulshooter.

### Dolphin v5.0

1. Create a blank text file in the Dolphin folder and name it `portable.txt`

* This will make Dolphin a portable install and generate the *User* folder within the root Dolphin folder.

2. Setup Dolphin using the Video Guide.

3. Configure the Buttons for P1 and P2.

* These buttons configurations are meant to get you up and running and will not work for all games.
* NOTE: Demulshooter maps the P2 mouse buttons to keyboard keys.
	+ You must map these keys for P2 in Dolphin.
	+ The default keys can be found in Demulshooter's `config.ini` file.

```
;Dolphin Keyboard keys configuration for P2 buttons
DOLPHIN_P2_LCLICK = DIK_S
DOLPHIN_P2_MCLICK = DIK_D
DOLPHIN_P2_RCLICK = DIK_F

```

* Click on the *Controllers* icon.  Set *Wiimote 1* and *Wiimote 2* to *Emulated Wiimote* and click OK.
	+ The `WiimoteNew.ini` file will be generated in the User\Config file folder.
	+ `D:\Dolphin\User\Config\WiimoteNew.ini`

 File:Dolphin 1.png
* Close Dolphin and open the `WiimoteNew.ini` file.
* Copy and paste the following into the `WiimoteNew.ini` file, overwriting the existing configs. Then click on *File* > *Save*.

```
[Wiimote1]
Device = DInput/0/Keyboard Mouse
Source = 1
Buttons/A = `Click 1`
Buttons/B = `Click 0`
Buttons/1 = SPACE
Buttons/2 = RETURN
Buttons/- = `5`
Buttons/+ = `1`
IR/Up = `Cursor Y-`
IR/Down = `Cursor Y+`
IR/Left = `Cursor X-`
IR/Right = `Cursor X+`
Swing/Down = `Click 2`
Extension = Nunchuk
Nunchuk/Buttons/C = `C`
Nunchuk/Buttons/Z = `Z`
D-Pad/Up = UP
D-Pad/Down = DOWN
D-Pad/Left = LEFT
D-Pad/Right = RIGHT
[Wiimote2]
Device = DInput/0/Keyboard Mouse
Source = 1
Buttons/A = F
Buttons/B = S
Buttons/1 = SPACE
Buttons/2 = RETURN
Buttons/- = `6`
Buttons/+ = `2`
IR/Up = `DInput/0/Wireless Controller:Axis Y-`
IR/Down = `DInput/0/Wireless Controller:Axis Y+`
IR/Left = `DInput/0/Wireless Controller:Axis X-`
IR/Right = `DInput/0/Wireless Controller:Axis X+`
Swing/Down = `D`
Extension = Nunchuk
Nunchuk/Buttons/C = `C`
Nunchuk/Buttons/Z = `Z`
D-Pad/Up = UP
D-Pad/Down = DOWN
D-Pad/Left = LEFT
D-Pad/Right = RIGHT
[Wiimote3]
Source = 0
[Wiimote4]
Source = 0
[BalanceBoard]
Source = 0

```

4. Launch Dolphin and test Lightgun 1 with a game to ensure that you have properly configured Dolphin.

* NOTE: Make sure that Lightgun 1 works before moving onto setting up reWASD.

### reWASD

* **Unplug Lightgun 1** and ONLY have Lightgun 2 plugged in.

* Launch reWASD.
	+ Select your P2 Lightgun from one of the devices at the bottom of the screen.
	+ Select *Gaming keyboard or Keyboard with touchpad* and click on *Submit.*

 File:ReWASD 1.png
* Click on *Fortnite* and delete all if the existing button mappings by clicking on “X”.

 File:ReWASD 2.png
* Click on the *Add* button to create a new dummy button mapping.
	+ At least 1 button mapping is required.
	+ “CapsLock” is mapped to “CapsLock” in this guide.
	+ After mapping CapsLock, click on the *Apply to Slot 1* button.

 File:ReWASD 3.png
* Select “No” if you get the warning message to *mute the native behavior of the control*.

 File:ReWASD 4.png
* Click on the “Eye” icon and then click on the *Mouse* icon.
	+ Click on the *direction* icon on the mouse and map it to *“Left Stick”*.
	+ Click on *Apply to Slot 1*.

 File:ReWASD 5.png
* Click on the *Sony Playstation* icon at the top of the screen and make sure this option is set to *“Virtual DS4”*.

 File:ReWASD 6.png
* Verify that reWASD has been installed correctly and is working as intended.
	+ Make sure reWASD is running in the system tray (green light).
	+ Plug in Lightgun 1 and launch Dolphin.
	+ Click on the *Controllers* icon and then click on the Wiimote 1 *Configure* button.
	+ `DInput/0/Wireless Controller` should show up on the *Device* pulldown list, which indicates that reWASD is working.
	+ Take note of the order that `DInput/0/Wireless Controller` is listed. Demulshooter will hook onto the *Wireless Controller*.
	+ If `DInput/0/Wireless Controller` is missing from the device list, then go back and reconfigure reWASD.

 File:Dolphin 2.png

### Demulshooter Script

* The Demulshooter script will change depending on the order that the `DInput/0/Wireless Controller` shows up in Dolphin's device list.
	+ Change the `-ddinumber` in your script accordingly.
* `DInput/0/Wireless Controller` shows up **4th** in the picture above.
	+ The Demulshooter script in this example will then be: `Run, DemulShooter.exe -target=dolphin5 -ddinumber=**4**`
* Launch the game and Demulshooter with an AHK script.

### Sample AHK Script

```
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A\_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance Force

Run, "D:\Demulshooter\DemulShooter.exe" -target=dolphin5 -ddinumber=4
sleep, 2000

Run, "D:\Dolphin\Dolphin.exe" /b /e "D:\Dolphin\roms\Ghost Squad (USA).wbfs"

~Esc::
    Process,Close,Dolphin.exe
    Run,taskkill /im "Dolphin.exe" /F
    sleep, 500
    ExitApp
return

```

### OPTIONAL: Create Game-Specific Button Configs

* This section will show you how to create game-specific button mapping configs.
	+ Each Wii game has it’s own button layout.  Refer to the game’s user manual or in-game menu settings.
* Click on *Controllers* icon and then click on the Wiimote 1 *Configure* button.
	+ Set the Device to `Dinput/0/Keyboard Mouse`
	+ Map the player 1 buttons.
	+ Type in and name the Profile = `GHOSTSQUAD_P1`
	+ Click on the *Save* button and then click on OK.

 File:Dolphin 3.png
* Click on *Controllers* icon and then click on the Wiimote 2 *Configure* button.
	+ Set the Device to `Dinput/0/Keyboard Mouse`
	+ Map the player 2 buttons.  (Demulshooter sets Left Mouse = S, Middle Mouse = D, Right Mouse = F)
	+ Type in and name the Profile = `GHOSTSQUAD_P2`
	+ Click on the *Save* button and then click on OK.

 File:Dolphin 4.png
* Right click on *Ghost Squad* and select *Properties*.
	+ Click on *Edit Config* and type in the following, and then click on *File* > *Save*.

```
[Controls]
WiimoteProfile1 = GHOSTSQUAD_P1
WiimoteProfile2 = GHOSTSQUAD_P2

```

 File:Dolphin 5.png

Ghost Squad will now load with the P1 and P2 button mappings.

### Troubleshooting: BigBox / LaunchBox Conflict

reWASD may conflict with BigBox/LaunchBox, causing BB/LB to freeze.

This is a workaround to launch and close reWASD using an AHK script.

* Press `CTRL+SHIFT+ESC` to open the *Task Manager*.
* Go to the *Startup* tab and right-click on reWASD and select *Disable*.

 File:TaskManager.png

#### Sample AHK Script to Launch & Close reWASD

```
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A\_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance Force

Run, D:\reWASD\reWASD.exe, ,Min
sleep, 2000

Run, "D:\DemulShooter\DemulShooter.exe" -target=dolphin5 -ddinumber=4
sleep, 2000

Run, "D:\Dolphin\Dolphin.exe" /b /e "D:\Dolphin\roms\Ghost Squad (USA).wbfs"

~Esc::
    Process,Close,Dolphin.exe
    Run,taskkill /im "Dolphin.exe" /F
    Process,Close,reWASD.exe
    Run,taskkill /im "reWASD.exe" /F
    Process,Close,reWASDEngine.exe
    Run,taskkill /im "reWASDEngine.exe" /F
    sleep, 500
    ExitApp
return

```