ReSho 64: an unofficial PC version of Samurai Shodown 64 (SNK, 1997)
======================================================================

ReSho 64 is not an emulator. Setup translates the arcade game's own program into a Windows program on your
PC, from your own copy of the game. This download holds no game data: only ReSho 64's own code and the
open-source tools Setup uses.


WHAT YOU NEED
-------------
- 64-bit Windows 10 or 11, and a graphics card with Direct3D 11.
- Your own, legally obtained copies of two arcade ROM sets, as MAME names them:
    sams64.zip   Samurai Shodown 64 / Samurai Spirits / Paewang Jeonseol 64
    hng64.zip    the Hyper Neo Geo 64 system ROMs (it must include tmp87ph40an.bin)
  Any MAME version's sets work if they are complete: Setup finds the files by checksum, whatever their names.
- About 600 MB of free disk space while installing. The installed game takes about 160 MB.


INSTALL
-------
1. Unzip this whole folder anywhere.
2. Run Setup.exe.
3. Choose your sams64.zip and your hng64.zip, and where to install. Then press Install.

Setup checks the ROMs, builds the game and adds shortcuts. It takes a minute or two. Nothing is
downloaded and no administrator rights are needed. Afterwards this folder can be deleted.

Setup is not code-signed, so Windows may say "Windows protected your PC": choose More info, then Run anyway.

To update, install a newer version into the same folder: settings, controls and the arcade's save memory
are kept. To uninstall: Windows Settings > Apps, or Uninstall.exe in the install folder.


HOW TO PLAY
-----------
The game boots like the arcade machine. Insert a coin, then press Start (with Free play on, in the menu's
Game page, Start alone is enough). A second player can join by putting in a coin and pressing their Start.

The cabinet has a stick and four buttons:
  A  weak slash        B  strong slash        C  kick
  D  held with the stick, it moves your fighter around the arena

                      Player 1                    Player 2
  Stick               Arrow keys                  R F D G  (up, down, left, right)
  A B C D             Z X C V                     A S Q W
  Start / coin        1 / 5                       2 / 6

Xbox-style controllers: the first one connected is player 1, the second is player 2.
  Standard scheme (default):  D-pad or left stick moves; X = A, Y = B, A = C, B or RB = D
  Neo Geo pad scheme:         A = A, B = B, X = C, Y = D
  Start = Start, Back (View) = coin. Every key and button can be changed in the menu's Controls page.


THE MENU
--------
Back + Start on a controller, or Tab / Esc on the keyboard. The game pauses while it is open.

  Display   window / borderless / full screen, window size, monitor, picture shape (4:3, stretch,
            whole-number scale, widescreen), enhanced or original graphics, quality, screen filter
            (sharp, smooth, scanlines, CRT, CRT curved), frame pacing, graphics card, frame-rate counter
  Widescreen  where the health bars sit, and how each kind of full-screen picture (sword clash, super
            move, round won portrait and so on) is shown in widescreen, with a preview picture of each
            choice
  Audio     volume, mute
  Controls  control scheme, keys and controller buttons, sticks, dead zone, restore defaults
  Game      free play; language / region: Japan, USA, World or Korea (applies after a restart)
  Rules     the arcade operator's settings: difficulty, rounds to win (1 player and versus), continue,
            violence level (3 = red blood, the default here; 1 and 2 = a white splash, the arcade's
            default outside Japan), sound in the title demo, credit counter, one coin for versus
  Online    experimental: host a game, join one by address, input delay, leave
  System    resume, the arcade's own operator menu, restart, quit

Other keys: Alt+Enter or F11 window / full screen; F9 enhanced graphics on / off; F2 the arcade's Test
button; 9 the arcade's Service button.

Enhanced graphics redraw the 3D on your graphics card at your screen's resolution. Widescreen shows more
of the arena at the sides in fights; the title, the select screens and other flat screens stay 4:3. The
game's full-screen artwork is placed for widescreen "as drawn" by default: at its own size, moved out to
the side it was cut at, never stretched unless you choose that.


PLAYING ONLINE (EXPERIMENTAL)
-----------------------------
Two players, each on their own PC with their own copy. One hosts (player 1), the other joins (player 2).
The two PCs connect directly: there is no server or lobby.

1. Host: menu, Online, Host a game. The game restarts and shows a waiting screen with your address.
2. Joiner: Online, Address to join (the host's address), then Join a game.
3. The game starts from power on for both, with the host's settings.

On the same network, use the address on the host's waiting screen. Over the internet the host's router
must forward UDP port 7600 to the host's PC, or both players use a virtual-LAN tool (Tailscale, ZeroTier,
Radmin VPN). Both players need the same Language / region, the same ROM sets and the same version.
It has passed automated tests through simulated bad connections, but has not been played between two
real PCs yet.


YOUR FILES (in the install folder)
----------------------------------
  settings.ini    the menu's settings
  controls.ini    keys, controller buttons and schemes (the comments at its top explain it)
  nvram.bin       the arcade's own save memory: operator settings and records
  sams64.log      what happened in the last run (sams64.old.log is the run before)
  setup.log       what Setup did

To start completely fresh, delete settings.ini, controls.ini and nvram.bin while the game is closed.


IF SOMETHING GOES WRONG
-----------------------
Setup says a ROM file is missing or wrong:
  Setup names the file. Both sets must be complete, and hng64.zip must include the I/O board file
  tmp87ph40an.bin (older MAME sets don't have it).
The picture looks wrong:
  Press F9 to switch between Enhanced and Original graphics. If Original is right and Enhanced is not,
  update your graphics driver.
The game runs slowly:
  Set Quality to Auto or Performance (Display page).
No sound:
  Check Volume and Mute on the Audio page, and which device Windows is playing to.


KNOWN GAPS
----------
- The sound chip's echo effect is not reproduced.
- Not yet compared frame by frame with the arcade board; reports of anything that looks or sounds wrong
  are welcome.
- Online play is experimental and connects directly (no lobby).
- Setup is not code-signed. Windows only.


REPORTING A PROBLEM
-------------------
Please include sams64.log from the install folder (the run before it is sams64.old.log), and setup.log
if the problem was with installing. For an online problem, the log from both players helps.

The licenses of ReSho 64 and of the tools Setup uses are in the "licenses" folder. ReSho 64's source
is in files\source.

ReSho 64 is an unofficial fan project, not affiliated with or endorsed by SNK.
Samurai Shodown and Hyper Neo Geo 64 are trademarks of their owners.
