saulob/odin-sphere-leifthrasir-pc
Über uns
Odin Sphere Leifthrasir native PC port for Windows, with direct PS4 PKG installation, TRG launcher and modern graphics options
Design und MedienWhat you can do
- Native PC port: the game's own x86-64 code runs directly on the PC. It is not an emulator, and on Linux it does not use Wine or Proton.
- TRG launcher that installs the game from your own .pkg file, with Reinstall game... to repair it
Gemessener Sternzuwachs
- in 24h
- +5
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalOdin Sphere Leifthrasir - PC Port
Odin Sphere Leifthrasir, Vanillaware's PS4 action RPG, running natively on Windows, and experimentally on Linux and Steam Deck, with the TRG launcher and modern PC options
The original PS4 game code runs on the PC with a replacement for the PS4 system libraries and a Vulkan renderer derived from shadPS4 (with experimental OpenGL and Direct3D 11 renderers). No game files included: bring your own legally obtained Odin Sphere Leifthrasir PS4 package.
Status
v0.3.0 is the current release. The loader and runtime map and run the game's own x86-64 code, with the
shadPS4-derived Vulkan video core, the launcher and installer, local trophies, the self-updater and the diagnostics.
The USA release (CUSA05083 base 1.00 plus its 1.01 update), the Japanese release (CUSA01290 base 1.00 plus its 1.02
update) and the European release (CUSA05262 base 1.00 plus its 1.01 update) are supported. Both known CUSA03873
1.00 base packages are supported too: the Hong Kong release and an Asian release that adds Korean archives. The
executable sites of the USA 1.01 and both CUSA03873 1.00 releases are found by
scanning their eboot.bin when they are installed, instead of from a fixed table; a feature whose sites the scan cannot
find uniquely is hidden, and the log holds the scan. Any other version of the game is refused as an unsupported build,
and the log then holds detailed read-only diagnostics useful for adding it (see Reporting problems).
Windows is the supported platform. The native Linux build, shipped as an AppImage, is experimental: it is built and checked by scripts, but it has not yet been tested on real Linux PCs or a Steam Deck.
New in v0.3.0
- Portuguese (Brazil): an original translation of the game's menus, subtitles, story text and archives, offered on every supported build, with the in-game art that carries words (title menu, HUD, save and load screens, stage and act cards, chapter prologue pages, the world map and more) redrawn in Portuguese, in both Refined and Classic mode. The launcher follows the language. Accented letters are verified on USA 1.00, Europe and Japan; a few painted screens (the Bookshelf book frames, the manual pages, the Skill screen) are still English. See Menu & Subtitles and localization/pt-BR/README.md
- Native cheats: Max Gold Gain, Max Phozon Gain, No AP Consumption, Infinite PP, Infinite POW, Infinite Health, Infinite Arrows and an Experience Multiplier, set in the launcher and changed in game with the F10 cheat menu, in Refined and Classic mode
- Controller bindings: every controller button can be rebound, with Reset to defaults
- Bug Report page in the launcher, and detailed read-only diagnostics when a build is not supported
- Supported builds: the Asian
CUSA038731.00 release (with Korean archives) joins the Hong Kong one; the Exit Game title art is corrected across builds - Renderers and frame rate: experimental OpenGL and Direct3D 11 renderers, a Frame rate setting up to 240 FPS or Unlimited, Vulkan on graphics cards without sparse buffer binding (their buffers are fully resident), and a launcher that opens on systems without Vulkan 1.3
- Runtime stability: a cap on the audio backlog puts the sound back in sync after the PC resumes from sleep, and the Vulkan pipeline binaries are warmed up in the background to reduce hitches
- Launcher and updater: a modernized launcher layout and a stricter updater (GitHub release hosts only, a watchdog for stalled downloads, SHA-256 checked)
Features
- Native PC port: the game's own x86-64 code runs directly on the PC. It is not an emulator, and on Linux it does not use Wine or Proton.
- TRG launcher that installs the game from your own
.pkgfile, with Reinstall game... to repair it
Display
- Windowed and Borderless Fullscreen, switched with F11 while playing
- Window size and monitor selection for the game; the launcher remembers its own window placement
- Aspect Ratio: 16:9 Original, 16:10, 21:9 Ultrawide, 32:9 Super Ultrawide, 4:3 and 5:4
- Renderer: Vulkan (supported, the default), Auto (Vulkan, and OpenGL only when this system cannot run Vulkan), and the experimental OpenGL and, on Windows, Direct3D 11 (through ANGLE) renderers, which render only part of the game's features; the choice applies at the next start (docs/GRAPHICS.md)
- Graphics card selection (Vulkan), VSync and Presentation (letterbox or stretch)
- Upscaling (AMD FidelityFX Super Resolution 1) and sharpening (AMD RCAS), on the Vulkan renderer
Graphics
- Render resolution from 480p through native 1080p, 1440p and 1800p to 4K, separate from the window size
- SMAA anti-aliasing (Vulkan) and anisotropic texture filtering (Game, 2x, 4x, 8x, 16x)
Gameplay
- Skip intro: start at the title's PRESS START, without the startup notice, logos and intro
- EXIT GAME at the end of the native title menu, in Refined and Classic mode, on Windows and Linux, leaves the game cleanly. The label is drawn from the game's own title art and follows the title language where its letters allow (Italian, Spanish, French and German); other languages show EXIT GAME
- Menu & Subtitles language on every build: English first, then Portuguese (Brazil), an original translation made for this port (text and redrawn art, in Refined and Classic mode), then the game's own other languages. English is supplied by the port where the build has none, and the launcher switches to Portuguese with it
- Frame rate: 30, 60 (Original, the default), 90, 120, 144, 165, 240 or Unlimited frames per second reaching the window, on Vulkan, OpenGL and Direct3D 11. The game still makes 60 new frames a second, so game speed is unchanged and the frames above 60 show the latest frame again (no interpolation)
- Frame rate and render resolution in the window title, and an in-game frame counter with the frame time, toggled with F2 while playing; both show the rate the window is presented at
- Startup hints confirm Skip intro and Unlock Bookshelf when either is on, then disappear on their own
Cheats
- Seven optional cheats, all Off by default: Max Gold Gain, Max Phozon Gain, No AP Consumption, Infinite PP, Infinite POW, Infinite Health and Infinite Arrows
- Experience Multiplier: Off (the default), 2x, 5x, 10x or 100x experience from every award
- The launcher sets the state the game starts with; F10 opens the in-game Cheats menu, whose changes apply immediately and last for the current session only
- Applied natively in memory; no game file is modified
Controls
- Xbox controllers without setup, with every controller button and keyboard binding changeable
- Controller prompts: the game's PlayStation button pictures (the default) or Xbox prompts
Your data
- Local PS4 trophies, offline on this PC, listed on the launcher's Trophies page
- Portable: settings, saves, trophies, the shader cache and logs stay in
userandlogsnext to the program - Updates: a newer GitHub release is offered in the launcher and installed with one click, SHA-256 verified, keeping your game files, saves and settings
- Diagnostics: one log per run, a
CRASH REPORTsection in that log after a crash, and on Windows ahang_NNN.txtreport when the game freezes - Bug Report page: previews exactly what would be sent (a description and one privacy-filtered log), keeps the reports you sent in My Reports, shows the developer's replies and can save the same report as a text file (see docs/BUG_REPORTS.md)
What you need
- Windows: Windows 10 (version 1903 or newer) or Windows 11, 64-bit, or
- Linux / Steam Deck (experimental): 64-bit x86 Linux with glibc 2.31 or newer (such as Ubuntu 20.04 or later), a Vulkan loader, and an X11 or Wayland desktop
- A processor with AVX and POPCNT: Intel Core 2nd generation (Sandy Bridge), AMD FX or newer. MOVBE, BMI1 and LZCNT, which older processors lack, are handled in software
- A graphics card and driver with Vulkan 1.3,
VK_EXT_robustness2,VK_KHR_push_descriptorandVK_EXT_vertex_attribute_divisorfor the Vulkan renderer. The experimental OpenGL renderer needs OpenGL 3.3 core, and the experimental Direct3D 11 renderer (Windows) a card with Direct3D feature level 10_1 or newer - Your own legally obtained Odin Sphere Leifthrasir package: a decrypted PS4
.pkgof a supported build, and about 4 GB of free space
| Game | Odin Sphere Leifthrasir |
| Platform | PlayStation 4 |
| USA build | Title ID CUSA05083, Content ID UP0177-CUSA05083_00-ODINSPHERELE0000, APP_VER 01.00, VERSION 01.01, eboot.bin SHA-256 7c517194aba4e5eea55d9197efae47d1567bd785b8c0dced7d1b0f4028d3eed6 |
| USA 1.01 update | Same Title and Content ID, APP_VER 01.01, VERSION 01.00, eboot.bin SHA-256 2865b6cec33f2515def173c1ed0c03afc27a1cd5fad1b0d0f516b4527aba9a88 |
| Japanese base | Title ID CUSA01290, Content ID JP0005-CUSA01290_00-ODINSPHERELE0000, APP_VER 01.00, VERSION 01.00, eboot.bin SHA-256 d0add7e35bc5f58d5c9017fdce0878006c32f944fa8eb3d7ce62671257f5bcc7 |
| Japanese 1.02 update | Same Title and Content ID, APP_VER 01.02, VERSION 01.00, eboot.bin SHA-256 db96b839fe31adba4b3eb3547202f761d34881325c2fea650c4c020eded5d071 |
| European base | Title ID CUSA05262, Content ID EP1063-CUSA05262_00-ODINSPHERELE0000, APP_VER 01.00, VERSION 01.00, eboot.bin SHA-256 3e6b1741e8a404d0f8fbe10bce93c6887974566f5be09ef1bddc22a00ba29feb |
| European 1.01 update | Same Title and Content ID, APP_VER 01.01, VERSION 01.00, eboot.bin SHA-256 572bf21e57febee415d739cded5516def9ca81e867ad3184c989367248edcd7e |
| Hong Kong base | Title ID CUSA03873, Content ID HP0177-CUSA03873_00-ODINSPHERELE0000, APP_VER 01.00, VERSION 01.00, eboot.bin SHA-256 8c483dc2c06d958ccd84bdbf726df6d23e31592c7c1bb39eb5425718b5bc1eb3 |
| Asian base | The same Title ID, Content ID, APP_VER and VERSION as the Hong Kong base, eboot.bin SHA-256 85ea2e4396b94a7b228d11e35a267f401cb2957bd116b3a5d23f5b3cb15a2fb2; Odin2_BT_KO.CPK, Odin2_OR_KO.CPK and Odin2_RE_KO.CPK besides the _CN archives |
The launcher checks the Title ID, Content ID and versions in the package's param.sfo before it unpacks anything, and
the eboot.bin hash before it installs the result. An update is only laid over the base package of its own region,
with the same Title ID and Content ID. A package encrypted for a PS4 console cannot be unpacked on a PC. The two
CUSA03873 1.00 releases share every param.sfo field, so the launcher reads the package's eboot.bin to tell them
apart; the launcher calls them CUSA03873 1.00 HK and CUSA03873 1.00 Asia, and each has its own game folder, so
both can be installed.
Installing
No game files are included in the release, and the port does not download the game.
Windows
- Download OdinSphereLeifthrasirPC-v0.3.0-windows-x64.zip from the
latest release and extract it anywhere you
can write to (not
Program Files). It contains one folder,OdinSphereLeifthrasirPC-v0.3.0-windows-x64. - Run odin_sphere_leifthrasir.exe from that folder. The launcher opens.
- On the Play page click Install game... and select your own Odin Sphere Leifthrasir
.pkgfile. - Wait until Ready to play appears. The package is unpacked on your PC into the
gamefolder next to the program (about 3.3 GB). The.pkgfile is only read, and you can delete it afterwards. - USA 1.01, Japanese 1.02 or European 1.01: install the base package of that region first, then install its update
package the same way. The update is laid over the base and becomes the active build. A complete USA 1.01 package
(
CATEGORYgd,APP_VER01.01) installs by itself, without the base. - Press PLAY.
Reinstall game... on the Play page repairs the game files and keeps your settings and saves.
Linux and Steam Deck (experimental)
- Download OdinSphereLeifthrasirPC-v0.3.0-x86_64.AppImage, put it in a folder you can write to and make it
executable (right-click > Properties > Permissions > Is executable, or
chmod +x). - Run it and install your own
.pkgfrom the Play page, as on Windows.game,userandlogsare kept next to the AppImage. - On a Steam Deck, do this in Desktop Mode, then add the AppImage with Games > Add a Non-Steam Game to My Library and play it from Game Mode.
The AppImage mounts itself with FUSE, and when it cannot it unpacks itself into a private temporary folder, runs from there and removes the folder afterwards. It needs glibc 2.31 or newer: it is built on Ubuntu 20.04, and no file in it needs anything newer. Graphics drivers, the Vulkan loader, X11/Wayland and audio come from your system. The build, its checks and the differences from Windows are in docs/LINUX.md.
Windows SmartScreen
Windows may warn the first time the program starts, because releases are not digitally signed. If you downloaded it from this project's GitHub releases page, choose More info, then Run anyway. Each release lists the SHA-256 of its downloads; compare yours with it.
Saves and settings
Everything is kept next to the program (next to the AppImage on Linux):
| Folder | Contents |
|---|---|
user\osl.ini |
Launcher and game settings |
user\savedata\ |
Your saves |
user\trophy\ |
Your trophy progress and the trophy list and icons unpacked from your game |
user\keys.json |
Your Trophy Key, if you configure one |
user\cache\<Title ID>\ |
Shader cache, so later starts load faster |
logs\ |
One odin_sphere_leifthrasir_NNN.log per run, launcher and game together; the newest 50 are kept |
game\ |
The installed game (unpacked from your own package) |
The launcher
- Play: install or reinstall the game from your
.pkg, the Ready to play status and Show this launcher - Display: display mode, window size, monitor, Aspect Ratio, Renderer (Auto, Vulkan, OpenGL, and on Windows Direct3D 11), graphics card, VSync, Presentation, FSR 1 upscaling and RCAS sharpening
- Graphics: Render resolution, SMAA anti-aliasing and anisotropic texture filtering
- Gameplay: Menu & Subtitles language (every build), Skip intro, Unlock Bookshelf, Frame rate, frame rate and render resolution in the title, and the in-game frame counter
- Cheats: seven optional gameplay modifiers in two groups, Resources and Combat, each Off or On, and the Experience Multiplier (Off, 2x, 5x, 10x or 100x) last; they set the state the game starts with, and F10 changes them while playing
- Controls: Controller prompts (PlayStation or Xbox), Controller bindings, every keyboard binding and the port hotkeys, each with Reset to defaults. Xbox changes the button pictures the game shows (A/B/X/Y, LB/RB, LT/RT, MENU and VIEW) in the port's own copy of the game; the touchpad prompt becomes VIEW. PlayStation puts the originals back. Your
.pkgfile is never changed. - Trophies: your local PS4 trophy progress, the trophy list and the Trophy Key setup
- About: the port version, the game, the renderer and the library versions, the game, saves and logs folders, the settings file, Reset all settings, and Diagnostics with Detailed logging and a button that opens the logs folder
Hold Shift while starting to bring the launcher back after turning Show this launcher off. On Linux, Shift works
in X11 sessions; anywhere, starting with --launcher (or the desktop entry's Show launcher action) does the same.
Alt+F4 (or the window close button) quits the launcher. Esc cancels the keyboard-binding capture and pop-ups; it does not quit. Ctrl+S saves the launcher settings without starting the game.
The Render resolution and Aspect Ratio options change the game's verified internal render-target sites. Only 16:9 Original is undistorted: the game's 2D scene is still laid out for its original 16:9 canvas, so 21:9 and 32:9 stretch the gameplay horizontally instead of showing more of the world, and 16:10, 4:3 and 5:4 squeeze it. The HUD, menus and prerendered videos are not adjusted either. CUSA05083 1.01 USA and both CUSA03873 1.00 releases offer them when their installation scan found their sites.
Each build's own text is used, and no region's assets are ever mixed.
Cheats (all Off by default): the Cheats page sets the state the game starts with. While playing, F10 (the default;
the Controls page can rebind it) opens the in-game CHEATS menu: move with the arrow keys, the D-pad or the left stick,
turn a row Off or On with Enter, Space or Cross (A) (or click it), and close the menu with F10, Esc or
Circle (B). Each row shows
Off, On or Unavailable; the last row, Experience Multiplier, steps through Off, 2x, 5x, 10x and 100x. A change made there applies immediately, lasts for the current session only and never
touches your launcher settings: the next start follows the launcher again. Each cheat hooks a few instructions of the game's
code in memory, found by their code and checked byte for byte first, and the hooks stay in place while a switch decides
what they do; the game files, boot.bin and your saves are never modified. A cheat whose code is not found exactly once
in the installed build shows as Unavailable, and the run log says why. They are stored in user\osl.ini as cheat_max_gold_gain, cheat_max_phozon_gain,
cheat_no_ap_consumption, cheat_infinite_pp, cheat_infinite_pow, cheat_infinite_health and cheat_infinite_arrows,
and the multiplier as cheat_experience_multiplier (1, 2, 5, 10 or 100; anything else is Off).
- Max Gold Gain: picking up gold or selling at a shop sets your gold to 999,999; buying still costs gold
- Max Phozon Gain: absorbing a phozon fills your phozon stock to its maximum
- No AP Consumption: learning an ability on the Ability screen does not spend AP
- Infinite PP: PP refills to its maximum whenever it changes
- Infinite POW: using a skill refills POW instead of spending it
- Infinite Health: damage does not lower the controlled character's HP; healing still raises it, and enemies take damage as usual
- Infinite Arrows: Mercedes's normal crossbow shots refill her POW instead of spending it
- Experience Multiplier: multiplies the experience each award adds, once, before the game's own bonuses; one award is never worth more than 2,500,000 (the total the last level needs). Level-ups, their thresholds and the AP they give follow the game's own rules, so a large award can raise several levels at once
The same switches work in Refined and Classic mode: the executable holds a separate gameplay engine for each, and every cheat that has something to change is hooked in both. In Classic, gold is five coin stacks (worth 10, 5, 20, 10 and 1 G, 999 coins at most each), so Max Gold Gain fills all five on a sale or a coin pickup: 45,954 G, the most Classic can hold. Max Phozon Gain fills PP on every phozon absorbed and takes the Psypher level to its last (98) on the first, through the game's own level-ups. Infinite Health covers hits and other damage, Infinite POW the POW gauge that attacks, guarding and skills drain, Infinite PP the PP that Psypher skills spend and Infinite Arrows Mercedes's ammunition (every shot kind), for the controlled character only. The Experience Multiplier behaves as in Refined, capped at 99,999,999 experience in Classic, where experience comes from food and items only (defeated enemies give none). No AP Consumption is already true in Classic, which has no AP (skills unlock by Psypher level, free); the run log says so.
Their availability depends on the executable's verified code: the five builds this port is tested with locally (USA 1.00, Japan 1.00 and 1.02, Europe 1.00 and 1.01) hold every cheat's code and the Experience Multiplier's; the other builds are checked the same way at game start.
Menu & Subtitles is offered on every build, listed as English, Portuguese (Brazil), then the build's own other
languages alphabetically: French, German, Italian and Spanish for Europe; Japanese for Japan; Korean and Traditional
Chinese for HK and Asia (only the Asian release ships Korean archives, so Korean is unverified on HK); none for USA. English and Portuguese (Brazil) have the same keys (english,
portuguese_brazil) on every build, so either choice survives switching builds. Where a build has no English (Japan,
HK, Asia) the port serves English from its own corpus over the native slot. Portuguese (Brazil) is served over a native
slot too: English on USA, Spanish on Europe, Japanese on Japan and Chinese on HK and Asia. The translated text is read
from the port's embedded corpus when the game reads its archives; the archives on disk are never written, and any
record whose installed text differs from the text the translation was made from keeps the game's text (see
localization/pt-BR/README.md and localization/en/README.md).
With Portuguese (Brazil) selected the launcher and the port's in-game screens are in Portuguese; with any other language
they are in English. The setting is stored in user\osl.ini as text_language. A saved native language the selected
build does not offer is replaced by that build's default.
Portuguese (Brazil) covers the game's text, subtitles and story, and in both Refined and Classic mode the art
that carries words: the title menu (NOVO JOGO, CARREGAR, SAIR DO JOGO, PRESSIONE QUALQUER BOTÃO), the HUD and menu tabs,
save and load screens, stage results, stage and location cards, chapter and act titles, the chapter prologue pages, Mode
Select, the kitchen, the world map and the Bookshelf NEW badge. Letters the game's fonts lack (ã õ Ã Õ Ç and others) are
drawn into your own font atlas, in memory. The accents are verified against the real files of USA 1.00, Europe 1.00 and
1.01 and Japan 1.00 and 1.02 (Japan 1.00 translates 9,321 of 14,925 records and 1.02 translates 14,148; the rest keep
Japanese). USA 1.01, HK and Asia use the same translation, but their executables' fonts have not been measured, so a
record that needs a letter the font lacks keeps the game's own text there. Painted screens that are still English: the
Bookshelf book frames, the manual pages, the Skill screen and the Classic logo and ending layouts.
Voice Language is the game's own setting. The European build ships the Japanese and English voice banks in its
single Odin2_BT_UK.CPK audio container (the per-language Odin2_BT_*.CPK files are secondary), and the in-game
Options → Voice Language chooses between them. The launcher does not add a Voice Language option and does not
change the game's choice; Menu & Subtitles affects text only.
Skip intro (Gameplay, Off by default) skips the startup notice and the title intro with its logos, so the game opens
at the title's PRESS START, in both Refined and Classic mode. It acts once per start of the game: returning to the title,
switching mode and the title's own demo play as usual. The save data and trophy checks before the title still run. It is
stored in user\osl.ini as skip_intro, and it is available on every build whose executable sites were found (the five locally tested builds, and USA 1.01, HK and Asia when their installation scan finds them).
Unlock Bookshelf (Gameplay, Off by default) makes the attic Bookshelf usable from the start of the game and shows
every entry in it: the Prophecies, Alchemy, Notes, Cafe and Kitchen recipes, and the Special artwork. It only changes
what the Bookshelf shows. Your save is not changed, nothing is marked as found, no trophy is affected, and turning the
option Off puts the Bookshelf back to what your save has earned. It is stored in user\osl.ini as unlock_bookshelf,
and it is available on the same builds as Skip intro.
Frame rate (Gameplay, 60 FPS (Original) by default) chooses how many frames a second reach the window: 30 FPS, 60 FPS
(Original), 90 FPS, 120 FPS, 144 FPS, 165 FPS, 240 FPS or Unlimited. It is stored in user\osl.ini as frame_rate (30, 60,
90, 120, 144, 165, 240 or 0 for Unlimited; anything else reads as 60), it applies the next time the game starts, and it is
available for every supported build, language and renderer.
- The game still creates 60 unique frames per second whatever the setting. Its logic, animation, physics, input and vblank stay at their original rate, so game speed does not change. Nothing is interpolated or synthesised, and the game's executable is not patched.
- Above 60 the latest completed frame is presented again between the game's own frames (120 FPS shows each frame twice). 30 FPS shows every second frame. Unlimited repeats up to 480 times a second.
- VSync can cap the rate at the monitor's refresh rate: 120 FPS on a 60 Hz display with VSync On is presented at 60. Turn VSync Off on the Display page, or use a faster monitor, to present more.
- Frame rate in title and the frame counter show the presentation rate, so they follow this setting.
This is the Frame rate part of issue #13. HD texture pack support and DLSS from the same issue are separate requests and are not part of it.
Screenshots
Controls
- F10 opens the in-game Cheats menu while playing, for the current session only; the key can be changed on the Controls page.
- F11 switches between Windowed and Borderless Fullscreen while playing; the key can be changed on the Controls page.
- F2 shows or hides the in-game frame counter while playing, for the current session only.
- Xbox controllers work without setup (on Linux through SDL's gamepad support).
- The keyboard plays too: the Controls page lists every binding, and Reset to defaults restores them.
- Controller bindings rebinds the controller: each row is a PlayStation button, which is what the game receives, and you click it and press the controller button (or pull a trigger) that should press it. For example, set R1 (RB) to B to put R1 on B. Bindings are one set for every connected controller, one controller button can drive more than one row, and Reset to defaults restores the standard layout. The game still decides what each PlayStation button does.
- Controller prompts chooses the button pictures the game shows: PlayStation (the original) or Xbox. It only changes the pictures, never the bindings.
- Advanced: the
OSL_PAD_MAPenvironment variable (for examplecross=b,circle=a) still overrides the saved controller bindings for one run.
Trophies
Trophies are local and offline: unlocks are kept in user\trophy\ on this PC, nothing is sent anywhere, and the
launcher's Trophies page lists your progress with the trophy list and icons unpacked from your own game.
Updates
When the launcher opens it asks GitHub once, in the background, for the latest release. A newer one is shown at the top
right of the header with its release notes and UPDATE NOW; the launcher downloads it, checks its SHA-256 checksum,
replaces only the port's own files and restarts. The game files, user and logs are never touched, and a failed
update puts the previous version back. Without a connection, or while there is no release, nothing is shown. Downloads are
accepted only over HTTPS from GitHub's release hosts and this project's release assets, and a transfer that stalls is
cancelled and can be retried.
- Windows: the release ZIP's one folder is unpacked into a temporary workspace, and the small helper
trg-updater.exe, run from that workspace, waits for the launcher to close, backs up and replaces the program files, rolls them back if anything fails, and starts the new version with the launcher shown. - Linux: the AppImage you started (not a mounted or unpacked copy) is replaced next to itself and started again.
Logs, crash reports and freezes
Detailed logging (About, Diagnostics) is on by default and keeps the log of every session. The launcher and the
game write one odin_sphere_leifthrasir_NNN.log for the whole run; it records the port version, the operating system,
the processor, the game build and the graphics and display settings, and nothing per frame. Turned off, a
run still writes its log while it runs, but a normal exit discards it so normal sessions do not accumulate files. A
crash or abnormal exit keeps the log, and crash diagnostics are never discarded: a crash appends one CRASH REPORT
section (exception, faulting module or guest offset, registers and stack) to the same log, and no other crash file or
minidump is written. The newest 50 numbered logs are kept. Open logs folder opens the folder that holds the logs,
creating it first when it does not exist.
On Windows, a freeze that is not a crash writes logs\hang_NNN.txt: the port version, the game build, and a short stack
(module and offset, or guest offset) for every thread. The run's log gets one line naming the file and is kept even with
Detailed logging off. It is written when the game window stops answering for 5 seconds, or when no frame is presented
for 15 seconds while the game is in front and not minimized. The game keeps running, and a session writes at most three such files. Linux writes no freeze report.
Building it yourself
- Install MSYS2 with the CLANG64 toolchain.
.\tools\setup.ps1checks it and prints thepacmancommand for anything missing. .\tools\build.ps1fetches the pinned dependencies (TRG Launcher, Dear ImGui and a few small libraries) and buildsbuild\cmake\clang64\bin\odin_sphere_leifthrasir.exe..\tools\build.ps1 -Runalso starts it. Install the game from the launcher's Play page, as in a release; the development build keeps it ingame\prepared\<build folder>and the boot image inbuild\image\<build folder>of the repository (CUSA05083-1.00,CUSA05083-1.01,CUSA01290-1.00,CUSA01290-1.02,CUSA05262-1.00,CUSA05262-1.01,CUSA03873-1.00orCUSA03873-1.00-Asia)..\tools\test.ps1builds and runs the focused headless tests in groups (-Group Runtime, RuntimeStability, CPU, Packages, Launcher, Updater, Features, Graphics; the Graphics group covers the renderer selection, the OpenGL backend and the pinned ANGLE runtime without creating a window or a graphics context; the Launcher group includes the Bug Report page and its Worker, the Updater group the loopback network tests; the Features group proves the title menu's Exit Game art for every supported build and language, and needs Python with numpy, scipy and Pillow:.\tools\setup.ps1 -InstallPython)..\tools\worker.ps1 -DryRunchecks the Bug Report Worker's deployment without uploading it, and.\tools\worker.ps1deploys it (see docs/BUG_REPORTS.md). Python is not needed to build, run or play; the optional development scripts inscripts\use it (.\tools\setup.ps1 -InstallPython)..\tools\package.ps1builds the Release configuration (.\tools\build.ps1 -Release, inbuild\cmake\clang64-release:-O3with ThinLTO across the program and its own libraries, without a symbol table or build id) and the release update helper (.\tools\build-updater.ps1: MSYS2 CLANG64 clang++ and LLD, static, only Windows system DLLs, its debug information split intotrg-updater.debug), then packagesdist\OdinSphereLeifthrasirPC-v<version>-windows-x64.zip, which holds one folder of that name, and its.sha256file. The ZIP is extracted again, compared file by file with the staging folder and scanned, checked with the updater's own rules, and the update helper tests run against the packagedtrg-updater.exe;trg-updater.debuggoes todist\OdinSphereLeifthrasirPC-v<version>-windows-x64-symbols\, outside the ZIP..\tools\package.ps1 -VerifyOnly <ZIP>checks a finished ZIP, and.\tools\test-release-check.ps1checks that the release check refuses player files, game data, symbols, local paths and leftovers. Nothing is published.- Linux:
tools/build.shbuilds on Linux x86_64 (--releasefor the Release configuration inbuild/cmake/linux-release), andtools/package-linux.shpackagesdist/OdinSphereLeifthrasirPC-v<version>-x86_64.AppImageand its.sha256on Ubuntu 20.04 (in WSL2 from this Windows checkout:tools/package-release-linux.sh);--verify-only <AppImage>checks a finished one. See docs/LINUX.md.
The version is OSL_PORT_VERSION in CMakeLists.txt, the only place it is written: the program's version resource, the
launcher, the logs, the updater and the release file names all come from it.
What rebuilds
The build is incremental: ninja: no work to do means every input is unchanged.
- The video core in
gpu\shadps4is this project's own fork of shadPS4 (provenance in gpu/VENDOR.txt) and is edited in place. Ninja compiles it directly, so an edited source or header rebuilds its objects and relinks the loader. - The pinned dependencies in
gpu\deps.txtare fetched bybuild.ps1into git-ignored folders, which stay pristine and record their commit in.osl_commit. Changes to them go ingpu\patches\<dependency>\NNNN-name.patch. CMake applies the patches to a copy inbuild\cmake\clang64\patchedwhenever a patch, the patch list or the pinned commit changes, and rewrites only the files whose content changed. - Ninja re-runs CMake by itself when a CMake file,
gpu\deps.txtor a patch changes. A plainninjastops with a message when a dependency must be fetched again first. build.ps1rebuilds the boot image when the game is installed again or the builder sources change.src\import_names.incis generated by hand from a game's imports:python scripts\gen_import_names.py <game dir> --aerolib <aerolib.inl>.
Reference comparison
When a PS4 behavior needs research, the reference ports this one grew from are listed in gpu/VENDOR.txt: the shadPS4 video core, gow3_pc and its lineage (uncharted-ndc-native, MediEvil PC, the HayatoG ports) and my own Dragon's Crown Pro PC port, which is the architectural model for the loader, runtime, launcher and installer.
Reporting problems
If the game does not start or crashes, please open an issue.
Attach the newest odin_sphere_leifthrasir_*.log file from the logs folder next to the program, and say what you were
doing when the problem happened. The launcher and the game write to the same log for one run; after a crash the log
ends with a CRASH REPORT section, and no separate crash file or minidump is written. One log is normally enough. If
the game froze without crashing, attach the newest hang_NNN.txt from the same folder as well.
For a problem that is not a crash, keep Detailed logging on in the launcher (About, Diagnostics), reproduce it, and send the newest log. On Linux, please also give your distribution, your GPU and its driver.
If the launcher says Unsupported Odin Sphere Leifthrasir build, attach that complete log to an issue. The launcher has already read the package or folder without changing or unpacking it and written what is needed to add the build: hashes, metadata, file sizes and the executable's structure, never the game's content. Never upload game files. The diagnostics alone do not make a build supported; it stays refused until a release adds it.
The launcher's Bug Report page builds the report for you: it shows the description, the system details and the
selected log after the privacy filter, and Send report sends it to the developer. Save report writes the same
report to logs\reports if you would rather attach it to a GitHub issue. How reports work and what they contain is in
docs/BUG_REPORTS.md.
Sponsoring
Odin Sphere Leifthrasir PC is maintained and developed in my free time. If you enjoy the project or find it useful, consider supporting its continued development.
Credits
- Odin Sphere Leifthrasir by Vanillaware, published by Atlus (2016). This is an unofficial fan-made PC port. It is not affiliated with or endorsed by Vanillaware, Atlus, SEGA, Sony Interactive Entertainment or any other rights holder, and it contains none of their files.
- ANGLE (BSD-3-Clause), which runs the experimental Direct3D 11 renderer on Windows; the OpenGL and Direct3D 11 renderers are ported from Dragon's Crown Pro PC (docs/opengl-renderer.md)
- shadPS4 for the Vulkan renderer, shader recompiler and GPU command processing the video core is built on, and for the PS4 package extractor the installer is adapted from
- gow3_pc and its lineage, uncharted-ndc-native, MediEvil PC and the HayatoG ports, for the loader, runtime and video core this port grew from
- Dragon's Crown Pro PC, the port this architecture is reproduced from
- Initial CUSA03873 cheat patch research was contributed by @zarawong272-cloud in Issue #20
- The fallback for graphics drivers without sparse buffer binding, and the fixes for audio after resuming from sleep and for pipeline hitches, follow PR #21 by N0rule and PR #24 by KlaPeWin; they were reimplemented in this port rather than merged
- TRG Launcher by TekRantGaming, the launcher interface, pinned at v1.1.0, licensed under the MIT License
- The licenses of the libraries the release includes are in the
licensesfolder of the ZIP
AI disclosure
AI tools were used to assist with code analysis, development, debugging and documentation. Changes were directed, tested and reviewed by the maintainer.
License
Original code in this project is licensed under the GNU General Public License v2.0 or later (GPL-2.0-or-later). See LICENSE.
Third-party components retain their respective licenses and notices. See packaging/licenses/THIRD-PARTY-LICENSES.txt.
No game files are included. Odin Sphere Leifthrasir and its assets are not covered by this project's license.
Ähnliche Projekte entdecken
Wird geladen…