[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109188":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":13,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":28,"discoverSource":29},109188,"folklore-decomp","Mava-b\u002Ffolklore-decomp","Mava-b","Folklore PS3 Decomp with AI",null,"C",100,1,2,5,0,8,46,53.5,"Other",false,"main",true,[],"2026-11-17 18:00:34","2026-11-23 00:50:25","# Folklore (PS3) — native PC recompilation\n\nIf you like this feel free to buy me a coffee :) https:\u002F\u002Fko-fi.com\u002Fmavab\n\nFolklore (Game Republic \u002F SCE, 2007) statically recompiled from its PS3\nexecutable to native x86-64 Windows code with\n[ps3recomp](https:\u002F\u002Fgithub.com\u002Fsp00nznet\u002Fps3recomp). There is no emulator: the\ngame's PowerPC and SPU code is translated to C++ and runs on a runtime that\nstands in for the PS3's OS, with Direct3D 12 for graphics.\n\n**This repository contains no game code and no Sony code.** You build the game\nyourself from **your own disc**; setup does the translation on your PC. No PS3\nfirmware is needed: the SPU job system the game runs on (SPURS) is\nreimplemented here ([`folklore\u002Fdocs\u002FSPURS.md`](folklore\u002Fdocs\u002FSPURS.md)).\n\n**Status:** playable on the author's PC (Windows 11, Ryzen 7 7800X3D): it boots,\ndoes the first-boot install, and plays, including capturing Folks with\nthe original motion controls. Expect rough edges.\n[`folklore\u002Fdocs\u002FSTATUS.md`](folklore\u002Fdocs\u002FSTATUS.md) is the full engineering\nlog.\n\n### New in v0.62: smoother play and a tidier ultrawide HUD\n\n- **No more quarter-second freezes in fights**: a hold-up between the game\n  and the renderer, every few seconds in heavy combat, is gone.\n- **Clean fade-in after Load Game**: no more half-drawn frames (a black\n  screen with only the HUD, flickering pieces) while the new area's shaders\n  are built; the loading screen stays up until the area is ready.\n- **Ultrawide HUD**: speech bubbles keep the game's proportions beside the\n  character speaking; place names, the item pick-up box and the boss capture\n  bar stay in one piece; the Search prompt, the player-select arrows and the\n  capture bonus sparkles stay where they belong.\n- **Auto-capture** now finishes the boss captures where you swing the\n  controller left and right.\n\n### v0.6: save slots\n\nThe launcher's new **Saves** page lets you keep as many saves as you like and\nchoose which one the game plays before you press Play. Each slot shows the\npicture of the area it was saved in, the character and place, both\ncharacters' chapters, the play time and when it was saved. Start a **New\nslot**, **Import** saves (RPCS3's too), **Duplicate**, **Export** (ready for\nRPCS3) or **Delete** one. See [*Save slots*](#save-slots).\n\n### v0.5: the launcher\n\n![Folklore launcher, Game page](docs\u002Fimages\u002Flauncher_game.png)\n\n**FolkloreLauncher.exe** (double-click **run_launcher.bat**) sets the game\nup in one window: your disc dump, the 1.10 update and your DLC, each checked\nas you choose it, and every graphics, display and gameplay setting. Then\npress **Play**. No scripts or settings files to edit; the in-game engine\nmenu is still there too. See [*The launcher*](#the-launcher).\n\nAlso in v0.5: licences (.rap) added from a button, the title bar showing the\nreal render size, and a fix for the logo movie looping over a blue screen\nwhen the game was started outside run.ps1 in a project folder.\n\n### What's better than on the PS3\n\nAll of these are in the in-game engine menu (**L3 + R3** or **F1**); each can\nbe turned back to the original.\n\n- **Frame rate**: 60 fps or unlimited (up to your display's refresh rate),\n  with physics stepped to match so cloth and hair stay stable.\n- **Resolution**: up to 3x the PS3's 1280×720, borderless fullscreen.\n- **Ultrawide**: 21:9, 32:9 or your display's shape, with a wider field of\n  view rather than a stretched picture; the map and gauges move out to the\n  screen's edges (with a *How far out* slider), and menus, speech bubbles\n  and fades stay where they belong.\n- **Anti-aliasing**: SMAA (sharp, clean edges) or FXAA.\n- **Sharper textures**: finer texture levels in the distance, plus up to 16x\n  anisotropic filtering and optional sharpening.\n- **Ambient occlusion**: soft shading where surfaces meet — corners, under\n  ledges, around characters' feet.\n- **Soft shadows**: the characters' shadows with soft edges instead of hard,\n  stair-stepped ones.\n- **Smooth depth of field**: a soft, round blur using the game's own focus,\n  without the original's doubled image.\n- **Smooth bloom**: a steady glow, without the original's flicker.\n- **Cleaner Id souls**: the enemies' souls as a soft shimmer (or a clear\n  translucent shape) instead of pixel static.\n- **Faster busy scenes**: objects drawn again and again (Doolin's streets)\n  reuse work instead of being redrawn from scratch, unchanged models stay on\n  the graphics card instead of being copied every frame, and large textures\n  are no longer re-read every frame — boss fights hold 60 fps.\n- **A launcher**: set the game's folders, DLC and every setting in one\n  window, then Play.\n- **Quality of life**: skip the opening logos with Start, save backups and\n  restores, no RPCS3 needed to decrypt the game, downloadable content added\n  from the menu, motion controls on any controller with motion sensors.\n\nBuilds can be made from the v1.00 disc or from the game's **1.10 update**\n(rumble, and the newer Folk data), and the **downloadable content** you bought\ncan be added from the in-game menu — see\n[*1.10 with the DLC, step by step*](#110-with-the-dlc-step-by-step).\n\n---\n\n## Requirements — read this first\n\nYou need **both** of these. Neither is in this repository and neither can be\ndownloaded from it.\n\n### 1. Your own Folklore disc: North American or European release\n\n- **Title ID BCUS98147 (North America) or BCES00050 (Europe), disc version\n  1.00.** The code is translated from those exact executables; the Japanese\n  release will not work. A build is made from one of them and runs that one\n  ([`folklore\u002Fdocs\u002FREGIONS.md`](folklore\u002Fdocs\u002FREGIONS.md)).\n- **Optionally, the 1.10 update** for your release. A build can be made from\n  the update's executable instead (it adds rumble, the game's own Vibration\n  option, and the newer table of Folks that later downloadable content uses);\n  it still reads everything else from your disc dump. See *The 1.10 update*\n  below.\n- Dumped from your disc to a **folder** (the \"JB folder\" format RPCS3 uses): a\n  folder that contains `PS3_GAME\\`, with `PS3_GAME\\PARAM.SFO` and\n  `PS3_GAME\\USRDIR\\EBOOT.BIN` in it. Your dump is only ever read, never\n  written to.\n\n### 2. The game's EBOOT: nothing to do\n\nThe dumped `PS3_GAME\\USRDIR\\EBOOT.BIN` is encrypted; setup and the game\ndecrypt it themselves (no RPCS3 needed) into a `decrypted\\` folder here —\nnothing is written to your dump. An `EBOOT.elf` RPCS3 already wrote beside it\n(*Utilities → Decrypt PS3 Binaries*) is used as it is. The decrypted file is\n**6,518,936 bytes** (BCUS98147) or **6,518,912 bytes** (BCES00050); setup\nchecks this. ([`folklore\u002Fdocs\u002FSELF.md`](folklore\u002Fdocs\u002FSELF.md) has how.)\n\n`decrypted\\` holds the game's own code: like `folklore.exe`, don't share it.\n\n### The 1.10 update (optional)\n\nInstall the update in RPCS3 (**File → Install Packages\u002FRaps\u002FEdats**, choose\nthe update's `.pkg`). RPCS3 puts it in `dev_hdd0\\game\\BCUS98147` (or\n`BCES00050`) inside its own folder — not in your disc dump, even though\nRPCS3's game list shows the game as 1.10 and *Open game folder* opens the\ndump. Its `USRDIR\\EBOOT.BIN` is decrypted here too: the European one needs\nnothing, the North American one its licence (`UP9000-BCUS98147_00-FOLKLORE20000003.rap`),\nwhich RPCS3 installs with the update into `dev_hdd0\\home\\\u003Cuser>\\exdata` —\nsetup finds it there. Give setup both folders:\n\n```powershell\n.\\setup.ps1 -GameDir D:\\Games\\BCUS98147 -UpdateDir D:\\RPCS3\\dev_hdd0\\game\\BCUS98147\n```\n\nsetup lifts the update's executable instead of the disc's and saves both\nfolders; `build.ps1` and `run.ps1` work as before. On each start the game\ncopies the update's three data files (`LMonS2.bi5_`, a corrected Spanish\ntext file, and their list) from the update folder into `hdd0\\` here and\nrecords them as installed, as the game itself would; neither folder is\nwritten to. `.\\setup.ps1 -GameDir \u003Cdump>` without `-UpdateDir` goes back to\nthe disc version. Saves are the same files in both versions.\n\n### Also needed\n\n- **Windows 10 or 11, 64-bit**, a Direct3D 12 graphics card, and a CPU with\n  AVX2 (x86-64-v3: Intel Haswell \u002F AMD Zen or newer).\n- About **30 GB** free on the drive you clone to (tools, build files, and the\n  game's own first-boot install of several GB).\n- An internet connection for setup (it downloads its tools).\n- A controller: any XInput pad, or for motion controls a **DualShock 4**,\n  **DualSense** (or Edge), **Switch Pro Controller** (USB or Bluetooth, no\n  extra software), or a **DualShock 3** with\n  [DsHidMini](https:\u002F\u002Fgithub.com\u002Fnefarius\u002FDsHidMini) in **SXS** mode.\n\n---\n\n## Building\n\nClone this repository (or download it as a ZIP and unzip it) somewhere with\nthe space free — a short path such as `D:\\Folklore` is best. Open\n**PowerShell** in that folder and run these one at a time:\n\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\setup.ps1\npowershell -ExecutionPolicy Bypass -File .\\build.ps1\npowershell -ExecutionPolicy Bypass -File .\\run.ps1\n```\n\n1. **setup.ps1** (15–30 minutes, once)\n   - **First it asks for your dump**: a folder picker (choose the folder that\n     contains `PS3_GAME`). It is checked; if something is wrong (still\n     encrypted, wrong version) it says what and asks again. You can also pass\n     it: `.\\setup.ps1 -GameDir D:\\Games\\BCUS98147`\n   - Then it runs on its own: downloads Git, CMake, Ninja, Python and FFmpeg\n     into `tools\\`, and — only if you have no Visual Studio with clang-cl —\n     Visual Studio 2022 Build Tools (about 6 GB, one UAC prompt; the Visual\n     Studio Installer always goes on C:).\n   - Translates the game's code from your `EBOOT.elf` into\n     `folklore\\src\\recomp\\` (about a minute). It stays on your PC.\n   - Builds the ps3recomp runtime library.\n2. **build.ps1** compiles about 1.5 million lines of translated C++: roughly\n   10–30 minutes the first time on a modern 8-core CPU, incremental after\n   that. Result: `folklore\\build\\folklore.exe`.\n3. **run.ps1** starts the game and writes `logs\\run-\u003Cdate-time>.log`. It\n   uses the game folder you gave setup (saved in `folklore_settings.ini`), and\n   the game's first boot copies several GB of data into `hdd1\\`.\n   **run.bat** does the same with a double-click (any run.ps1 options can\n   follow it, e.g. `run.bat -ResetInstall`).\n\nOr, after build.ps1, double-click **run_launcher.bat** instead of run.ps1:\n[the launcher](#the-launcher) asks for the same folders in its own window and\nstarts the game with Play.\n\nWith both releases (an EU copy of this folder beside it, see *Sharing what\nyou built*), `.\\build_all.ps1` builds this folder, brings the EU copy up to\ndate and builds that too; then `run.bat` in either folder runs its build.\nOnce the 1.10 copies exist (`package_all.ps1 -UsUpdateDir\u002F-EuUpdateDir`, see\n*Sharing what you built*) it builds those as well.\n\n### If something fails\n\n- Every step writes a log in `logs\\` (`setup-*.log`, `build.log`,\n  `run-*.log`); the error message names the one to look at.\n- **setup can't find clang-cl after installing Build Tools**: open *Visual\n  Studio Installer* → Modify → Individual components → tick *C++ Clang Compiler\n  for Windows* and *MSBuild support for LLVM (clang-cl)*, then run setup.ps1\n  again.\n- **\"Could not decrypt ... needs its licence\"** (North American 1.10 update):\n  install the update's `.rap` in RPCS3 (*File → Install Packages\u002FRaps\u002FEdats*),\n  or put it in a `licences` folder here.\n- **\"not a v1.00 EBOOT of a supported release\"**: your disc is the Japanese\n  release, or you gave `-GameDir` the 1.10 update's EBOOT (give the update\n  folder as `-UpdateDir`, with `-GameDir` your disc dump). Only BCUS98147 and\n  BCES00050 work.\n- **\"not the 1.10 update of a supported release\"**: the `-UpdateDir` folder\n  is not the 1.10 update — most often the disc dump was given instead of\n  RPCS3's `dev_hdd0\\game\\\u003Ctitle id>` (see *The 1.10 update*). An old\n  `USRDIR\\EBOOT.elf` there made from the wrong EBOOT also causes it: delete it.\n- **Both releases:** a build follows the dump setup lifted. `.\\setup.ps1\n  -GameDir \u003Cdump of the other release>` switches it (setup lifts the game code\n  again, then `build.ps1` rebuilds everything). To keep one of each, use two\n  copies of this folder.\n- setup and build are safe to re-run; each step skips what is already done.\n\n---\n\n## Playing\n\n### The launcher\n\n![Folklore launcher, Graphics page](docs\u002Fimages\u002Flauncher_graphics.png)\n\n**FolkloreLauncher.exe** (built beside folklore.exe, and in every package)\nsets everything up in one window before the game starts. Double-click\n**run_launcher.bat** to open it: in the project folder it opens the one in\n`folklore\\build` with this folder's settings, `hdd0`, saves and logs (the\nones `run.ps1` uses).\n\n\n- **Game**: your disc dump and, for a 1.10 build, the installed 1.10 update,\n  each checked the way the game checks them; where saves and installed data\n  go; optional firmware fonts.\n- **Saves**: your save slots, each with the picture of the area it was saved\n  in, the character and place, both characters' chapters, the play time and\n  when it was saved. Choose the slot the game plays, start a **New slot**,\n  **Import...** saves (from RPCS3 too), **Duplicate**, **Export...** or\n  **Delete...** one;\n  see [*Save slots*](#save-slots).\n- **DLC**: the packs installed, **Add DLC from RPCS3...** and **Add licences\n  (.rap)...**, and any pack still missing its licence.\n- **Graphics**, **Display**, **Gameplay**: every setting of the in-game\n  engine menu, including the ones that only apply when the game starts.\n- **Dump textures this run** (Graphics page): the next Play starts the game\n  with the texture dump on, into `textures\\dump` (as `run.ps1\n  -DumpTextures`); not kept between runs.\n- **Play** saves `folklore_settings.ini` and starts folklore.exe;\n  **Support on Ko-fi** beside it opens the project's\n  [Ko-fi page](https:\u002F\u002Fko-fi.com\u002Fmavab).\n\nIts picture is `launcher_art.jpg` (or `.png`) in the project folder (or\nbeside the launcher): put your own copy of the cover art there and it fills\nthe left-hand panel. It is not in the repository; without it the launcher\nshows the plain panel in the screenshots above.\n\n**Icon**: `folklore_icon.ico` in the project folder becomes the icon of both\nfolklore.exe and FolkloreLauncher.exe (and of the game's window) the next\ntime build.ps1 runs. Like the art it comes from the game, so it is not in the\nrepository; without it both get Windows' default icon.\n\n**From a package**: unzip, double-click `run_launcher.bat`, choose your disc\ndump (and the 1.10 update for a 1.10 build) on the Game page, press Play.\n\n### Save slots\n\nFolklore keeps each save in its own folder (`BCUS98147-SAVEDATA-0000`,\n`-0001`, ...; `BCES00050-...` for the European release). On a PS3 the game\nshows them in a list and you pick one; the port has no such list, so it used\nto load and overwrite the first. Now the **Saves** page of the launcher picks\nthe slot before the game starts, and the game loads and saves only that one\n(`save_slot` in `folklore_settings.ini`). An empty slot starts a new game,\nwhich then saves into it. The in-game engine menu shows the slot in use.\n\n- **New slot**: the next free number; press Play for a new game in it.\n- **Import...**: one save folder, a folder of them (an export, or RPCS3's\n  `dev_hdd0\\home\\00000001\\savedata`), or RPCS3's own folder. Each save gets\n  the next free slot; one already in a slot is skipped. A save made with the\n  other release is marked, as it may not load.\n- **Duplicate slot N**: copies the slot into the next free one, to try\n  something without risking the original or keep a point to go back to. The\n  game keeps using the original until you press **Use** on the copy.\n- **Export slot N...**: copies the slot to a folder you choose, as a PS3\n  save folder: it can go straight into RPCS3's `savedata` folder.\n- **Delete slot N...** (press Confirm): moves the slot to `deleted_saves\\`,\n  from where Import brings it back.\n\nThe saves live in `gamedata\\dev_hdd0\\home\\00000001\\savedata` in the data\nfolder (the project folder, or the one set on the Game page).\n\n### Engine menu\n\nPress **L3 + R3 together** (or **F1**) in game. D-pad \u002F left stick or the arrow\nkeys move, Cross \u002F A or Enter changes a setting, Circle \u002F B, Start or Esc\ncloses. The game ignores the controller while the menu is open. Settings are\nsaved to `folklore_settings.ini`.\n\n- **Frame rate**: 30 fps (the game's own limiter), 60 fps or unlimited.\n  Unlimited runs as fast as your display refreshes (120 or 144 fps on a\n  high-refresh monitor, if your PC keeps up); movies still play at their own\n  speed. Above 30 is experimental — the game was built for 30.\n- **Precise frame limiter**: wakes every 1 ms instead of every 10 ms, so\n  frames end on time (on by default).\n- **Motion controls** (on by default): capture Folks by moving the controller,\n  as on the PS3. Works with any controller that has motion sensors (below); a\n  controller without them still captures by itself. Turn it off and every\n  capture completes by itself, whatever the controller -- boss captures too\n  (Time, Beat, Balance, Stop & Go: the capture bar fills over a few seconds\n  and the game finishes the capture as if you had). The menu shows which\n  controller is connected and whether its sensors are live.\n- **Opening logos**: *Play them* (as on the PS3), *Start skips them*\n  (the default: press **Start**, or Enter, once the logos have been on for a\n  moment, and the logo movie and the still logos after it are all skipped,\n  straight to the title screen), or *Never show them* (the game starts at the\n  title screen after a blank second). The game's own legal notice before the\n  title screen still shows.\n- **Physics**: step physics by the frame time, which keeps cloth and hair\n  stable above 30 fps (on by default).\n- **Language** (European build only): English, French, Spanish, German or\n  Italian, for the menus, text, subtitles and cutscene sound. The game picks\n  its language as it starts, so a change applies on the next start. The North\n  American disc only has English.\n- **Graphics**\n  - *Fullscreen* (borderless; **Alt+Enter** toggles it any time).\n  - *Render resolution*: 1x (1280×720, the PS3's), 2x or 3x. Applies on the\n    next start.\n  - *Aspect ratio*: 16:9, match display, 21:9 or 32:9 — a wider field of view,\n    not a stretched picture. Next start.\n  - *Menus and HUD* (when wider than 16:9): *Map and gauges at the edges*\n    (the default: everything at its own shape, the map pushed out to the\n    left and the health gauges, folk and button hints to the right, with a\n    *How far out* slider), *Centred* (all of it in the middle 16:9) or\n    *Stretched to fit* (as before). Full-screen fades and backdrops always\n    cover the whole screen. Applies at once.\n  - *Anti-aliasing*: *SMAA* (the default for new settings: smooth edges\n    that stay sharp, text and texture detail kept), *FXAA* (softer) or\n    *Off*. Applies at once. *Anisotropic filtering* (up to 16x),\n    *Sharpening*.\n  - *Texture detail*: *Sharper* (the default), *Sharpest* or *Original* —\n    finer texture levels, so walls, ground and clothing keep their detail\n    further away. Applies at once.\n  - *Depth of field*: *Smooth* (the default: a soft blur using the game's own\n    focus, without the doubled edges) or *Original* (the PS3's). Next start.\n  - *Bloom*: *Smooth* (the default: steady glow, without the flicker and\n    shimmer of the original's low-resolution sampling) or *Original*. Next\n    start.\n  - *Shadows*: *Soft* (the default), *Softer* or *Original* — the\n    characters' shadows with soft edges instead of hard, stair-stepped\n    ones. Applies at once.\n  - *Ambient occlusion*: *Subtle* (the default), *Strong* or *Off* — soft\n    shading where surfaces meet (corners, under ledges, where characters\n    stand), worked out from the depth buffer. Next start.\n  - *Build new shaders in the background* (no hitch when an effect first\n    appears).\n  - *Fast repeated objects* (on by default): objects the game draws again\n    and again with only their position changed reuse the previous draw's\n    work — faster in busy towns like Doolin.\n- **Game files**: the game folder in use (change it here; it applies on the\n  next start) and where the installed data and saves are.\n- **Downloadable content**: the add-on packs installed, **Add DLC from\n  RPCS3...** to bring in your own, and **Remove** per pack (below).\n- **Performance overlay**: fps, frame time and where the time goes.\n- **Save data snapshots**: copy the game's saves to `save_snapshots\\` and put\n  any snapshot back later, then load it from the game's own Load menu.\n\nEscape closes the menu; it does not quit the game (use the window's close\nbutton or Alt+F4).\n\n### 1.10 with the DLC, step by step\n\nWhat you need, all your own: the Folklore disc dump (as above), the 1.10\nupdate `.pkg` for your release, and each add-on pack's `.pkg` with its `.rap`\nlicence. RPCS3 is used only to install them.\n\n1. **Install the update and the packs in RPCS3.** **File → Install\n   Packages\u002FRaps\u002FEdats**, then select the update's `.pkg`, every pack's `.pkg`\n   and every `.rap` (several at once is fine). They go into RPCS3's own\n   `dev_hdd0`: the update and packs into `dev_hdd0\\game\\BCUS98147` (or\n   `BCES00050`), the licences into `dev_hdd0\\home\\00000001\\exdata`. You do\n   not need to start the game in RPCS3.\n2. **Build the 1.10 version** (the update's EBOOT is decrypted for you). In\n   this folder:\n\n   ```powershell\n   .\\setup.ps1 -GameDir D:\\Games\\BCUS98147 -UpdateDir D:\\RPCS3\\dev_hdd0\\game\\BCUS98147\n   .\\build.ps1\n   ```\n\n   `-GameDir` is your disc dump, `-UpdateDir` the update folder from step 1.\n   To keep the disc version too, leave this folder as it is and use\n   `.\\build_all.ps1 -UsUpdateDir \u003CRPCS3>\\dev_hdd0\\game\\BCUS98147` (and\u002For\n   `-EuUpdateDir ...\\BCES00050`): it builds the 1.10 versions in copies\n   beside this folder (`Folklore-1.10`, `Folklore-EU-1.10`).\n\n   With a ready-made **1.10 package** instead (`Folklore-\u003Cdate>_1.10.zip`):\n   skip this step; the first time you start it, it asks for the disc dump\n   and then for the update folder.\n3. **Start the game** with `run.bat` (in the 1.10 copy, if you used\n   `build_all.ps1`). The game's options now have a *Vibration* setting.\n4. **Add the DLC.** Press **F1** (or L3+R3), go to **Downloadable content**\n   and press **Add DLC from RPCS3...**. Choose RPCS3's folder — the one with\n   `dev_hdd0` in it. A progress bar runs for about half a minute, then the\n   menu lists the packs it installed (and any it could not, with the reason:\n   usually a missing `.rap`).\n5. **Restart the game.** F1 now shows *Installed: Add-on pack 1, ...*, and the\n   new quests and Folks are in the game as they were on a PS3.\n\nGood to know:\n\n- Copied RPCS3's game folder into `hdd0\\game` by hand instead? RPCS3 keeps\n  the paid packs encrypted with your licences, so the port decrypts them at\n  start when it finds the `.rap` files — copy RPCS3's\n  `dev_hdd0\\home\\00000001\\exdata` to `hdd0\\home\\00000001\\exdata` too, press\n  *Add licences (.rap)...* and pick the `.rap` files, or just press *Add DLC\n  from RPCS3...*. F1 lists, in red, any pack still\n  missing its licence (without it, its costumes and Folks are broken and the\n  game can crash).\n- Each project copy (and each package folder) has its own `hdd0\\`, so add the\n  DLC once in each one you play. `run.bat -ResetInstall` empties `hdd0\\`, DLC\n  included; press *Add DLC* again afterwards.\n- The packs of either release work in either build: North American packs\n  (with their North American licences) in a European build, and the other\n  way round. The importer takes this build's own release's packs when RPCS3\n  has them, and otherwise the other release's, installing their English text\n  under both releases' names (`_en` \u002F `_uk`). The other four languages are in\n  both releases' packs already.\n- Saves work in both versions; copy them across with the menu's save\n  snapshots, or `gamedata\\` between folders.\n- Nothing in your disc dump or in RPCS3's folder is ever changed.\n\n### Downloadable content\n\nFolklore's add-on packs from your own purchase: install each pack's `.pkg`\nand its `.rap` licence in RPCS3 (**File → Install Packages\u002FRaps\u002FEdats**), then\nin the engine menu press **Add DLC from RPCS3...** and choose RPCS3's folder\n(the one with `dev_hdd0` in it). The packs are decrypted with your licences\nand installed into `hdd0\\` here — about half a minute for all six, with a\nprogress bar — and the game has them from its next start. A pack without its\nlicence is left out and the menu says which. North American packs work in the\nEuropean build too (and the other way round). Nothing in RPCS3's folder is\nchanged.\n\nTo take a pack out again, press its **Remove** button (twice, to confirm) or\n**Remove all DLC**. Your saves are copied to a snapshot first (a save that\nuses that pack's Folks or items may not load without it), and the pack is\nremoved the next time you start the game; **Keep** cancels it before then.\nDetails: [`folklore\u002Fdocs\u002FDLC.md`](folklore\u002Fdocs\u002FDLC.md).\n\n### Motion controllers\n\nFolklore captures Folks with motion gestures. These controllers are read\ndirectly — buttons, sticks and the motion sensors — and take controller port\n0 (an XInput pad takes the next port):\n\n| Controller | Connection | Notes |\n|---|---|---|\n| DualShock 4 (and Sony's wireless adapter) | USB or Bluetooth | no extra software |\n| DualSense, DualSense Edge | USB or Bluetooth | no extra software |\n| PS4\u002FPS5-style pads from Hori, Nacon, Razer, PowerA, Mad Catz, Qanba, Victrix and others | USB or Bluetooth | no extra software; some have no motion sensors or rumble |\n| Switch Pro Controller | USB or Bluetooth | buttons by position: B = Cross, A = Circle, Y = Square, X = Triangle |\n| DualShock 3 | USB or Bluetooth | needs [DsHidMini](https:\u002F\u002Fgithub.com\u002Fnefarius\u002FDsHidMini) in **SXS** mode (set in DSHMC); also gives pressure-sensitive buttons |\n\nRumble (1.10 builds, the game's Vibration option) goes to an XInput pad, a\nDualShock 4 or a DualSense. The Switch Pro Controller and a DualShock 3 read\nthrough DsHidMini do not rumble yet.\n\nA controller presented as an XInput pad by another program (DS4Windows,\nSteam Input, DsHidMini in XInput mode) has no motion data. If DS4Windows hides\nthe real controller (HidHide), the game cannot see it either; close it or let\nthe game through. If two of these controllers are connected, the DualShock 3\nis used, otherwise the first one found.\n\nThe log says `[cellPad] DualShock 4 connected over USB` (or Bluetooth) when\nthe pad is found. `found but could not be opened` means another program has\nit; `HID game controller VVVV:PPPP is not one the game reads directly` means\nthe pad is not in the list yet: please report that VVVV:PPPP.\n\n### run.ps1 options\n\n```powershell\n.\\run.ps1 -GameDir D:\\other\\BCUS98147     # a different dump (otherwise the saved one)\n.\\run.ps1 -UpdateDir D:\\RPCS3\\dev_hdd0\\game\\BCUS98147   # 1.10 builds: a different update folder\n.\\run.ps1 -DevFlash D:\\RPCS3\\dev_flash    # firmware fonts (optional; or dev_flash= in the ini)\n.\\run.ps1 -ResetInstall                   # wipe hdd0\u002Fhdd1 and redo the first-boot install\n.\\run.ps1 -Verbose                        # very detailed logging (slow)\n.\\run.ps1 -Profile                        # report where the CPU time goes (every 10 s)\n.\\run.ps1 -Libsre                         # Sony's libsre instead of the port's SPURS, to compare (see below)\n.\\run.ps1 -InterpJobs                     # SPU jobs in the interpreter (A\u002FB, slower)\n.\\run.ps1 -TraceSpurs                     # record what SPURS does (logs\\spurs-*.trace; folklore\u002Fdocs\u002FSPURS.md)\n.\\run.ps1 -DumpTextures                   # write the game's textures to textures\\dump (see below)\n.\\build.ps1 -Clean                        # full rebuild\n$env:AUDIO_LATENCY_MS = '48'; .\\run.ps1   # more audio buffering if sound breaks up (default 32)\n```\n\n### Running folklore.exe on its own\n\nStart the game with run.bat \u002F run.ps1: that is the tested way. A binaries\npackage (`package.ps1`) includes them, with run.ps1 finding `folklore.exe`\nbeside itself.\n\n`folklore.exe` can also start without them (double-click it or a shortcut).\nIt asks once for the game folder (a 1.10 build also for the update folder)\nand remembers it, then does what run.ps1\ndoes: it sets the same environment and starts the game as a second\n`folklore.exe` process, with its output going to `logs\\run-\u003Cdate-time>.log`.\n`hdd0\\`, `hdd1\\`, `gamedata\\` (saves), the shader cache and `logs\\` go beside\nthe exe (or in `data_dir` from `folklore_settings.ini`). (Running the game in\nthe first process instead, as earlier builds did, drew the title screen\nwrongly and stopped at a black screen.) In a project folder it finds FFmpeg\n(for the movies) in `tools\\ffmpeg\\bin` itself, as run.ps1 does; a package\nhas it beside the exe.\n\n### Dumping textures\n\nThe first step towards higher-resolution textures: `.\\run.ps1 -DumpTextures`\nwrites every texture the game shows to `textures\\dump`, once each, as you\nplay (`-DumpDir D:\\somewhere` for another folder). Play through the areas\nyou want; later runs add only what is new.\n\n- Files are DDS: `\u003Ckey>_\u003Cwidth>x\u003Cheight>_\u003Cformat>.dds`. DXT textures are\n  written as they are on the disc (BC1\u002FBC2\u002FBC3, with their mipmaps); other\n  formats as plain RGBA8. Cube maps end in `_cube`.\n- The 16-digit key at the start of the name is what a replacement will be\n  found by, so keep it when you save an upscaled copy.\n- `index.csv` in the folder lists every texture written: key, size, format,\n  mip count and the frame it first appeared.\n- Textures the game keeps rewriting (movie frames and the like) and render\n  targets are not dumped.\n- Writing a new texture takes a moment, so expect small hitches the first\n  time a new area loads while dumping.\n\nThe dumped textures are the game's own art: do not share them or commit\nthem (`textures\u002F` is in `.gitignore`).\n\n### Higher-resolution textures (texture packs)\n\nEngine menu → Graphics → **High-resolution textures (texture pack)**, then\nrestart the game. Replacement textures are read from `textures\\replace`\n(next to `folklore_settings.ini`; `texture_pack_dir =` in the ini for\nanother folder), including any folders inside it, so packs can be kept in\ntheir own subfolders.\n\n- A replacement is a `.dds` file whose name starts with the 16-digit key of\n  the texture it replaces, as the dump names it: copy a file from\n  `textures\\dump`, upscale or repaint it, and save it under\n  `textures\\replace` with the key still at the front. Any size works.\n- Formats: BC1-BC7 (BC7 is the best quality for its size), RGBA8 or BGRA8.\n  Compressed textures need sides that are multiples of 4.\n- Save with mipmaps (for example `texconv -m 0 -f BC7_UNORM file.dds`), or\n  distant surfaces shimmer. Uncompressed files without them get them made\n  as they load.\n- A cube map can only replace a cube map.\n- Dumping with the pack on: textures the pack replaces are not dumped, and\n  dumps from earlier runs that now have a replacement are moved into\n  `textures\\dump\\replaced` when the game starts, so `textures\\dump` only\n  holds the textures still to be made.\n- The menu shows how many replacements were found and how many are in use.\n  A file that cannot be used is skipped (the game's own texture shows) and\n  the log says why (`[tex-pack]` lines).\n- Large packs use video memory: a 2048x2048 BC7 texture with mipmaps is\n  about 5 MB, the same as RGBA8 at 1024x1024 with mipmaps.\n\nThe quickest check that it works: open a dumped texture that is easy to\nspot, paint something obvious on it, save it into `textures\\replace` and\nstart the game with the option on.\n\n### Render capture (for bug reports)\n\nWhen something draws wrong, press **F2** (or the PS button on a DualShock 3)\nwhile it is on screen, or double-click `capture.bat`. The next four seconds of\ndraws go to `logs\\capture-\u003Cdate-time>\\`.\n\n### Motion watch (for the capture mechanics)\n\n**F3** in game starts a 20-second watch of where the game reads the\ncontroller's motion sensors (the game runs slower while it watches; F3\nagain stops it early). The results go to the run log as `[motion-watch]`\nlines. It found the capture code that auto-capture now uses for the boss\nIds' capture mechanics; kept for looking into anything else motion does.\n\n**F5-F9** search the game's memory for the capture state, as the boss\ncapture is played: F5 when the Id is red, F6 when it is not, F7 each time\nthe capture bar has gone up since the last F7\u002FF8, F8 each time it has gone\ndown, F9 to start again. Each press briefly pauses the game while it copies\nthe game's memory; the results are `[capture-finder]` lines in the log.\n\n### Comparing with Sony's libsre\n\nUntil October 2026 the port ran the game's SPU jobs on Sony's own SPURS\nlibrary, lifted from each player's firmware. That is still possible, for\nchecking the port's version against it:\n\n1. Install the PS3 firmware into RPCS3 (**File → Install Firmware**).\n2. Decrypt `dev_flash\\sys\\external\\libsre.sprx` with **Utilities → Decrypt PS3\n   Binaries**.\n3. Run `.\\setup.ps1 -LibsrePrx \u003Cthe libsre.prx it wrote>` (or\n   `-WithLibsre` for a file picker), then `build.ps1`.\n4. Run `.\\run.ps1 -Libsre`.\n\n`-TraceSpurs` records either one, and the two recordings compare\n(`folklore\u002Fdocs\u002FSPURS.md`).\n\n---\n\n## Sharing what you built\n\n```powershell\n.\\package.ps1 -Kind BuildKit     # dist\\Folklore-buildkit-\u003Cdate>.zip: this repository's contents\n.\\package.ps1                    # dist\\Folklore-\u003Cdate>.zip: your built game, ready to run\n.\\package_all.ps1 -EuGameDir D:\\Games\\BCES00050\n                                 # both releases: builds this folder (US) and an EU copy beside it\n                                 # (Folklore-EU), then dist\\Folklore-\u003Cdate>.zip and Folklore-\u003Cdate>_eu.zip\n.\\package_all.ps1 -UsUpdateDir D:\\RPCS3\\dev_hdd0\\game\\BCUS98147 -EuUpdateDir D:\\RPCS3\\dev_hdd0\\game\\BCES00050\n                                 # also the 1.10 builds, in copies Folklore-1.10 and Folklore-EU-1.10\n                                 # (update folders needed once): ..._1.10.zip and ..._eu_1.10.zip\n```\n\nThe build kit contains nothing from the game or the firmware — the same as\nthis repository. The **binaries** package contains your `folklore.exe`, which\n*is* Folklore's code translated and compiled (plus Sony's libsre, if you\nlifted it for comparison): giving that to someone else distributes that code.\nPoint people at this repository instead.\n\n---\n\n## Repository layout\n\n| Path | What it is |\n|---|---|\n| `setup.ps1`, `build.ps1`, `run.ps1` | Set up, build, run (see above) |\n| `package.ps1`, `capture.bat` | Packaging; render capture |\n| `common.ps1` | Paths and helpers the scripts share |\n| `folklore\u002F` | The port: CMake project, Folklore-specific HLE, the engine menu and settings (`src\u002Fengine`), the lifting scripts (`tools\u002F`) and the engineering log (`docs\u002FSTATUS.md`) |\n| `folklore\u002Fsrc\u002Frecomp\u002F` | Empty here; setup fills it with the game's code translated from **your** EBOOT |\n| `folklore\u002Ffirmware_lle\u002F` | Not in the repository; only made by `setup.ps1 -LibsrePrx`, from **your** libsre.prx, for comparison runs |\n| `ps3recomp\u002F` | The recompiler and runtime: [sp00nznet\u002Fps3recomp](https:\u002F\u002Fgithub.com\u002Fsp00nznet\u002Fps3recomp) at commit `39a3629`, with everything in `patches\u002F` already applied |\n| `patches\u002F` | The changes this port made to ps3recomp, one patch per fix, kept as a record (and so they can go upstream) |\n\nCreated by the scripts and ignored by git: `tools\u002F`, `logs\u002F`, `hdd0\u002F`,\n`hdd1\u002F`, `gamedata\u002F`, `dist\u002F`, `folklore\u002Fbuild\u002F`, `ps3recomp\u002Fbuild\u002F`, the\nlifted sources and `folklore_settings.ini`.\n\n## Credits and licences\n\n- **This project** (scripts, port code, patches): MIT licence, see\n  [`LICENSE`](LICENSE).\n- **ps3recomp** © Ned Heller \u002F sp00nznet, MIT licence (`ps3recomp\u002FLICENSE`).\n- **Dear ImGui** © Omar Cornut, MIT licence (`folklore\u002Fsrc\u002Fthird_party\u002Fimgui`).\n- **SMAA** © Jorge Jimenez, Jose I. Echevarria, Belen Masia, Fernando\n  Navarro and Diego Gutierrez, MIT licence (the shader and lookup textures,\n  packed in `ps3recomp\u002Flibs\u002Fvideo\u002Frsx_smaa_data.h` with their licence).\n- **FFmpeg** (LGPL) is downloaded by setup for the cutscenes; it is not part\n  of this repository.\n- Folklore is © Sony Interactive Entertainment \u002F Game Republic. This project\n  is not affiliated with or endorsed by Sony or Game Republic, contains none\n  of their code or data, and requires your own legally obtained copy of the\n  game.\n","这是一个将PS3游戏《Folklore》（2007年，Game Republic\u002FSCE）通过静态反编译与AI辅助重编译技术，转化为原生x86-64 Windows可执行程序的开源项目。核心功能包括PowerPC\u002FSPU指令到C++的翻译、SPURS多线程任务系统纯软件重实现、Direct3D 12图形后端及配套运行时环境，无需模拟器或PS3固件。项目提供图形化启动器、存档管理（支持RPCS3导入导出）、超宽屏UI适配与自动捕获优化等功能。适用于希望在现代Windows PC上以原生性能运行该PS3独占游戏的技术爱好者与复古游戏开发者，需用户自备正版光盘镜像。","2026-11-24 04:36:08","CREATED_QUERY"]