ReBuriki: an unofficial PC version of Buriki One (SNK, 1999)
=================================================================

ReBuriki does not include the game. You need your own legally obtained copies of two arcade ROM sets,
as MAME names them:

  buriki.zip   Buriki One: World Grapple Tournament '99 in Tokyo (rev. B)
  hng64.zip    the Hyper Neo Geo 64 system ROMs (the arcade board's startup and control programs)

Any MAME version's sets work as long as they are complete: Setup finds the files it needs by checksum,
whatever they are named. hng64.zip must hold the I/O board file (tmp87ph40an.bin), which MAME sets have
had for some years. No game data comes with this download.

INSTALLING
----------
1. Unzip this whole folder anywhere.
2. Run Setup.exe. Windows may say "Windows protected your PC", because Setup is not signed:
   choose "More info", then "Run anyway".
3. Choose your buriki.zip and your hng64.zip, and where to install. Then press Install.
   (If the two zips are next to Setup.exe or in your Downloads folder, Setup finds them itself.)
   Setup installs into a folder of its own: a new or empty one, or one that already holds the game.
   Installing over an older version keeps your settings and saves.

Setup checks the ROMs, then builds the game from them on your PC and adds shortcuts. This takes a minute
or two on a recent PC and longer on an older one. It needs about 500 MB of free disk space; the installed
game takes about 180 MB of that.
Everything it needs is in the "files" folder; nothing is downloaded. You can delete this folder afterwards.

If Setup stops with a message, it says what is wrong with the ROM set. For anything else, setup.log in
the install folder has the details.

PLAYING
-------
To start a game: insert a coin, then press Start. With "Free play" on (the menu's Game page), Start
alone is enough.
Buriki One plays differently from most fighting games: the buttons move your fighter and the stick
attacks. The game's own "How to play" screens show the moves for each fighter.

The game uses two buttons, which it calls L and R: in a fight they step left and step right, and held
together they raise your guard. On the cabinet the same two buttons also confirm on the game's own
screens, such as choosing your fighter. ReBuriki treats stepping, guarding and confirming as separate
controls, so a trigger doesn't pick a fighter and A doesn't step.

CONTROLLER (Xbox-style; the first controller is player 1, the second player 2)
----------
There are three ready-made control schemes (menu > Controls > Control scheme) and Custom, your own.

  Modern (the default): plays like a modern game
    Step left / right     left stick, or LT / RT
    Attack                right stick, or D-pad
    Guard                 LB, RB or X
  Classic: the stick attacks, as on the cabinet
    Step left / right     LT, LB / RT, RB
    Attack                either stick, or D-pad
    Guard                 X, or both triggers
  Buttons attack
    Step left / right     left stick, or LT / RT
    Attack                Y A X B (up, down, left, right), right stick or D-pad
    Guard                 LB or RB
  In every scheme
    On the game's screens either stick or the D-pad moves the cursor, A selects, B is the other button
    Start                 Start (Menu)
    Insert coin           Back (View)
    Menu                  Back + Start together

KEYBOARD (the same in every scheme)
--------
                          Player 1           Player 2
  Stick                   arrow keys         R F D G  (up, down, left, right)
  Step left / right       Z  X               A  S     (and Select / Other on the game's screens)
  Guard                   Space, or Z + X    A + S
  Buttons 3 and 4         C  V               Q  W     (spare)
  Start                   1                  2
  Insert coin             5                  6

  Tab / Esc          menu (quit from its System page)
  Alt+Enter, F11     window / full screen
  F9                 enhanced graphics on / off
  F2                 the arcade's Test button (operator menu: its other settings, tests, records)
  9                  the arcade's Service button

Every key and controller button can be changed in the menu's Controls page. "Show" switches between
its three groups: in a fight; the game's screens and the cabinet; sticks. Choose a control and press
Enter (A on a controller) to open its box: press a controller button to add it and again to take it
off (up to three), or press a key to make it the keyboard key. The same key or button can be on several
controls. Each stick can step left and right, attack, or be switched off.
Change anything about the controller and the scheme becomes Custom, starting from the scheme you were
on. Custom is remembered, so you can try another scheme and come back to it.

THE MENU
--------
Controller: press Back and Start together (on Xbox Series / One pads: View + Menu).
Keyboard: Tab or Esc.
The game pauses while the menu is open. Its picture is one of the game's ten fighting-style portraits,
a different one each time.
  Controller: D-pad or stick to move, A to choose, B to go back, LB / RB to switch pages, Start to close.
  Keyboard: arrows to move, Enter to choose, Esc to go back, Q / E to switch pages, Tab to close.
Pages:
  Display   window / borderless / exclusive full screen, window size, monitor,
            picture shape (arcade 4:3, stretch, whole-number, widescreen), where the health bars sit in
            widescreen, enhanced or original graphics, quality, screen filter (sharp / smooth /
            scanlines), frame pacing, graphics card, frame-rate counter
  Audio     volume, mute
  Controls  control scheme; change any key or button; what each stick does; dead zone; restore defaults
  Game      unlock Silber (on by default); free play; language / region: Japan (Japanese), USA or
            World (English), which applies after a restart
  Rules     the arcade operator's settings: difficulty, attack power and timer speed (1 player and
            versus), continue, replay, blood, move commands on screen, sound in the title demo.
            They apply from the next fight and are kept in the arcade's save memory.
  Online    experimental: host a game, join one by address, input delay, leave (see PLAYING ONLINE)
  System    resume, the arcade's operator menu, restart, quit

Silber, the final boss, is a hidden twelfth fighter ("Original Karate", at the bottom of the style
list). With "Unlock Silber" on he can be picked from the start. Turn it off to earn him the arcade's
way; what you have earned is kept either way.

Widescreen (Display > Picture shape): fights fill a 16:9 screen, up to 21:9, with more of the arena at
the sides. Menus and other flat screens stay 4:3. It needs Graphics set to Enhanced.
"Widescreen display" chooses where the health bars and the boxes at the top sit: where the arcade
put them, or out at the edges of the screen.

Settings are saved in settings.ini, keys and buttons in controls.ini, and the arcade board's own saved
settings and records in nvram.bin (all in the install folder).

PLAYING ONLINE (EXPERIMENTAL)
-----------------------------
This part is experimental. It has been tested thoroughly with two copies of the game on one PC through
simulated slow and unreliable connections, but not yet much between two real PCs over the internet.
It connects the two players' PCs directly: there is no server, lobby or matchmaking, so you arrange a
game with someone yourselves. Nothing here affects ordinary play.

Two players, each on their own PC with their own copy of ReBuriki. Each plays with their own
Player 1 keys or first controller. The host is player 1 in the game and the joiner player 2.

  Host:    menu > Online > Host a game. The game restarts and shows a waiting screen with your address.
  Joiner:  menu > Online > Address to join: type the host's address (Enter to start typing, Ctrl+V
           pastes). Then Join a game.

The game then starts from power on for both, with the host's settings (free play, the rules, Silber).
Put in a coin, press Start, and the second player pressing Start is "here comes a new challenger".
To stop, either player chooses Leave the online game. Both go back to ordinary play.

  Same home network: the joiner types the address shown on the host's waiting screen.
  Over the internet: the joiner needs the host's public address (search the web for "what is my IP"),
    and the host's router must forward UDP port 7600 to the host's PC. A virtual-LAN tool such as
    Tailscale, ZeroTier or Radmin VPN avoids the router setup: both players install it, and the joiner
    types the host's address in that tool.
  Windows Firewall asks the first time you host. Choose Allow.
  Both players need the same Language / region (Game page), game files and version of ReBuriki.
  Pausing pauses both players. The other one sees "Waiting for the other player".
  Input delay (the host's choice): 2 suits most connections. Raise it if the picture often jumps.
  With the frame-rate counter on (Display page), the ping is shown next to it.

If something goes wrong online, please report it with buriki.log from both players.

WHAT YOUR PC NEEDS
------------------
Windows 10 or 11 (64-bit) and a graphics card with Direct3D 11.

REMOVING THE GAME
-----------------
Windows Settings > Apps > ReBuriki (Buriki One PC port) > Uninstall, or run Uninstall.exe in the install folder.
It asks whether to keep your settings. Only the game's own files are removed.

REPORTING A PROBLEM
-------------------
Please include buriki.log from the install folder (the run before it is buriki.old.log), and setup.log
if the problem was with installing.

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

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