pt-pc README

The project's README from github.com/LoreanXavier/pt-pc. As one markdown file: README.md.

P.T. for PC

Lisa in the hallway

If the port is worth something to you, you can support me on Patreon: patreon.com/loreanxavier. It keeps the testing hardware and the releases coming.

This is a native PC port of P.T., the 2014 PS4 teaser by Kojima Productions. It is not an emulator. The game logic was rebuilt in C++ from the original's behaviour and the renderer is written on Vulkan; every level, model, texture, sound, script and cutscene is read at run time from your own copy of the PS4 game. There is no game data in this repository and none in the installer.

I made this on my own, in my spare time, because P.T. deserved to keep existing somewhere other than on consoles that still have it installed. It plays the whole teaser from the first wake-up to the street, with the voice part included.

What you need

Installing

Download the installer from the Releases page: P.T.PC.Port.Setup.exe on Windows, the Linux setup binary on Linux. Point it at your dump folder or fake PKG and at a destination folder (the default on Windows is %LocalAppData%\Programs\P.T. PC Port). It copies the three game archives it needs (chunk1.psarc, texture.qar, pathid_list_ps4.bin) next to the port and makes a shortcut if you want one. The eboot, modules and system files are not used.

Linux: chmod +x the setup and run it from a terminal. The game needs only glibc and the system's Vulkan driver. On a Steam Deck install from desktop mode and add pt as a non-Steam game; it runs on SteamOS as it is.

There is also a portable zip on the Releases page if you prefer to put the game files in place yourself: unpack it, then start pt.exe --game <your CUSA01127 folder> once, or put the folder next to the executable as game/CUSA01127.

Settings go to %APPDATA%\pt-port\pt\pt.ini on Windows and ~/.local/share/pt-port/pt/ on Linux, together with the save, the log (pt.log) and crash dumps. The game checks the Releases page for a newer version once at start; [network] check_updates = 0 turns that off.

Playing

Mouse and WASD, right mouse button to zoom, left button, Enter or E to interact, Esc for the pause menu, Alt+Enter for fullscreen, F10 for the PC settings. Any gamepad works as the PS4 pad; the button prompts follow whatever you used last (keyboard, PlayStation, Xbox or Switch). Vibration follows the original's patterns. The in-game options (brightness, subtitles, camera inversion) are the original ones, and as on the PS4 the option screen and the preface only play on a first start.

What the port adds

Everything below is off or set to the original's behaviour by default. The PS4 look is the baseline; the extras are there if you want them.

Display and image

Extras

Languages

Mods

Building from source

Windows: Visual Studio 2022 Build Tools, LLVM (clang-cl), the Vulkan SDK, CMake 3.28 and Ninja. Then

tools\build_pt.bat release

gives build\release\pt.exe. CMake fetches the dependencies (SDL3, zlib, volk, VMA, glm, Dear ImGui, stb, Lua 5.1, libogg, libvorbis, whisper.cpp) and downloads the Whisper and Silero models and the upscaler SDK files, each checked by SHA-256. A failed SDK download leaves that upscaler out; -DPT_UPSCALERS=OFF builds without any. python tools\package.py turns the build into the portable folder and zip.

Linux: cmake -G Ninja -B build/linux -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build/linux --target pt. GCC 13 or clang 17, the Vulkan headers and glslc. The upscalers are Windows-only SDKs and are left out there. tools/linux/ has the cross build I use from Windows. More in docs/linux.md.

The unit tests are CMake targets (pt_tests, pt_mods_test and the others in CMakeLists.txt). python tools/walkthrough.py --exe build/release/pt.exe --game <folder> plays the whole game without a window through the scripted routes in tests/walkthrough/ and checks the log; it is how I make sure a change did not break a loop.

The installer is installer/: a native C++ setup (pt_setup, built when a payload exists) and a small LGPL extraction helper in C# that reads fake PKGs with LibOrbisPkg. docs/installer.md describes how it decides what it accepts.

Other docs: docs/upscaling.md, docs/vr.md, docs/updates.md, and the file format notes in docs/formats/ that came out of reverse engineering the game data, with the tools in tools/ that read those formats.

Thanks

P.T. is the work of Kojima Productions and is owned by Konami. This project is not affiliated with, endorsed by or connected to either of them. It contains none of their assets and does nothing without your own copy of the game.

The shadPS4 emulator was my reference for how the original behaves on the PS4 and for checking the port's frames against it. Thanks to its developers.

The port is built on SDL3, Vulkan (volk, VMA), glm, Dear ImGui, stb, Lua 5.1, libogg and libvorbis, whisper.cpp with OpenAI's Whisper model and the Silero VAD for the voice part, Real-ESRGAN with ncnn for the enhanced textures, AMD FidelityFX, NVIDIA DLSS and Intel XeSS for the upscalers, the Khronos OpenXR loader for VR, HarfBuzz on Linux and the Noto fonts for the added languages, and LibOrbisPkg in the installer. Their notices ship in licenses/ next to the executable.

License

The port's own code is under the MIT license (see LICENSE). The third-party pieces listed above keep their own licenses.

pt-pc (LoreanXavier/pt-pc)

Searching Database…

1.9K ·GitHub
Что это?Нативный PC-порт P.T. — тизера 2014 года для PS4 от Kojima Productions. Это не эмулятор: игровая логика переписана на C++, рендерер написан на Vulkan, а все ассеты (уровни, модели, текстуры, звуки, скрипты, катсцены) во время работы читаются из вашей собственной копии PS4-игры.
Как его установить и запустить?Скачайте установщик со страницы Releases (P.T.PC.Port.Setup.exe для Windows, установочный бинарник для Linux), укажите папку с дампом или fake PKG и папку назначения; он скопирует три нужных игровых архива рядом с портом. Есть и портативный zip, если вы предпочитаете разложить игровые файлы сами.
Что реально нужно, чтобы в неё поиграть?Ваша собственная копия P.T. (сборка проверялась с американским релизом CUSA01127, в виде папки дампа или fake PKG), Windows 10/11 x64 или Linux x86-64 с glibc 2.38+, а также GPU и драйвер с поддержкой Vulkan 1.3. Микрофон нужен для одного эпизода с распознаванием голоса, но при его отсутствии можно назначить клавишу.
Можно ли использовать купленный в магазине цифровой экземпляр P.T.?Нет. PKG из магазина зашифрован под конкретную консоль, и ничего в этом проекте его не расшифровывает; нужен дамп или fake PKG. Лично автор проверил только американский релиз (CUSA01127), хотя европейский и японский релизы устанавливаются с одной оговоркой.
Он работает на Steam Deck?Да, на SteamOS он работает как есть. Установите его из режима рабочего стола и добавьте бинарник как игру, не от Steam.
Нужна ли конкретная видеокарта для апскейлеров?Для DLSS нужна карта GeForce RTX, а DLSS Frame Generation — RTX 40-й серии или новее; FSR и XeSS работают на любом современном GPU, генерация кадров FSR 3 доступна начиная с Radeon RX 5000. Трассированные тени, AO и отражения дополнительно требуют GPU с Vulkan ray queries.
Можно ли модифицировать игру?Да. Папка mods рядом с исполняемым файлом может заменять игровые файлы, текстуры и звуки и запускать Lua-скрипты, реагирующие на игровые события; описание — в docs/modding.md и docs/luaapi.md.
Есть ли поддержка VR?Есть экспериментальная поддержка VR через OpenXR, но автор отмечает, что проверял её только на эмулированном рантайме, так как шлема у него нет.
Какие дополнительные функции есть в порту по сравнению с оригинальной PS4-версией?Фоторежим, свободная камера, браузер циклов для перехода к любому циклу дома после его прохождения, музей разблокированного контента, Game+, спидран-таймер с интеграцией LiveSplit, экспериментальный вид от третьего лица, апскейлеры (DLSS/FSR/XeSS) и генерация кадров, а также несколько добавленных языков субтитров.
Зачем автор создал этот проект?Он хотел, чтобы P.T. продолжала существовать где-то ещё, кроме консолей, где она случайно осталась установленной, ведь Konami убрала игру из PS Store.
Size
26.1 MB
Stars
1.9K
Age
11d
Commits · 90 Days