bbhost for Linux, build bbhost-linux-v0.2.35
==================================

bbhost runs Bloodborne on PC: the game's own 1.09 executable, its calls into
the PS4's system libraries answered by bbhost and its graphics recompiled for
Vulkan. Free software under the GNU GPL, version 3 or later (LICENSE), with
an additional permission to combine it with GPU vendors' upscaling and frame
generation runtimes (LICENSE-EXCEPTION); the source is at
https://github.com/droogie/bbhost.

You need
  - x86-64 Linux with glibc 2.38 or newer (Ubuntu 24.04, Linux Mint 22, Debian 13,
    Fedora 39 or anything newer; Arch; a current SteamOS). Check with: ldd --version
  - A Vulkan 1.3 GPU driver and the Vulkan loader. Check with: vulkaninfo --summary
  - These system libraries (every desktop has most of them already):
        libz.so.1 libm.so.6 libcurl.so.4 libvulkan.so.1 libc.so.6 ld-linux-x86-64.so.2 
    Packages that provide them:
        Ubuntu / Debian / Mint : libvulkan1 mesa-vulkan-drivers libcurl4t64 zlib1g
        Fedora                 : vulkan-loader mesa-vulkan-drivers libcurl zlib
        Arch / SteamOS         : vulkan-icd-loader vulkan-radeon|vulkan-intel|nvidia-utils curl zlib
    NVIDIA: the proprietary driver brings its own Vulkan driver.
  - X11 or Wayland, and PulseAudio, PipeWire or ALSA for sound (SDL3 is built
    in and uses what it finds).
  - The eboot.bin of the game's 1.09 update, decrypted to an ELF (SHA-256
    941f887a562aae054fac35af8cc8f27cf075f3d4cc2e029fb5ae2a663aaa5ae7; bbhost
    stops at start and says why when it is another version), and the game
    dump with the 1.09 update's files copied over it: the CUSA00900 folder
    that contains dvdroot_ps4, whose sce_sys/param.sfo says APP_VER 01.09
    (or the update kept beside it in CUSA00900-UPDATE, the way shadPS4 keeps
    a game library). Neither is in this package.

Built static: libstdc++ (), SDL3, ffmpeg (movie decoders only),
SPIRV-Tools.

libdxcompiler.so beside it is the DirectX Shader Compiler v1.9.2602, Microsoft's
release unmodified (https://github.com/microsoft/DirectXShaderCompiler,
licences in licenses/dxc): the HLSL shader path, on by default, compiles with
it, and it loads the system's libstdc++.so.6 (GCC 11 or newer). The game's
shaders are compiled in the background after a start's own shader builds (on
an integrated GPU such as the Steam Deck's, only while the title and loading
screens are up), and the translator's own are drawn until then; the setup
window's Shaders tab compiles them all at once (Compile shaders now), and its
Shaders setting picks Lifted to keep the translator's own. Without it that
path keeps every shader as it was; nothing else uses it.

Upscaling
  Graphics > Upscaling offers TAA, bbhost's own temporal anti-aliasing, on any
  GPU, and these, each through files beside bbhost under its own licence;
  bbhost's licence permits combining bbhost with them (LICENSE-EXCEPTION).

  FSR 3, AMD's, on any GPU: its quality from Performance to Native AA, the
  same FSR 3.1.6 as on Windows.
    - libbbhost_fidelityfx_vk.so: AMD FidelityFX's API, its Vulkan backend
      and FSR 3, built by bbhost from AMD's FidelityFX SDK v2.4.0 source
      (https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK), MIT,
      Copyright (C) Advanced Micro Devices, Inc., with bbhost's portability
      files (MIT); licences in licenses/fidelityfx. bbhost is not sponsored
      or endorsed by AMD.

  DLSS, on an NVIDIA RTX card with NVIDIA's own driver, a recent one: its
  quality from Performance to DLAA, and its model (K, J, L or M).
    - libnvidia-ngx-dlss.so.310.9.16:
      NVIDIA DLSS, Copyright (C) NVIDIA Corporation, from the DLSS SDK
      (https://github.com/NVIDIA/DLSS), unmodified, for NVIDIA RTX graphics
      cards only; licence in licenses/dlss. bbhost is not sponsored or
      endorsed by NVIDIA.
    - libbbhost_ngx_bridge.so: bbhost's NGX bridge (MIT licence, in
      licenses/ngx_bridge), which bbhost calls DLSS through; it contains
      NVIDIA's NGX SDK library, under NVIDIA's licence too. It implements the
      Upscaler Bridge API by Numity1504 (MIT, licenses/upscaler_bridge).

  Where one cannot run it is not offered, and the log's upscaler: lines say
  why. FSR 4 and frame generation run on Windows only.

Setup
  Untar this folder somewhere of its own, for example ~/Games/bbhost, and run
  ./run-bbhost.sh from a terminal there. The first time, the setup window
  opens: pick the game folder and the decrypted eboot with the Browse buttons
  (each turns green when it is right), then Play. ./run-bbhost.sh --setup
  opens it again.

  The settings are kept in ~/.local/share/bbhost/bbhost.toml, which every
  copy of bbhost reads, so a new download or an update needs nothing set
  again. The F10 settings and your account sign-in are kept beside it, saves
  and caches in ~/.local/share/bbhost/data. (Older versions kept the settings
  in ~/.config/bbhost; bbhost moves them as it starts, and the setup window
  says what moved.)
  bbhost.example.toml lists every setting.

Run
  ./run-bbhost.sh          (the log goes to logs/ and the terminal)
  The first visit to an area stutters for a moment while its graphics are
  prepared for your GPU; later visits do not. F10 in the game window opens
  the PC settings: resolution, window mode, V-Sync, frame cap, mouse, key
  bindings and your account.

Online
  bbhost plays online on the community server, https://thehuntersdream.com,
  with other bbhost players (not with PS4s). The game stays offline until this
  PC is linked to an account, and the account's name is your name online.
  Link it once, in the setup window's Account section or with F10 > ACCOUNT
  at the title screen:
    - Log in with Discord (Link with Discord in F10): a code appears and your
      browser opens https://thehuntersdream.com/link. Sign in there with
      Discord, check that the page names this PC, and approve.
    - Create account on this PC: type a name (3 to 16 letters, digits, _ or
      -). A recovery code appears once. Write it down: it is the only way to
      get the account back on another PC or after reinstalling (Recover
      account takes the name and that code).
  Then choose Play Online at the title.

  Co-op: the host rings the Beckoning Bell and the helper the Small Resonant
  Bell, in the same area. Invasions: the Sinister Resonant Bell. The website
  has the live map of deaths and messages, the leaderboards and your account
  page (Public profile puts your name on them).

  Other players reach you on UDP port 9307: a firewall on this PC must let it
  in. If summons keep failing with one person, forwarding that port to this
  PC on your router often fixes it. Two PCs in one house: set p2p_addr under
  [online] in ~/.local/share/bbhost/bbhost.toml to each PC's local address.

Steam Deck
  The release's bbhost-steamdeck tarball is this package with the Deck's
  settings (its screen's 1280x800, full screen, 30 fps) and STEAMDECK.md,
  the steps for adding it to Steam and playing in Game Mode.

Plugins
  plugins/ holds the official ones, signed by the bbhost release key
  (the .sig beside each). Turn them on and set them up in the setup
  window's Plugins tab (bbhost --setup), which can also fetch the latest
  official plugins; in the game, F9 opens the plugin menu (start the boss
  rush there). Or in the per-user bbhost.toml:
      [plugins]
      randomizer = true    # every pickup and shop shuffled from a seed
      boss_rush = true     # the game's bosses back to back, timed
      mutators = true      # speed, bullet time, one-hit, chaos and more
      quake = true         # first person with Quake 3's movement and guns
      lohit = true         # the map's collision drawn in place of the map
      ps1 = true           # the 3D drawn as the first PlayStation drew it
      iso = true           # an isometric camera, the walls in its way cut away
      hunter_cam = true    # over the shoulder or first person
      debug_menu = true    # the developers' debug menu: ` opens it
  Each one's settings go in a section of its own name ([randomizer],
  [boss_rush], [mutators], [quake], [lohit], [ps1], [iso], [hunter_cam]); docs/plugins.md in the repository lists them.
  Use the boss rush on a save of its own. Cheating against other players
  with the debug menu gets an account banned; trying it out online with
  friends is fine.

Reporting a problem
  Send the log of that session from logs/ (privately: it contains your
  internet address), with what happened, when, your account name and your
  GPU. If the game crashed, the log ends with a block starting "SIGSEGV pc="
  with the registers and the frames; the release's bbhost-linux-v0.2.35.debug symbolizes
  it.

  A wrong picture (wrong colours, a green or black screen, missing parts):
  press F12 in the game while it shows. bbhost writes that frame, the images
  the game drew it from and its list of draws into a folder of its own in
  logs/ (logs/f12-<date>-<time>; the log names it). Pack that folder
  (tar czf f12.tar.gz logs/f12-<date>-<time>) and send it with the log.
  BBHOST_F12_PNG=1 ./run-bbhost.sh writes PNG files instead of PPM (any
  image viewer opens them, a fifth of the size); BBHOST_F12_TEXTURES=1 adds
  every texture the frame used (the game pauses while it writes them).
