| 1 | # Nintendo Switch Port of [fheroes2](README.md) Project |
| 2 | |
| 3 | It's a homebrew app, so you need to be running custom firmware for it to work. |
| 4 | |
| 5 | ## Building |
| 6 | |
| 7 | You will need to install the [devkitPro](https://devkitpro.org/) toolchain. Make sure to include the following package: |
| 8 | |
| 9 | ```text |
| 10 | libnx switch-sdl2_mixer |
| 11 | ``` |
| 12 | |
| 13 | After installation run `make -f Makefile.switch -j 2` command to build the package. |
| 14 | |
| 15 | ## Setup |
| 16 | |
| 17 | You will need a copy of the official game to run this port. |
| 18 | |
| 19 | fheroes2 root directory is hardcoded as `/switch/fheroes2`. Put the game files there (specifically `ANIM`, `DATA`, `MAPS` |
| 20 | and `MUSIC` folders), then copy over the `files` directory, as well as `fheroes2.nro`. If you have a Russian version from |
| 21 | Buka Entertainment, you'll likely have `Anim2` folder instead. Rename it to `ANIM` if you wish to use the Buka game data with |
| 22 | this port. |
| 23 | |
| 24 | At the end you should have the following directory tree on your SD card: |
| 25 | |
| 26 | ```text |
| 27 | switch |
| 28 | | |
| 29 | +-- ... |
| 30 | +-- fheroes2 <--- this is the game directory |
| 31 | | |
| 32 | +--- anim <--- HoMM2 game data |
| 33 | +--- data <--- HoMM2 game data |
| 34 | +--- files <--- Part of fheroes2 release |
| 35 | +--- maps <--- HoMM2 game data |
| 36 | +--- music <--- HoMM2 game data |
| 37 | +--- fheroes2.nro <--- Part of fheroes2 release |
| 38 | ``` |
| 39 | |
| 40 | Generally, you will need game resources from the localized version of HoMM2 in order to use translations in fheroes2. During |
| 41 | the first run, the game should auto-detect the game data you have and offer to choose a language you'd like to use. English |
| 42 | is always available. |
| 43 | |
| 44 | ## Running |
| 45 | |
| 46 | This build of fheroes2 was tested on 12.0.3|AMS M.19.4|S (FAT32). exFAT is not recommended. |
| 47 | USB mice and keyboards connected via an OTG adapter are supported. |
| 48 | |
| 49 | Working controls are: |
| 50 | |
| 51 | * Touchscreen - emulates mouse, including dragging |
| 52 | * L-stick - move mouse cursor |
| 53 | * R-stick/D-pad - scroll |
| 54 | * A - left mouse click |
| 55 | * B - Right mouse click |
| 56 | * X - Escape |
| 57 | * Y - Enter |
| 58 | * (+) - Cast spell |
| 59 | * (-) - End turn |
| 60 | * R - Cycle through towns |
| 61 | * L - Cycle through heroes |