[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107765":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":12,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":34,"discoverSource":35},107765,"demons-souls-recomp","timboat\u002Fdemons-souls-recomp","timboat","Native Windows port of Demon's Souls (PS3, BLUS-30443) via ps3recomp static recompilation. Bring your own disc image; no game files included.",null,"Python",257,10,7,9,0,2,24,196,69.12,"Other",false,"main",true,[25,26,27,28,29],"demons-souls","pc-port","ps3","ps3recomp","recompilation","2026-11-23 05:55:48","2026-11-23 17:58:04","# Demon's Souls — native PC port (ps3recomp)\n\nA native Windows build of **Demon's Souls** (PS3, USA, **BLUS-30443**), made by statically\nrecompiling the game's PowerPC (PPU) and SPU code to C\u002FC++ with\n[ps3recomp](https:\u002F\u002Fgithub.com\u002Fsp00nznet\u002Fps3recomp), plus a PS3 runtime and a Direct3D 12 renderer.\nIt is not an emulator: the game's code runs as a normal x64 program.\n\n> **No game files are included.** This repo holds only the tools, patches and build scripts. You\n> need your own copy of the game, dumped from your own disc. The setup reads your disc image and\n> builds everything on your PC.\n\n## Status\n\n**The entire game seems playable.** It runs with sound and music at 60 fps (or 50 on a 100 Hz\nscreen, 30, uncapped, or any frame rate you pick), with keyboard + mouse or an Xbox controller. The game's movies play (title screen, intro,\nstory and endings; `set DES_MOVIES=0` skips them). The in-engine cutscenes are smooth at 60 fps and above too:\ntheir camera is blended between its 30 fps keys (`set DES_CUT_BLEND=0` for the original nearest-key camera).\n\n**Above 60 fps there are known bugs**, such as the sound drifting out of sync with the picture and the\ncharacter's run speed being off. 60 fps (or 50 on a 100 Hz screen) is the recommended setting; higher frame\nrates are still being worked on.\n\n**There is no online play yet.** Multiplayer will be added once the game is optimised.\n\n**Performance:** on high-end hardware the game is mostly smooth. Optimisations for lower-end PCs\n(fewer cores, older CPUs, Steam Deck) are happening now.\n\nI'm currently playing through the whole game to find and fix any spots that still run slower\nthan they should (stutters, frame drops in heavy scenes). Boletarian Palace, the heaviest area\ntested so far, is already smooth on a fast PC. Expect more performance fixes as the playthrough goes on; see\n[docs\u002FNOTES.md](docs\u002FNOTES.md) for the full development log (50 fixes and counting).\n\nIf you hit a stutter or a crash, please report it: see\n[Reporting stutters and crashes](#reporting-stutters-and-crashes). Every run is recorded, so all it\ntakes is pressing **F8** when it happens and running `REPORT.bat` afterwards.\n\n## What you need\n\n- **Windows 10\u002F11 x64** and a **Direct3D 12** GPU. AVX2 (Intel Haswell \u002F AMD Ryzen or newer) is used\n  when your CPU has it; on older CPUs BUILD.bat builds without it (a couple of fps slower in the\n  heaviest areas).\n- About **14 GB** free disk space (8 GB game files + build + tools).\n- **Your disc image** of Demon's Souls USA (BLUS-30443): a `.iso` (a Redump `.zip` works as is), or a\n  dumped disc folder with `PS3_GAME` in it. A Redump-style encrypted image also needs its\n  **disc key** (the `.dkey` file that comes with the dump). No `.dkey`? The key is public: it is the\n  \"Disc Key\" line on [Redump's page for this disc](http:\u002F\u002Fredump.org\u002Fdisc\u002F16199\u002F) (Demon's Souls, USA, BLUS-30443, version\n  01.00). SETUP opens that page for you when it needs the key.\n- **Nothing else to install.** SETUP downloads what it needs into the folder (`deps\\`), with no\n  installer and no administrator rights: a portable **Python** and **Git** when you have none,\n  **[RPCS3](https:\u002F\u002Frpcs3.net)** (used once to decrypt the game's `EBOOT.BIN`), and, without Visual\n  Studio, a portable compiler (**LLVM** + Microsoft's C runtime and Windows SDK, about 1.3 GB, fetched\n  by [xwin](https:\u002F\u002Fgithub.com\u002FJake-Shadle\u002Fxwin); Microsoft's license applies). The Python, Git, LLVM,\n  RPCS3 and xwin downloads are checked against pinned or published checksums. Already have Python 3.10+, Git, RPCS3\n  (`SETUP.bat --rpcs3 path\\to\\rpcs3.exe`) or **Visual Studio 2022** with *Desktop development with\n  C++* + **LLVM** 17 or newer? Then those are used instead. RPCS3 needs the Microsoft Visual C++\n  runtime, which most PCs already have; SETUP offers Microsoft's installer if yours does not. (Installed\n  Visual Studio later and want it used? Delete `deps\\.portable_compiler`.) Keep the folder's path plain:\n  no `[ ]` or `&` in it (the build tools cannot handle them; SETUP says so).\n\n**Linux \u002F Steam Deck:** a setup + play kit (an AppImage) builds the same port from your own disc\nimage on Linux and runs it through Proton. See [docs\u002FLINUX.md](docs\u002FLINUX.md).\n**It works on Linux:** set up and played on Ubuntu 24.04 (Intel i7-4770K + NVIDIA GTX 980). On that\n4-core CPU it is still choppier than on Windows (Linux performance work is under way). A Steam Deck is\nnot confirmed yet; please report how it goes.\n\n## Build it (one time)\n\nThe setup below has been tested on a clean Windows install (Windows Sandbox: no\nPython, Git, Visual Studio, RPCS3 or Visual C++ runtime) and on a normal gaming PC.\n\n1. Download the newest release: **[Releases](https:\u002F\u002Fgithub.com\u002Ftimboat\u002Fdemons-souls-recomp\u002Freleases\u002Flatest)** → `DemonsSoulsRecomp-\u003Cversion>.zip` (or the\n   green **Code** button → *Download ZIP*, or `git clone`), and unpack it somewhere with enough\n   space, for example `C:\\Games\\DemonsSouls`. Keep the path plain (no `[ ]` or `&`). There is no\n   ready-to-play download: the game is built on your PC from your own disc.\n2. Double-click **`DemonsSoulsLauncher.exe`** (it is in the release ZIP) and press **PLAY**. It sees\n   that the game is not built yet and offers to run `SETUP.bat`: answer **Yes**. (Or drag your disc\n   image onto `SETUP.bat`, or double-click `SETUP.bat`; same thing.)\n3. Answer SETUP's questions. Pressing **Enter** takes the suggested answer, which is right almost always:\n   - **your disc image**: drag the `.iso` \u002F `.zip` \u002F disc folder into the window (or paste its path) and\n     press Enter;\n   - **the disc key**, only for an encrypted image without a `.dkey` file: SETUP opens\n     [Redump's page](http:\u002F\u002Fredump.org\u002Fdisc\u002F16199\u002F) in your browser; copy the long code on its\n     \"Disc Key\" line and paste it with **Ctrl+V**;\n   - whether it may **download** RPCS3, a portable Python \u002F Git and the portable compiler (say yes);\n   - the **Microsoft Visual C++ runtime** for RPCS3, if your PC has none: Windows asks you to allow\n     Microsoft's installer;\n   - **xwin** asks you to accept Microsoft's license for the C runtime \u002F Windows SDK it downloads.\n4. Wait for **All done**, then press **PLAY** in the launcher.\n\nSETUP.bat then:\n\n| step | what happens | time* |\n|---|---|---|\n| 1 | extracts all game files from the image (and decrypts them) into `game\u002F` | 2–5 min |\n| 2 | decrypts `EBOOT.BIN` → `EBOOT.elf` with RPCS3 and checks it is the tested version | \u003C 1 min |\n| 3 | downloads ps3recomp at the tested commit and applies this port's runtime patch | \u003C 1 min |\n| 4 | recompiles the game: ~94,000 PPU functions + 12 SPU programs → C\u002FC++ in `port\u002F` | 2–4 min |\n| 5 | applies this port's edits to the recompiled code (`patches\u002Flifted-code.patch`) | seconds |\n| 6 | compiles everything with clang-cl into `port\u002Fbuild_opt\u002FDemonsSoulsRecomp.exe` (plus `DemonsSoulsLauncher.exe`, next to `PLAY.bat`) | 10–30 min |\n\n\\* on a fast 16-core PC; the first compile is the long part. The compile shows one progress line\n(`compiling 47\u002F322 (15%)`); the compiler's full output goes to `logs\\build_last.txt`. If anything fails, fix\nwhat it says and run SETUP.bat again: finished steps are skipped.\n\n## Updating\n\nPress **Check for updates** in the launcher: it asks GitHub, lists what is new and, if you say yes,\ndownloads it, puts it in the folder and rebuilds the game; the launcher then opens again. **No Git\nneeded:** a copy from a release ZIP (or the Code ZIP) gets the newest release (checked against the\nchecksum GitHub publishes for it; your game files, build, saves and settings are not touched), a\n`git clone` gets `git pull`. The launcher's status line shows which release you have.\nCopies from before release v2026.11.03.7 need this once by hand: download the newest\n[release](https:\u002F\u002Fgithub.com\u002Ftimboat\u002Fdemons-souls-recomp\u002Freleases\u002Flatest) ZIP and copy everything inside its folder over your old folder,\nreplacing files (`game\u002F`, `port\u002F`, `deps\u002F` and your saves are not in the ZIP, so they stay), then\npress Play (or run **`BUILD.bat`**). It re-applies\nthe patches that changed since your last setup and recompiles only the files they touch. If it\nsays so, run `SETUP.bat` instead: that also works, keeps the game files and skips what is done.\nIf you forget, Play notices that the folder was updated but not rebuilt and runs BUILD.bat first\n(an old build with new files can stay on a black screen).\nSetups made before 2026-11-03 could not take updates (the patches were applied once and never\nagain); the first `BUILD.bat` or `SETUP.bat` with this version brings them up to date.\n\n## Play\n\nDouble-click **`DemonsSoulsLauncher.exe`** (SETUP.bat \u002F BUILD.bat build it next to `PLAY.bat`) and\npress **PLAY**. The logos and first load take about a minute.\n\nThe launcher is one window for every option below: frame rate (Auto, 30, 50, 60, unlimited or any\nnumber, with a line saying how it will look on your screen), internal resolution, Normal \u002F PC Remaster\nmod \u002F your imported models, fullscreen, movies, god mode, frame-timing recording, texture dumping,\nkeys by letter and CPU core pinning. It remembers them in `launcher.ini`. Its buttons: **Check for\nupdates** (shows what is new on GitHub; on yes `git pull` + `BUILD.bat`, then it opens again), **Report a problem** (`REPORT.bat`), **Controls** and\n**Folders** (saves, logs, recordings, texture and model folders). If the game crashes it offers to\nmake the report. *Extra settings* takes any `NAME=value` switch from this README or from an issue\n(e.g. `LD_PSO_ASYNC=0`). `DemonsSoulsLauncher.exe --play` starts the game straight away with the\nsaved settings, for a desktop shortcut.\n\nThe launcher runs `PLAY.bat` with your choices. `PLAY.bat` on its own starts the game at 60 fps (50 fps\nautomatically on a ~100 Hz monitor, every frame shown exactly 2 refreshes), and the `set X=...` switches\nin this README work in front of it too. The separate `PLAY_30FPS.bat`, `PLAY_REMASTER.bat` etc. are gone:\nthose are all launcher options now.\n\n| launcher option | what it does |\n|---|---|\n| *Frame rate*: Auto \u002F 30 \u002F 50 \u002F 60 \u002F Unlimited \u002F Custom... | Auto = 60, or 50 on a ~100 Hz screen; 30 = the original; Unlimited = up to 240 fps, no vsync, game speed stays correct; Custom = **any frame rate you type in** (31–240) |\n| *Game*: Normal \u002F PC Remaster mod \u002F My models | your game as on the disc, with the *PC Remaster* mod installed, or with your imported models (see below) |\n| *Dump textures* | saves every texture the game draws, for texture packs (see below) |\n\nWithout the launcher (Linux, or `PLAY.bat` by hand) the same choices are switches: `DES_FPS=30|50|60|unlimited|31-240`,\n`DES_GAME=game_remaster` (PC Remaster) or `DES_GAME=game_mod` (your models), `LD_TEX_DUMP=1` (dump textures).\nIn the launcher, any other folder made by `tools\\flver_tool.py import --mod \u003Cfolder>` goes in *Extra settings*\nas `DES_GAME=\u003Cfolder>`.\n\n**Custom frame rate.** In the launcher pick *Custom...* and type a\nnumber, e.g. 45, 72, 120 or 144. The game\nruns at real speed at any of them. If your monitor's refresh rate is a whole multiple of the number\n(72 or 144 on a 144 Hz screen, 40 or 120 on 120 Hz), every frame is shown for the same number of\nrefreshes and motion is perfectly even. Otherwise vsync is turned off, which looks fine on a\nG-Sync \u002F FreeSync screen but can tear on others. The launcher says which one you got. You can also\n`set DES_FPS=\u003Cnumber>` before running `PLAY.bat`.\n\n**Higher resolution.** *Resolution* in the launcher, or `set DES_RES_SCALE=2` (up to 4) before running\n`PLAY.bat`, renders the game at\n2x its 1280x720 (2560x1440), much sharper, at no cost on the CPU side; a mid-range GPU handles 2x easily.\nThe window and borderless fullscreen show the picture at the window's own size, at the game's 16:9\nwith black bars on other screens (`set LD_SWAP_RESIZE=0` = the old stretched picture).\n*Sharper shadows too* (`set LD_RES_SCALE_SHADOW=1`) also renders the 2048x2048 shadow map at the\nhigher resolution.\n\n**Controls.** An Xbox (XInput) controller works when plugged in (A = Cross, B = Circle, X = Square,\nY = Triangle, LB\u002FRB = L1\u002FR1, LT\u002FRT = L2\u002FR2, Back = Select). A DualShock\u002FDualSense needs Steam Input or\nDS4Windows. Keyboard + mouse work too, also with a controller connected (the mouse takes over the\ncamera once you press a key or mouse button, and the controller takes it back when you use it):\n\n| | |\n|---|---|\n| WASD | move |\n| mouse (or IJKL) | camera (click into the game to capture the mouse) |\n| left mouse | attack (R1) |\n| Shift | strong attack (R2) |\n| right mouse | block (L1) |\n| Ctrl | parry (L2) |\n| Space | roll \u002F dash \u002F back (Circle) |\n| E | interact \u002F confirm (Cross) |\n| F | two-hand (Triangle) |\n| R | use item (Square) |\n| Tab \u002F middle mouse | lock on (R3) |\n| arrows | d-pad (switch items) |\n| Enter \u002F Backspace | Start \u002F Select |\n| Esc or F1 | release the mouse (F1 also captures it again; leaving the window or using a controller also releases it). Esc no longer closes the game: use the X or Alt+F4 |\n| Alt+Enter \u002F F11 | borderless fullscreen on\u002Foff (`set DES_FULLSCREEN=1` starts in it) |\n| F9 | god mode on\u002Foff (no death, HP\u002FMP\u002Fstamina stay full) |\n\n**In menus** (title screen, Start menu, inventory, shops, level-up, ...) the mouse is a pointer: the Windows arrow\nappears, **moving it over an item selects it** (with the game's own cursor sound and help text), **left click on an\nitem confirms it** (on another item it selects it first, on empty space it does nothing), **right click = back**,\nthe **wheel** moves the cursor up and down, and the mouse's side buttons or **PageUp \u002F PageDown** are L1 \u002F R1. Keys\nand the controller take over as soon as you use them; the mouse only takes over again once it moves. When the menu\ncloses the mouse goes back to the camera. Pointing works in the title, profile select, Start menu tabs, inventory,\nequipment, item commands, shops, talk choices, level-up, the archstone list, the System menu and yes \u002F no boxes; the\nOptions rows still use keys \u002F wheel (a click there confirms as before). `set DES_POINT=0` turns pointing off (the\nmouse then only clicks \u002F scrolls in menus), `set PAD_MENU_MOUSE=0` turns the mouse in menus off altogether. Outside\nmenus the mouse buttons attack and block as before.\n\n**Button icons follow what you play with:** while the keyboard \u002F mouse is what you used last, the game's button\nicons (key guides, \"Pick up\" prompts, the HUD's equipment boxes, the Start menu tabs) show the keys and mouse\nbuttons instead of the PS3 buttons; touch the controller and they are PS3 buttons again. BUILD.bat draws them\nonce from your own copy of the game into `textures\\kbm` (the letters are the game's own font). `set LD_TEX_KBM=0`\nalways shows the PS3 buttons, `set LD_TEX_KBM=1` always the keyboard ones. The title screen says \"PRESS ENTER\nBUTTON\" instead of \"PRESS START BUTTON\" the same way.\n\nThe mouse turns the camera directly (no stick dead zone or speed limit) and follows the game's invert-camera\noptions. `set PAD_MOUSE_LOOK_SENS=0.0012` sets the sensitivity (radians per mouse count), `set PAD_MOUSE_LOOK=0`\ngoes back to the old stick-style mouse.\n\nKeys go by position, not by letter: on an AZERTY or QWERTZ keyboard you move with the keys where\nWASD would be (ZQSD on AZERTY), and the others follow the same way. `set PAD_KEYS_BY_LETTER=1` = by letter.\n\nAt *Create Profile* a text box opens for the character name. Saves go to `gamedata\u002F`. Each run\nwrites logs to `logs\u002F` (they grow by ~600 MB an hour; the previous run is kept as `*_prev.txt`).\n\n## Reporting stutters and crashes\n\nThe game records frame timing while you play (*Record frame timing (F8)* in the launcher, on by default) (about 25 MB an hour, no visible cost; the newest\n10 sessions are kept in `perf\\`). The window title shows `[RECORDING - F8 = stutter, N marked]`.\n\n1. **Press F8** in the game right after you see a stutter, hitch or slowdown. Each press puts a mark\n   in the recording at that moment, so the exact frames can be found later. Press it as often as you\n   like.\n2. **After you quit** (or right after a crash), press **Report a problem** in the launcher (or\n   double-click **`REPORT.bat`**). It packs the last\n   session into one zip, shows it in Explorer and opens the GitHub *New issue* page.\n3. **Open an issue** with the *Stutter \u002F slowdown* or *Crash \u002F bug* template, **drag the zip into\n   it**, and say where you were in the game and what you saw at each F8 press.\n\nWhat the zip contains (nothing else, and your Windows user name is removed from all of it):\n\n| file | what it is |\n|---|---|\n| `report.txt` | the summary from `tools\u002Fperf_report.py`: frame pacing, every hitch with its likely cause (a slow game step, shader compile, slow file read, the renderer, the GPU), and what happened just before each F8 mark |\n| `perf.txt` | the recording itself, so we can dig into the exact frames (trimmed to the minutes around your F8 marks if the session is too long for GitHub's 25 MB limit) |\n| `system.txt` | Windows version, CPU, RAM, GPU + driver, monitor resolution \u002F refresh, the frame-rate setting and which version of this port you built |\n| `log_tail.txt` | the last 400 lines of the game's log, from the same session (shows what it was doing if it crashed) |\n\nCurious yourself? `.venv\\Scripts\\python tools\\perf_report.py` prints the same summary for your newest\nrecording. To play without recording, untick *Record frame timing (F8)* in the launcher (or `set DES_RECORD=0`\nbefore running `PLAY.bat`).\n\n## Optional: PC Remaster mod\n\nThe *Demon's Souls PC Remaster* mod by fromsoftserve (Nexus Mods, Demon's Souls mod 106)\n(made for RPCS3) works with this port. Download the mod's zip yourself, then:\n\n```bat\n.venv\\Scripts\\python tools\\install_remaster.py \"path\\to\\the mod.zip\" --apply\n```\n\nThat builds `game_remaster\u002F` as a hard-linked copy of `game\u002F` (no extra disk space) with the mod's\nfiles swapped in. Your normal `game\u002F` is not changed. Play it with *Game: PC Remaster mod* in the launcher.\n\n## Optional: texture packs\n\nTextures can be replaced without unpacking any game files, at any resolution:\n\n1. Tick *Dump textures* in the launcher and play through the part you want to change. Every texture the game\n   draws is saved once to `textures\\dump\\` as `\u003CKEY>_\u003Cwidth>x\u003Cheight>_\u003Cformat>.png`, exactly as it\n   looks in game. The 16-character KEY comes from the texture's contents, so it is the same on every PC.\n2. Edit a PNG (or make a bigger one) and put it in `textures\\replace\\` with a name that starts with\n   the same KEY, e.g. `0123456789ABCDEF_armour_4k.png`. Sub folders are fine.\n3. Play as usual (untick *Dump textures*). Replacements load in the background; `.dds` files (DXT1\u002F3\u002F5, BC7, BC4 or 32-bit\n   RGBA, with or without mipmaps) load faster and use less video memory than PNG.\n\nDetails and settings: `textures\\README.txt`. Cubemaps (reflections) are not covered; for models see\nthe next section. Packs are made from the game's art -- share them only where that is allowed.\n\n## Optional: model import\u002Fexport\n\nArmour, weapons, characters, objects and map pieces can be exported to glTF, edited in Blender (or\nanything that reads and writes glTF 2.0) and imported back:\n\n```\n.venv\\Scripts\\python tools\\flver_tool.py export game\\PS3_GAME\\USRDIR\\PARTS\\bd_f_5010.partsbnd.dcx\n  -> models\\BD_F_5010\\BD_F_5010.gltf (+ .bin and the textures as PNG)\n  ... Blender: File > Import > glTF 2.0, edit, File > Export > glTF 2.0 (.glb is fine) ...\n.venv\\Scripts\\python tools\\flver_tool.py import models\\BD_F_5010\\edited.glb game\\PS3_GAME\\USRDIR\\PARTS\\bd_f_5010.partsbnd.dcx\n```\n\nImport writes `game_mod\\`, a copy of `game\\` made of hard links (no extra disk space); `game\\` is\nnever changed. Play it with *Game: My models* in the launcher; delete `game_mod\\` to undo everything. Shape, UVs,\nvertex colours and bone weights come from your file; materials, textures, skeleton, collision and\nanimations stay the game's (change textures with texture packs). Edit the `_l` low-detail copy too,\nor the old shape shows from far away. Which file holds what and the rules: `models\\README.txt`.\n`flver_tool.py selftest` checks every model in your game reads and writes back byte for byte.\nExported models are the game's art -- share them only where that is allowed.\n\n## Repo layout\n\n```\nSETUP.bat \u002F BUILD.bat        one-time setup \u002F rebuild after code changes\nDemonsSoulsLauncher.exe      the settings window (built by SETUP\u002FBUILD from project\u002Flauncher\u002F)\nPLAY.bat                     starts the game; the launcher runs it (environment switches documented inside)\nREPORT.bat                   packs the last session into a zip for a GitHub issue\nsetup\u002Fsetup.py, build.py     the setup pipeline and the toolchain finder + build\nproject\u002F                     CMake project: CMakeLists.txt, main.cpp, stubs.cpp\npatches\u002Fps3recomp-local.patch   this port's changes to the ps3recomp runtime\u002Frenderer (applied to\n                                ps3recomp @ 4e8f3ca, v0.18.0)\npatches\u002Flifted-code.patch    this port's edits to the recompiled game code (frame pacing, 60 fps\n                             step, god mode, test hooks)\ntools\u002F                       disc extraction, UDF names, SPURS job lifting, perf report + issue zip, mod installer,\n                             model export\u002Fimport (flver_tool.py, souls_formats.py)\ndocs\u002FNOTES.md                development log: every fix, why, and how it was measured\nlinux\u002F, docs\u002FLINUX.md        Linux \u002F Steam Deck kit: setup.sh, play.sh, the AppImage (linux\u002Fappimage)\nsetup\u002Fclang-cl-xwin.cmake    the cross toolchain Linux builds with (clang-cl + an SDK fetched by xwin)\n```\n\nEverything SETUP.bat produces (`game\u002F`, `port\u002F`, `deps\u002F`, `.venv\u002F`, saves, logs) is in `.gitignore`.\n**Never commit or share those**: they are the game.\n\n## Troubleshooting\n\n- **No online play yet.** Demon's Souls' servers closed in 2018; multiplayer will be added once the game is\n  optimised. For now the game goes straight into offline play\n  without the \"Cannot connect (009)\" and \"Offline Mode\" boxes (`set DES_AUTO_OFFLINE=0` shows them again).\n\n- **\"RPCS3 did not write EBOOT.elf\"**: close any open RPCS3 window and run SETUP.bat again, or decrypt\n  by hand: RPCS3 → *Utilities* → *Decrypt PS3 Binaries* → `game\\PS3_GAME\\USRDIR\\EBOOT.BIN`.\n  If RPCS3 itself complains, install the PS3 firmware in RPCS3 first (*File → Install Firmware*).\n  SETUP tries three times and shows RPCS3's exit code and log. In **Windows Sandbox or a virtual\n  machine** RPCS3 can crash inside the virtual GPU's driver before it decrypts anything (it starts\n  Vulkan even just to decrypt, and as administrator Vulkan cannot be told to skip the driver): decrypt\n  `EBOOT.BIN` on another PC with RPCS3 and copy the `EBOOT.elf` into `game\\PS3_GAME\\USRDIR\\`, then\n  run SETUP.bat again.\n- **\"EBOOT.BIN is not the tested one\"**: only the USA disc (BLUS-30443, version as on the disc) is\n  supported. Other regions or updated EBOOTs need different patches.\n- **Build tools not found**: run SETUP.bat or BUILD.bat again and let it download the portable\n  compiler (answer yes). Or install Visual Studio 2022 Build Tools with *Desktop development with C++*\n  and LLVM (`winget install LLVM.LLVM`), or set `LLVM_DIR` to an LLVM folder, then run BUILD.bat.\n- **The setup window seems stuck**: the compile shows one progress line and can sit on one file for\n  a minute; its full output is in `logs\\build_last.txt`. If nothing moves for many minutes, press\n  Enter once in the window.\n- **The game window stays black \u002F closes**: look at the end of `logs\\last_run_err.txt`.\n- **Uneven frames at 100+ fps in busy areas** (e.g. the Valley of Defilement swamp): the game's own\n  frame work can need more than 10 ms there; the 50 fps mode is even everywhere. On CPUs with two\n  core complexes the game pins itself to the one with the biggest L3 (docs\u002FNOTES.md fix 65);\n  `set DES_AFFINITY=0` turns that off.\n- **A character or object is black, or missing, for a moment the first time you see it**: its shaders\n  are being compiled in the background (instead of freezing the game; docs\u002FNOTES.md fix 62). It only\n  happens the first time a shader is ever seen. `set LD_PSO_ASYNC=0` before PLAY.bat = wait instead.\n- **\"needs AVX2\"** message box: this build was made on a PC with AVX2 and yours has none. Run\n  BUILD.bat on this PC (it picks the right setting), or `set DS_AVX2=0` before BUILD.bat on the other one.\n\n## Credits and license\n\n- [ps3recomp](https:\u002F\u002Fgithub.com\u002Fsp00nznet\u002Fps3recomp) by Ned Heller \u002F sp00nznet (MIT): the recompiler\n  and runtime this port is built on.\n- [RPCS3](https:\u002F\u002Frpcs3.net): used to decrypt the EBOOT, and as the reference for how the PS3 behaves.\n- The *PC Remaster* mod is by fromsoftserve.\n\nThis repo's own code and patches are under the MIT license (see [LICENSE](LICENSE)). Demon's Souls is\n© Sony Interactive Entertainment \u002F FromSoftware. This project is not affiliated with or endorsed by\nthem, and contains none of their files. Buy the game and dump your own disc.\n","这是一个将PS3版《恶魔之魂》（美版BLUS-30443）通过静态重编译技术移植到Windows平台的原生PC运行方案，不依赖模拟器。项目基于ps3recomp工具链，将原始PPU\u002FSPU代码转换为x64 C\u002FC++，结合自研PS3运行时与Direct3D 12渲染器，实现键盘鼠标及手柄支持、60 FPS稳定运行、完整音画同步及内建过场动画插值。需用户自行提供正版游戏光盘镜像（ISO或文件夹格式），无内置游戏资源。适用于希望在现代Windows PC上以原生性能体验该经典动作RPG单机内容的技术向玩家与复古游戏爱好者。","2026-11-24 04:32:52","CREATED_QUERY"]