Skip to content

About

BBC (blackbebecomp): a from-scratch recompilation-style translation layer for running an Xbox Series X title on a Windows PC, with its launcher BBL (blackbebelauncher). Early work in progress: nothing works yet. No game files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

blackbebecomp (BBC)

Nothing playable yet. This is an early, broken work in progress. You cannot play anything with it. If you came here hoping to run a game, there is nothing for you here today.

What this is

blackbebecomp, BBC for short, is a recompilation-style translation layer written from scratch in Rust. Its goal is to run one Xbox Series X title natively on a Windows PC through Direct3D 12: it loads the title's own executable, stands in for the console's system libraries, and translates the title's console GPU shader code into shaders a PC graphics card can run.

blackbebelauncher, BBL for short, is the launcher: the small program you start, which loads the title's executable and hands it to BBC. In this tree the launcher still builds under the name blackbebe.exe (with blackbebe_core.dll beside it); it will be renamed.

No game is named here and no game files are in this repository.

Honest status

It is still not playable. You cannot play anything with it.

What it does today:

  • Loads the title's executable and runs it from its entry point into its render loop.
  • Start screens, menus, the intro video, the loading screen and the title's own interface text draw.
  • A picture of the 3D scene now reaches the screen, but it is badly wrong (see below). The first lit world geometry (part of one building) now shows; most of the scene is still black.
  • Saving works: the title's own autosaves and settings are written and read back.
  • Keyboard input as a virtual controller (off by default, see below).

What does not work:

  • The 3D picture is broken. Most of the scene's geometry and shading is missing, lighting is blocky because the depth buffer is mostly unwritten (indirect draws are switched off after a graphics-device loss), and brightness is wrong.
  • About 22 % of the title's shader pipelines do not translate yet (about 22,070 of 28,139 do). Every draw or compute job whose shader does not translate, or whose resources cannot be bound, is skipped. A translated shader is not yet a verified one.
  • It is slow: about 10-17 frames per second in the scene in the latest measured runs. Descriptor tables are now kept in step on a worker thread; reading the title's memory in place on the card works but is off by default.
  • It needs a lot of memory while the world loads (about 9-11 GB for the game process); that is being cut.
  • No ray tracing yet (a builder on the PC's own ray tracing exists but is off). Audio is partial.
  • It can lose the graphics device or hang.
  • It has only been run on one PC with one NVIDIA card. Nothing else is tested.

There are no releases, and there is no date for when any of this will work.

What is in the tree

Path What it is
apps/blackbebe The launcher (BBL) and the core library it loads
crates/bb-pe, crates/bb-loader Reading and mapping the title's executable
crates/bb-xmem The console's memory library on Windows
crates/bb-d3d12 The console's Direct3D 12 interface on PC Direct3D 12
crates/bb-shader Decoder for the console's RDNA 2 shader machine code and its translation to HLSL
crates/bb-dstorage The console's storage interface
crates/bb-acp The console's audio interface

The source comments were removed from this public copy because they referred to licensed material. They will come back rewritten.

What you would need (if it worked)

  • Windows 11 and a Direct3D 12 graphics card with shader model 6.6 and mesh shaders.
  • Rust and the Windows SDK (its dxc shader compiler).
  • Your own legally obtained copy of the title. Nothing from it is included here.
  • Two platform DLLs from your own SDK installation, xg_xs.dll and BCPack.dll (set BLACKBEBE_XG_DLL and BLACKBEBE_BCPACK_DLL to where they are). They are not included here and will not be.

Build with cargo build --release, then run blackbebe.exe <path to the title's executable>. Expect a black screen.

Keyboard controls

The title expects an Xbox controller. Set BLACKBEBE_PAD_KEYS=1 to expose a virtual GameInput gamepad driven by the keyboard: arrows for the D-pad, WASD for the left stick, Enter/Space for A, Escape/Backspace for B, X/Y keys for X/Y, Q/E for the shoulders, Shift/Ctrl for the triggers, Tab for Menu and Z for View. Set it to 0 to disable. BLACKBEBE_PAD=A@2.5,B@5 still works as a scripted button schedule instead.

Closing the game window

The launcher creates the game window hidden by default; set BLACKBEBE_WINDOW=1 to show it. Closing the visible game window with the X button, Alt+F4 or through system shutdown ends the host process and releases the title's memory. A plain WM_CLOSE that did not come from one of those is logged and left to the title, so it does not end the process.

Looking inside a frame

These are for finding out why the picture is wrong; none of them makes it right.

  • Frame notes: on selected frames every draw, compute job and texture copy is written to a text file, made or skipped, with what it read and wrote, plus sampled pixel values of the textures involved (BLACKBEBE_FRAME_NOTES, BLACKBEBE_PROBE, folder BLACKBEBE_RUNS_DIR).
  • BLACKBEBE_PIX=1 loads the capture library of PIX on Windows, if you have it installed. It saves one frame as a .wpix file shortly after a scene starts, and another whenever you press F9. The game freezes for a while each time.

Thanks

Keyboard controls and the first window-close handling were contributed by @aidenhrld (pull request 1). Bounds checks in the executable reader and launcher start-up error reporting with its tests were contributed by @NoobDeveloper2021 (pull requests 2 and 3). The audio converter's start-frame fix, audio client clean-up and separate shader-cache temporary files are by @NoobDeveloper2021 (pull requests 9, 14 and 15); the plain-draw start-vertex fix is by @User139391 (pull request 11).

License

GPL-3.0-only (GNU General Public License, version 3). See LICENSE. Earlier snapshots and the first outside contributions were under the MIT license; see NOTICE.

About

BBC (blackbebecomp): a from-scratch recompilation-style translation layer for running an Xbox Series X title on a Windows PC, with its launcher BBL (blackbebelauncher). Early work in progress: nothing works yet. No game files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages