Skip to content

A bot that will beat you in Super Smash Brothers Brawl

License

Notifications You must be signed in to change notification settings

jaketerrito/melee_ai

Repository files navigation

melee_ai

A bot that will beat you in Super Smash Brothers Brawl

How to setup Dolphin for pip input on Linux (locations may change for mac, see readme in https://github.com/levthedev/gamecube_IO)

  1. See https://wiki.dolphin-emu.org/index.php?title=Installing_Dolphin#Linux to install dolphin
  2. Navigate to ~/.config/dolphin-emu
  3. mkdir -p Profiles/GCPad
  4. create a new file called pipe.ini with these contents:
[Profile]
Device = Pipe/0/pipe1
Buttons/A = `Button A`
Buttons/B = `Button B`
Buttons/X = `Button X`
Buttons/Y = `Button Y`
Buttons/Z = `Button Z`
Buttons/Start = `Button START`
D-Pad/Up = `Button D_UP`
D-Pad/Down = `Button D_DOWN`
D-Pad/Left = `Button D_LEFT`
D-Pad/Right = `Button D_RIGHT`
Triggers/L = `Button L`
Triggers/R = `Button R`
Main Stick/Up = `Axis MAIN Y -`
Main Stick/Down =  `Axis MAIN Y +`
Main Stick/Left = `Axis MAIN X -`
Main Stick/Right = `Axis MAIN X +`
C-Stick/Up = `Axis C Y -`
C-Stick/Down =  `Axis C Y +`
C-Stick/Left = `Axis C X -`
C-Stick/Right = `Axis C X +`
  1. Navigate to ~/.local/share/dolphin-emu
  2. mkdir Pipes
  3. mkfifo Pipes/pipe
  4. chmod 777 Pipes/pipe
  5. In Dolphin, go to Controllers settings
  6. Set port one to 'Standard Controller', open controller config
  7. Load 'pipe' profile, set device to Pipe/0/pipe. This might be kindof weird to do, if it blanks everything save the blanked profile, edit the profile file (pipe.ini) and add all the lines from above starting with 'Buttons/A...' back into it. It should work after that
  8. Enable 'Background Input'
  9. Go into '~/.config/dolphin-emu/Dolphin.ini and change' and change values to this format. (Have to do everytime you move the window)
RenderWindowXPos = Monitor Resolution X - 640
RenderWindowYPos = Monitor Resolution Y - 480
RenderWindowWidth = 640
RenderWindowHeight = 480
  1. hit OK, run game

Only use the original Melee 1.02 NTCS rom, found here: https://the-eye.eu/public/rom/Nintendo%20Gamecube/ under Super Smash Bros Melee.7z

About

A bot that will beat you in Super Smash Brothers Brawl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages