BizHawk/README.md

413 lines
26 KiB
Markdown
Raw Normal View History

# BizHawk
2019-01-10 17:45:48 +00:00
A multi-system emulator written in C#. As well as quality-of-life features for casual players, it also has recording/playback and debugging tools, making it the first choice for TASers (Tool-Assisted Speedrunners).
[![(latest) release | GitHub](https://img.shields.io/github/release/TASEmulators/BizHawk.svg?logo=github&logoColor=333333&sort=semver&style=popout)](https://github.com/TASEmulators/BizHawk/releases/latest)
2020-08-30 16:45:59 +00:00
[![latest dev build | GitLab CI](https://img.shields.io/badge/latest_dev_build-GitLab_CI-orange.svg?logo=gitlab&style=popout)](https://gitlab.com/TASVideos/BizHawk/pipelines/master/latest)
2021-10-24 15:46:53 +00:00
[![GitHub open issues counter](https://img.shields.io/github/issues-raw/TASEmulators/BizHawk.svg?logo=github&logoColor=333333&style=popout)](https://github.com/TASEmulators/BizHawk/issues)
2019-01-08 06:08:37 +00:00
---
2019-01-09 17:04:45 +00:00
2019-01-09 17:39:13 +00:00
Jump to:
2019-01-11 10:08:06 +00:00
* Installing
* [Windows](#windows)
2019-11-07 09:17:28 +00:00
* [Unix](#unix)
2021-03-25 23:58:56 +00:00
* [macOS](#macos-legacy-bizhawk)
2020-08-30 16:45:59 +00:00
* [Development builds](#development-builds)
2019-01-11 10:08:06 +00:00
* Building
* [Windows](#windows-1)
2019-11-07 09:17:28 +00:00
* [Unix](#unix-1)
2019-01-25 12:17:21 +00:00
* [Usage](#usage)
* [TASing](#tasing)
2021-01-27 04:52:01 +00:00
* [External tools](#external-tools)
2019-01-25 12:17:21 +00:00
* [Cores](#cores)
* [Support and troubleshooting](#support-and-troubleshooting)
* [Contributing](#contributing)
2020-08-30 16:45:59 +00:00
* [EmuHawk development](#emuhawk-development)
* [Core development](#core-development)
* [Testing/QA](#testingqa)
* [Localization](#localization)
* [License](#license)
2019-01-25 12:17:21 +00:00
* [Related projects](#related-projects)
2019-01-09 17:39:13 +00:00
2019-01-10 17:06:17 +00:00
## Features and systems
2019-01-08 11:56:04 +00:00
2019-01-10 14:45:58 +00:00
The BizHawk common features (across all cores) are:
2019-01-10 17:45:48 +00:00
* format, region, and integrity detection for game images
2019-01-12 07:40:10 +00:00
* 10 save slots with hotkeys and infinite named savestates
2019-01-09 18:37:10 +00:00
* speed control, including frame stepping and rewinding
2019-01-10 17:45:48 +00:00
* memory view/search/edit in all emulated hardware components
2019-01-10 14:35:54 +00:00
* input recording (making TAS movies)
2019-01-10 17:55:46 +00:00
* screenshotting and recording audio + video to file
2019-01-10 17:45:48 +00:00
* firmware management
* input, framerate, and more in a HUD over the game
2021-01-27 04:52:01 +00:00
* rebindable hotkeys for controlling the frontend (keyboard+mouse+gamepad)
* a comprehensive input mapper for the emulated gamepads and other peripherals
* programmatic control over core and frontend with Lua or C#.NET
2019-01-08 11:56:04 +00:00
2019-01-10 17:55:46 +00:00
Supported consoles and computers:
2019-01-10 16:44:52 +00:00
2019-01-11 08:07:44 +00:00
* Apple II
2019-01-11 16:12:24 +00:00
* Atari
2019-01-11 16:13:58 +00:00
* Video Computer System / 2600
2019-01-11 16:12:24 +00:00
* 7800
* Lynx
* Bandai WonderSwan + Color
* CBM Commodore 64
* Coleco Industries ColecoVision
2020-04-20 14:39:23 +00:00
* GCE Vectrex
* Magnavox Odyssey² / Videopac G7000
2019-04-30 12:44:12 +00:00
* Mattel Intellivision
* MSX
2019-01-11 16:12:24 +00:00
* NEC
* PC Engine / TurboGrafx-16 + SuperGrafx + CD
* PC-FX
* Neo Geo Pocket + Color
* Nintendo
2019-01-11 16:12:50 +00:00
* Famicom / Nintendo Entertainment System + FDS
2019-01-11 16:12:24 +00:00
* Game Boy + Color
* Game Boy Advance
* Nintendo 64
* Super Famicom / Super Nintendo Entertainment System
* Virtual Boy
* Sega
* Game Gear
* Genesis + 32X + CD
2019-01-11 16:24:35 +00:00
* Master System
2019-01-11 16:12:24 +00:00
* Saturn
2019-01-11 16:24:35 +00:00
* SG-1000
2019-01-11 16:12:24 +00:00
* Sinclair ZX Spectrum
2019-01-15 14:54:42 +00:00
* Sony Playstation (PSX)
2019-01-11 16:12:24 +00:00
* Texas Instruments TI-83
2019-01-11 15:53:13 +00:00
* Uzebox
2020-08-30 16:45:59 +00:00
* more coming soon..?
2019-01-09 18:37:10 +00:00
2019-01-25 12:31:36 +00:00
See [*Usage*](#usage) below for info on basic config needed to play games.
2019-01-08 11:56:04 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-15 15:09:24 +00:00
2019-01-10 17:18:42 +00:00
## Installing
### Windows
2015-06-22 20:49:18 +00:00
Released binaries can be found right here on GitHub (also linked at the top of this readme):
2019-01-08 06:08:37 +00:00
[![Windows | binaries](https://img.shields.io/badge/Windows-binaries-%230078D6.svg?logo=windows&logoColor=0078D6&style=popout)](https://github.com/TASEmulators/BizHawk/releases/latest)
2019-01-08 06:08:37 +00:00
2021-01-27 04:52:01 +00:00
Click `BizHawk-<version>.zip` to download it. Also note the changelog, the full version of which is [here at TASVideos](http://tasvideos.org/Bizhawk/ReleaseHistory.html).
Extract it anywhere, but **don't mix different versions** of BizHawk, keep each version in its own folder. You may move or rename the folder containing `EmuHawk.exe`, even to another drive — as long as you keep all the files together, and the prerequisites are installed when you go to run it.
2020-08-30 16:45:59 +00:00
2021-01-27 03:33:51 +00:00
Run `EmuHawk.exe` to start. If startup is blocked by a Windows SmartScreen dialog, click "More Info" to reveal the override button. Third-party antivirus may also block startup. There are some command-line arguments you can use: see [*Passing command-line arguments*](#passing-command-line-arguments).
2019-01-09 17:31:16 +00:00
2021-10-16 18:38:24 +00:00
EmuHawk does have some prerequisites which it can't work without (it will let you know if they're missing). The list is [here](https://github.com/TASEmulators/BizHawk-Prereqs/blob/master/README), and we've made an all-in-one installer which you can get [here](https://github.com/TASEmulators/BizHawk-Prereqs/releases/latest).
2021-01-27 04:52:01 +00:00
You should only have to run this once per machine, unless the changelog says we need something extra.
2019-01-08 06:08:37 +00:00
2021-12-03 21:15:02 +00:00
We will be following Microsoft in dropping support for old versions of Windows, that is, we reserve the right to ignore your problems unless you've updated to at least Win11 21H2 (initial release), Win10 20H2, or Win8.1 KB5007247. Read more on [MSDN](https://docs.microsoft.com/en-us/lifecycle/faq/windows).
2019-01-08 06:08:37 +00:00
2021-10-16 18:38:24 +00:00
A "backport" release, [1.13.2](https://github.com/TASEmulators/BizHawk/releases/tag/1.13.2), is available for users of Windows XP, 7, or 8.1 32-bit. It has many bugs that will never be fixed and it doesn't have all the features of the later versions.
2019-01-11 11:58:06 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:15:06 +00:00
2019-11-07 09:17:28 +00:00
### Unix
2019-01-08 06:08:37 +00:00
2020-08-30 16:45:59 +00:00
**Note**: There's only one dev working on Linux (@YoshiRulz)! Please have patience, and try not to bother everyone else.
Install the listed package with your package manager (some buttons are links to the relevant package). The changelog can be found [on TASVideos](http://tasvideos.org/Bizhawk/ReleaseHistory.html).
[![Manjaro | bizhawk-monort (AUR)](https://img.shields.io/badge/Manjaro-bizhawk--monort_(AUR)-%2335BF5C.svg?logo=manjaro&style=popout)](https://aur.archlinux.org/packages/bizhawk-monort)
No package for your distro? Grab the latest release here on GitHub (it's the same as the Windows version):
[![Misc. Linux | bizhawk-monort](https://img.shields.io/badge/Misc._Linux-bizhawk--monort-%23FCC624.svg?logo=linux&logoColor=black&style=popout)](https://github.com/TASEmulators/BizHawk/releases/latest)
2019-01-18 10:21:13 +00:00
If you download BizHawk this way, **don't mix different versions**, keep each version in its own folder. The runtime dependencies are glibc, Mono "complete", OpenAL, and `lsb_release`. .NET Core is **not** a runtime dependency, only Mono. WINE is also **not** a runtime dependency.
2019-01-08 06:08:37 +00:00
2021-01-27 04:52:01 +00:00
Run `EmuHawkMono.sh` to start EmuHawk—you can run it from anywhere, so creating a `.desktop` file to wrap the script is fine. The shell script should print an error if it fails, otherwise it's safe to ignore console output. It takes mostly the same command-line arguments as on Windows: see [*Passing command-line arguments*](#passing-command-line-arguments).
2019-01-15 15:26:11 +00:00
Most features and cores work, a notable omission being Mupen64Plus (N64). See the Linux thread, [#1430](https://github.com/TASEmulators/BizHawk/issues/1430), for a more detailed breakdown.
Lua support is new in 2.7, and it requires Mono >= 6.12.0.151 (unreleased as of 2022-01). Comment on [#2951](https://github.com/TASEmulators/BizHawk/issues/2951) if you run into any problems with it.
2015-06-22 20:49:18 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:14:13 +00:00
2020-08-30 16:45:59 +00:00
#### macOS (legacy BizHawk)
EmuHawk depends on certain libraries for graphics, and these don't work on macOS. Users on macOS have three options:
* Use another machine with Windows or Linux, or install either in a VM (WINE is not a VM).
* Use an older 1.x release which was ported to macOS by @Sappharad (with replacements for the missing libraries). Links and more details are in [this TASVideos forum thread](http://tasvideos.org/forum/viewtopic.php?t=12659) (jump to last page for latest binaries).
* For the technically-minded, download the [source](https://github.com/Sappharad/BizHawk/tree/MacUnixMonoCompat) of an older 2.x release. @Sappharad put a lot of work into it but ultimately decided to stop.
[to top](#bizhawk)
### Development builds
Development builds are made automatically whenever someone contributes. Because of this, we recommend using a release for work that requires stability (such as TASing), and only switching to a dev build if there's a specific change or addition you need.
[![recent dev builds | GitLab CI](https://img.shields.io/badge/recent_dev_builds-GitLab_CI-orange.svg?logo=gitlab&style=popout)](https://gitlab.com/TASVideos/BizHawk/pipelines)
[![latest dev build | GitLab CI](https://img.shields.io/badge/latest_dev_build-GitLab_CI-orange.svg?logo=gitlab&style=popout)](https://gitlab.com/TASVideos/BizHawk/pipelines/master/latest)
2022-01-26 06:52:39 +00:00
> Note: Due to recent changes by AppVeyor, artifact downloads are no longer available. Use the GitLab CI artifacts.
2020-08-30 16:45:59 +00:00
Click one of the buttons above to download a dev build (they're also at the top of this readme). AppVeyor uses Windows and GitLab CI uses Linux, but they work all the same.
2022-01-26 06:52:39 +00:00
* ~~On the AppVeyor page for a Build, click "Artifacts", then `BizHawk_Developer-<datetime>-#<long hexadecimal>.zip`.~~
2021-03-25 23:58:56 +00:00
* On the GitLab CI page for a Pipeline, click "Jobs", then the download button on the right under the heading "Package". (On the Pipelines list page, there's also a download button on each Pipeline—choose `package_devbuild_*:archive` there.)
2020-08-30 16:45:59 +00:00
2021-10-16 18:38:24 +00:00
To find the dev builds for a specific commit, you can click the green checkmark next to it (in the [commit history](https://github.com/TASEmulators/BizHawk/commits/master), for example) for a dropdown, then click either "Details" link to go to AppVeyor/GitLab.
2020-08-30 16:45:59 +00:00
2019-01-10 17:26:07 +00:00
## Building
2017-01-08 16:23:45 +00:00
### Windows
2019-01-09 17:09:28 +00:00
2021-12-03 21:15:02 +00:00
Before you can build, you'll need the .NET 6 SDK or later (comes with VS2022, or can be manually installed beside VS2019, see [full instructions](https://docs.microsoft.com/en-gb/dotnet/core/install/windows)).
If you have WSL, Git BASH, or similar, clone the repo with:
2019-01-11 08:25:16 +00:00
```
2021-10-16 18:38:24 +00:00
git clone https://github.com/TASEmulators/BizHawk.git BizHawk_master
# or ssh: git clone git@github.com:TASEmulators/BizHawk.git BizHawk_master
2019-01-11 08:25:16 +00:00
```
...then go into the repo's `Dist` folder and run `QuickTestBuildAndPackage_Release.bat`. This is the same process used by AppVeyor.
(Git is required for this script, but if you proceed to open the solution in VS then you can build without it.)
2019-01-10 15:53:32 +00:00
2021-01-27 04:52:01 +00:00
For anything more complicated than just building, you'll need an IDE like [VS Community 2019](https://visualstudio.microsoft.com/vs/community), currently the best free C# IDE (you may prefer Rider, VS Code, or something else).
Open the `/BizHawk.sln` solution file in your IDE.
With VS, start the build by choosing the `BizHawk.Client.EmuHawk` executable in the toolbar (in either the `Debug` or `Release` configuration) and clicking the launch button beside it.
2019-01-09 17:09:28 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:15:06 +00:00
2019-11-07 09:17:28 +00:00
### Unix
2019-01-11 10:07:09 +00:00
2021-12-03 21:15:02 +00:00
Before you can build, you'll need the .NET 6 SDK or later (package name is usually `dotnet-sdk-6.0`, see [full instructions](https://docs.microsoft.com/en-gb/dotnet/core/install/linux)). Once it's installed, run:
2019-01-08 06:37:17 +00:00
```sh
2021-10-16 18:38:24 +00:00
git clone https://github.com/TASEmulators/BizHawk.git BizHawk_master && cd BizHawk_master
# or ssh: git clone git@github.com:TASEmulators/BizHawk.git BizHawk_master && cd BizHawk_master
2021-03-25 23:58:56 +00:00
Dist/BuildRelease.sh
2019-01-08 06:37:17 +00:00
```
2021-03-25 23:58:56 +00:00
The assemblies are put in the `/output` dir, so if you have the runtime dependencies (see [*Installing*](#unix)) you can call `/output/EmuHawkMono.sh`.
2020-08-30 16:45:59 +00:00
VS 2019 isn't available on Linux, but Rider and VS Code are. You can always code from the command line...
2019-01-08 06:08:37 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:14:13 +00:00
2019-01-10 17:18:42 +00:00
## Usage
2019-01-08 06:08:37 +00:00
2021-01-27 03:33:51 +00:00
#### Passing command-line arguments
2021-10-16 18:38:24 +00:00
EmuHawk takes some command-line options which aren't well-documented; you might be able to figure them out from [the source](https://github.com/TASEmulators/BizHawk/blob/78daf4913d4c8e47d24fc14d84ca33ddef913ed4/src/BizHawk.Client.Common/ArgParser.cs).
2021-01-27 03:33:51 +00:00
On Windows 8.1/10, it's easiest to use PowerShell for this. For example, to pass `--lua=C:\path\to\script.lua` as the first argument and `C:\path\to\rom.n64` as the second, navigate to the BizHawk install folder and run:
```pwsh
(New-Object System.Diagnostics.Process -Property @{StartInfo=(New-Object System.Diagnostics.ProcessStartInfo -Property @{FileName="$PWD\EmuHawk.exe";Arguments='"--lua=C:\path\to\script.lua" "C:\path\to\rom.n64"'})}).Start()
```
Note: PowerShell's `cd` doesn't seem to change the CWD of child processes. Just open a shell from the install folder. Don't @ me.
2021-01-27 03:33:51 +00:00
For char escaping tips you're on your own. It might help to split up the command so you can identify syntax errors:
```pwsh
$s = '"--lua=C:\path\to\script.lua" "C:\path\to\rom.n64"'
$startInfo = New-Object System.Diagnostics.ProcessStartInfo -Property @{FileName="$PWD\EmuHawk.exe";Arguments=$s}
$proc = New-Object System.Diagnostics.Process -Property @{StartInfo=$startInfo}
$proc.Start()
```
On Linux, you can pass arguments to `EmuHawkMono.sh` as expected and they will be forwarded to `mono`. (You can also `export` env. vars.) All the arguments work as on Windows, with some caveats:
* file paths must be absolute (or relative to the install dir, `EmuHawkMono.sh` changes the CWD to there);
* `--mono-no-redirect`: if you pass this flag *as the first argument*, it will be eaten by the script itself, and stdout/stderr will *not* be redirected to a file. (It's redirected by default.)
The same example as above would be `./EmuHawkMono.sh --lua=/path/to/script.lua /path/to/rom.n64`.
2021-01-27 03:33:51 +00:00
For char escaping tips, see ~~Unix StackExchange~~ your shell's man/info page. BASH and Zsh have different rules!
2019-01-13 06:25:56 +00:00
#### Loading firmware
2021-01-27 04:52:01 +00:00
Put all your dumped firmware files in the `/Firmware` folder and everything will be automatically detected and loaded when you try to load a game (filenames and subfolders aren't enforced, you can just throw them in there). If you're missing required or optional firmware, you will see a "You are missing the needed firmware files [...]" dialog.
2019-01-13 06:25:56 +00:00
2019-01-23 10:38:05 +00:00
Keep in mind some firmware is optional, and some have multiple versions, only one of which needs to be set.
2019-01-23 06:54:07 +00:00
2019-01-23 10:38:05 +00:00
If you want to customise firmware (when there are alternative firmwares, for example) go to `Config` > `Firmwares...`, right-click the line of the firmware you want to change, click "Set Customization", and open the file.
2021-01-27 04:52:01 +00:00
You can change where EmuHawk looks for firmware by going to `Config` > `Paths...` and changing "Firmware" in the "Global" tab to the new location. This allows multiple installs to use the same folder.
2019-01-15 15:33:55 +00:00
2019-01-13 06:25:56 +00:00
#### Identifying a good rom
2021-01-27 04:52:01 +00:00
With a core and game loaded, look in the very left of the status bar (on by default, toggle with `View` > `Display Status Bar`):
2019-01-13 07:22:02 +00:00
* a green checkmark means you've loaded a "known good" rom;
2019-01-14 15:34:36 +00:00
* a "!" in a red circle means you've loaded a "known bad" rom, created by incorrect dumping methods; and
2019-01-14 15:52:29 +00:00
* something else, usually a ?-block, means you've loaded something that's not in the database.
2019-01-08 06:08:37 +00:00
2021-01-27 04:52:01 +00:00
#### Rebinding hotkeys and virtual gamepads
2019-01-11 12:15:06 +00:00
2021-01-27 04:52:01 +00:00
There are two keybind windows, `Config` > `Controllers...` and `Config` > `Hotkeys...`. These let you bind your keyboard/mouse and gamepads to virtual gamepads, and to frontend functions, respectively.
2019-01-15 14:36:10 +00:00
2021-01-27 04:52:01 +00:00
Using them is simple, click in a box next to an action and press the button (or bump the axis) you want bound to that action.
If the "Auto Tab" checkbox at the bottom of the window is checked, the next box will be selected automatically and whatever button you press will be bound to *that* action, and so on down the list. If "Auto Tab" is unchecked, clicking a filled box will let you bind another button to the same action. Keep in mind there are multiple tabs of actions.
2019-01-13 06:25:56 +00:00
2021-01-27 04:52:01 +00:00
#### Selecting and configuring cores
2019-01-13 06:25:56 +00:00
2021-01-27 04:52:01 +00:00
To change which core is used where multiple cores emulate the same system (currently: NES, SNES, GB/C, SGB, and PCE/TG-16), look under `Config` > `Cores`. Under that menu, you'll also find the `GB in SGB` checkbox. When checked, GB/C games will be loaded using the chosen SGB core instead of the chosen GB core.
2019-01-08 06:08:37 +00:00
2021-01-27 04:52:01 +00:00
Cores have their own settings, which you can find in various windows under the system-specific menu (between `Tools` and `Help` when a rom is loaded). Some cores, like Mupen64Plus, have a labyrinth of menus while others have one.
2019-01-15 14:36:10 +00:00
2019-01-13 06:25:56 +00:00
#### Running Lua scripts
2019-01-10 15:29:37 +00:00
2021-01-27 04:52:01 +00:00
Go to `Tools` > `Lua Console`. The opened window has two parts, the loaded script list and the console output. The buttons below the menubar are shortcuts for items in the menus, hover over them to see what they do.
Any script you load is added to the list, and will start running immediately. Instead of using "Open script", you can drag-and-drop .lua files onto the console or game windows.
2019-01-13 07:22:02 +00:00
2019-01-13 07:23:56 +00:00
Running scripts have a "▶️" beside their name, and stopped scripts (manually or due to an error) have a "⏹️" beside them. Using "Pause or Resume", you can temporarily pause scripts, those have a "⏸️".
2019-01-13 07:22:02 +00:00
2019-01-13 07:24:36 +00:00
"Toggle script" does just that (paused scripts are stopped). "Reload script" stops it and loads changes to the file, running scripts are then started again. "Remove script" stops it and removes it from the list.
2019-01-08 06:08:37 +00:00
2021-01-27 04:52:01 +00:00
#### In-game saves
2021-01-27 04:52:01 +00:00
Games often have a "save progress" feature, which writes some save data on the cart or some sort of memory card. (Not to be confused with EmuHawk's savestates.)
But when EmuHawk emulates this process, the in-game saves remain *in the host system's memory (RAM)* along with the rest of the virtual system, meaning it's not really saved. The save data needs to be copied to a file on disk (on the host), which we call "SaveRAM flushing".
2021-01-27 04:52:01 +00:00
You can simply use `File` > `Save RAM` > `Flush Save Ram` (default hotkey: `Ctrl+S`) to make EmuHawk save properly. The `.SaveRAM` files are in system-specific subfolders of the BizHawk install folder (configurable) for if you want to make backups, which you should.
2021-01-27 04:52:01 +00:00
The `File` > `Save RAM` menu is printed in **bold** when the virtual system does a save, which usually corresponds to pushing a "save progress" button in-game. Note that some games use SRAM for miscellaneous tasks, so it may not be strictly necessary to flush the SaveRAM every time it's changed. Can't hurt though.
2021-01-27 04:52:01 +00:00
EmuHawk can also flush automatically, which you can configure with `Config` > `Customize...` > `Advanced` > `AutoSaveRAM`. When closing or switching roms, EmuHawk may also try to flush SaveRAM. **A disclaimer: Automatic flushing is extremely unreliable and not being maintained. It may corrupt your previous saves!**
2021-01-27 04:52:01 +00:00
More disclaimers: Develop a habit to always flush saves manually every time you save in the game, and make backups of the flushed save files! If you don't flush saves manually and something breaks, you're on your own. If your save has been corrupted and you didn't make a backup, there's nothing we can do about it.
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-08 11:56:04 +00:00
2019-01-13 06:25:56 +00:00
### TASing
2019-01-08 11:56:04 +00:00
2019-01-13 06:25:56 +00:00
~~This section refers to BizHawk specifically. For resources on TASing in general, see [Welcome to TASVideos](http://tasvideos.org/WelcomeToTASVideos.html).~~ This section hasn't been written yet.
2019-01-08 11:56:04 +00:00
2021-01-27 04:52:01 +00:00
For now, the best way to learn how to TAS is to browse pages like [BasicTools](http://tasvideos.org/TasingGuide/BasicTools.html) on TASVideos and watch tutorials like [The8bitbeast's](https://www.youtube.com/playlist?list=PLlJzD6wWmoXmihK13itZJ-mzjK3SD1EaM) and [Sand_Knight and dwangoAC's](https://youtu.be/6tJniMaR2Ps).
2019-01-08 11:56:04 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:15:06 +00:00
2020-08-30 16:45:59 +00:00
### External tools
2019-01-12 15:57:06 +00:00
2021-10-16 18:38:24 +00:00
Creating a GUI with Lua scripts is fiddly. If you know some C# (or another .NET language), you can replace your Lua script with an *external tool*. See the [ext. tools wiki](https://github.com/TASEmulators/BizHawk-ExternalTools/wiki) for more details.
2021-10-16 18:38:24 +00:00
We're looking to create [a catalog](https://github.com/TASEmulators/BizHawk-ExternalTools/wiki/Catalog) of tools made by the community, share yours on IRC/Discord (links [below](#support-and-troubleshooting)).
2019-01-12 15:57:06 +00:00
2019-01-10 17:34:01 +00:00
### Cores
2021-05-21 02:17:26 +00:00
A *core* is what we call the smaller bits of software that emulate just one system or family of systems, e.g. NesHawk for NES/Famicom. For the most part, we have one core per system, but sometimes you have the choice between speed (in terms of CPU usage) and accuracy.
In the table below, core names in **bold** are accuracy-focused and acceptable on TASVideos. The -*Hawk* cores are part of the BizHawk project. All other cores are ported, mainly from the Mednafen project.
System | Cores
--:|:--
Apple II | **Virtu**
Atari 2600 | **Atari2600Hawk**
Atari 7800 | **A7800Hawk**
Atari Lynx | **Handy**
Commodore 64 | **C64Hawk**
ColecoVision | **ColecoHawk**
Game Boy / Color | **Gambatte**, **GBHawk**, **SameBoy**
2021-05-21 02:17:26 +00:00
Game Boy Advance | **mGBA**
Intellivision | **IntelliHawk**
MSX | **MSXHawk**
N64 | Ares64, **Mupen64Plus**
NDS | **melonDS**
2021-05-21 02:17:26 +00:00
Neo Geo Pocket | **NeoPop**
NES | **NesHawk**, QuickNes
Odyssey² | **O2Hawk**
PC-FX | **T.S.T.**
Playstation (PSX) | **Nymashock**, **Octoshock**
2021-05-21 02:17:26 +00:00
Sega 32X | **PicoDrive**
Sega Game Gear | **SMSHawk**
Sega Genesis | **Genplus-gx**
Sega Master System | **SMSHawk**
Sega Saturn | **Saturnus**
SNES | **BSNES**, Faust, Snes9x
2021-10-19 01:38:23 +00:00
Super Game Boy | **BSNES**, **Gambatte**
TI-83 | **Emu83**, **TI83Hawk**
2021-05-21 02:17:26 +00:00
TurboGrafx | HyperNyma, **PCEHawk**, **TurboNyma**
Uzebox | **Uzem**
Vectrex | **VectrexHawk**
Virtual Boy | **Virtual Boyee**
WonderSwan / Color | **Cygne**
ZX Spectrum | **ZXHawk**
2019-01-11 09:45:36 +00:00
2020-08-30 16:45:59 +00:00
There are also works-in-progress for:
* Amstrad CPC (home-grown core)
* Fairchild Channel F (home-grown core)
* [MAME](https://mamedev.org)
* Playstation 2 via [Dobiestation](https://github.com/PSI-Rockin/DobieStation)
* others maybe ([candidates](https://gitlab.com/TASVideos/BizHawk/snippets/1890492))
Please don't bother core devs about these WIPs unless you're looking to contribute in some way.
2019-01-10 17:34:01 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:14:13 +00:00
2019-01-09 06:21:12 +00:00
## Support and troubleshooting
2019-01-08 06:08:37 +00:00
2021-10-16 18:38:24 +00:00
A short [FAQ](http://tasvideos.org/Bizhawk/FAQ.html) is provided on the [BizHawk wiki](http://tasvideos.org/Bizhawk.html). If your problem is one of the many not answered there, and you can't find it in the [issue tracker search](https://github.com/TASEmulators/BizHawk/issues?q=is%3Aissue+PUT_ISSUE_KEYWORDS_HERE), you can try:
2021-01-27 04:52:01 +00:00
* `#emulation` on [the TASVideos Discord](https://discordapp.com/invite/GySG2b6) (also the more specialised channels `#tas-production` and `#scripting`, and [the ApiHawk server](https://discord.gg/UPhN4um3px))
* `#bizhawk` on Libera Chat ([via Matrix](https://matrix.to/#/#bizhawk:libera.chat) or [via IRC](https://libera.chat/guides/connect))
2020-08-30 16:45:59 +00:00
* The TASVideos [forum for BizHawk](http://tasvideos.org/forum/viewforum.php?f=64)
2015-06-22 20:49:18 +00:00
2021-10-16 18:38:24 +00:00
You can [open a new issue](https://github.com/TASEmulators/BizHawk/issues/new) at any time if you're logged in to GitHub. Please **at the very least read the issue templates**, we tend to ask the same questions for every one-line issue that's opened.
2019-01-09 17:24:20 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-11 12:15:06 +00:00
2019-01-08 11:56:04 +00:00
## Contributing
2015-06-22 20:49:18 +00:00
2020-08-30 16:45:59 +00:00
### EmuHawk development
2021-10-16 18:38:24 +00:00
Do you want your name next to [these fine people](https://github.com/TASEmulators/BizHawk/graphs/contributors)? Fork the repo and work on one of our [many open issues](https://github.com/TASEmulators/BizHawk/issues).
2021-01-27 04:52:01 +00:00
If you ask on IRC/Discord (see above), you might get more info about the problem—or you might find someone else is also working on it. It's especially important to ask about adding new features.
2020-08-30 16:45:59 +00:00
All the source code for EmuHawk is in `/src`. The project file, `/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj`, includes the other projects [in a tree](https://gitlab.com/TASVideos/BizHawk/snippets/1886666).
When opening a PR:
* Consider making changes over multiple commits instead of one large commit. Bonus points if each commit is a working build.
* Rebase instead of merging when pulling changes.
* Don't use the `master` branch of your fork! Using another branch makes rebasing so much easier.
* Our test suite is small, but it's still worth running. Build the executable project `BizHawk.Tests`.
* If you fork on GitLab, the tests will run in CI.
* For the time being, code style is checked manually. Please use CRLF, tabs, and [Allman braces](https://en.wikipedia.org/wiki/Indentation_style#Allman_style) in new files.
* Static code analysis is configured but disabled—build with `-p:MachineRunAnalyzersDuringBuild=true`.
2021-01-27 04:52:01 +00:00
* If you fork on GitLab, the Analyzers will run in CI if you use `git push -o ci.variable="BIZHAWKBUILD_USE_ANALYZERS=true"` (or otherwise set that env. var for the pipeline).
2020-08-30 16:45:59 +00:00
[to top](#bizhawk)
### Core development
We're not particularly interested in PRs adding cores out-of-the-blue, but if you have experience in emulator development please get in touch on IRC/Discord.
[to top](#bizhawk)
### Testing/QA
Not a programmer? You can still be helpful by grabbing a recent [dev build](#development-builds) and reproducing old bugs, i.e. checking if they've been fixed or not.
[to top](#bizhawk)
2015-06-22 20:49:18 +00:00
2020-08-30 16:45:59 +00:00
### Localization
2019-01-12 15:57:06 +00:00
2020-08-30 16:45:59 +00:00
ping YoshiRulz on IRC or Discord (`YoshiRulz#4472`)
2015-06-22 20:49:18 +00:00
2020-08-30 16:45:59 +00:00
[to top](#bizhawk)
### License
2019-01-09 17:18:41 +00:00
2021-10-16 18:38:24 +00:00
EmuHawk and DiscoHawk can be used by anyone for any purpose allowed by the permissive *MIT License* (Expat). The [full text](https://github.com/TASEmulators/BizHawk/blob/master/LICENSE) is very short.
2019-01-09 05:53:31 +00:00
2020-08-30 16:45:59 +00:00
Any developers looking to re-use code from BizHawk in their own work should understand which files the license applies to. It's included in the text, but tl;dr: anything outside `/src` isn't ours and we can't give you permission to share, use, or sell it. That means not all the files included with BizHawk *releases or dev builds* are free to share, either.
2019-01-11 14:33:19 +00:00
2020-08-30 16:45:59 +00:00
Disclaimer time! Can't have emulation software without a disclaimer...
> Following the terms of our license does not make you immune from other contracts or laws.
> Some or all of the following may be illegal where you live: creating a copy of non-free software for backup purposes ("dumping" or "ripping"); distributing copies of non-free software; soliciting pirated copies of software; knowingly posessing pirated copies of software; importing software from the USA (GitHub and TASVideos are American entities); using a backup copy of non-free software without the original.
> For obvious reasons, **we cannot and will not distribute dumped games or firmware that is under copyright**.
2019-01-11 12:08:42 +00:00
2019-01-25 12:17:21 +00:00
[to top](#bizhawk)
2019-01-15 15:09:54 +00:00
2019-01-10 05:01:37 +00:00
## Related projects
2020-08-30 16:45:59 +00:00
* [Dolphin](https://dolphin-emu.org) for GameCube and Wii — cross-platform
* [FCEUX](http://www.fceux.com/web/home.html) for NES/Famicom — cross-platform; TASing is Windows-only
* [libTAS](https://github.com/clementgallet/libTAS) for ELF (Linux desktop apps) — requires GNU+Linux host; also emulates other emulators
2019-01-11 08:07:44 +00:00
* [lsnes](http://tasvideos.org/Lsnes.html) for GB and SNES — cross-platform
2021-01-27 04:52:01 +00:00
* [melonDS](http://melonds.kuribo64.net) for Nintendo DS — cross-platform
* [mGBA](https://mgba.io) for GBA and GB/C — cross-platform
2019-01-10 05:01:37 +00:00
2021-10-16 18:38:24 +00:00
Emulators for other systems can be found on the [EmulatorResources page](http://tasvideos.org/EmulatorResources.html) at TASVideos. The [TASEmulators GitHub page](https://github.com/TASEmulators) also holds copies of other emulators and plugins where development happens sometimes, their upstreams may be of use.
2019-01-12 08:06:19 +00:00
2020-08-30 16:45:59 +00:00
[to top](#bizhawk)