pt-pc README

README проекта с github.com/LoreanXavier/pt-pc. Одним файлом markdown: README.md.

P.T. for PC

A native PC port of P.T., the 2014 PS4 teaser by Kojima Productions. Windows, Linux and macOS.

Support the port on Patreon

Download the latest release Downloads Discord

Lisa in the hallway

[!IMPORTANT] This port is made by one person in their spare time. If it gave you a good scare, please consider supporting it on Patreon. It pays for the testing hardware and keeps the updates coming.

[!NOTE] Bug reports: I've closed GitHub Issues because of ongoing spam attacks. Please join the Discord server to report bugs.

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, with Vulkan and DirectX 12 renderers; 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.

The port runs on its own engine, Hallway Engine. It is open source under GPL-3.0 with an attribution term: if you build on it, keep the credit "Built on Hallway Engine by LoreanXavier" in your credits and publish your changes under the same license (see License).

I made this in my spare time, with AI tools (see AI Disclosure at the end), 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.

macOS: download P.T.PC.Port-macOS-arm64.zip (M1 and later) or P.T.PC.Port-macOS-x64.zip (Intel), unzip P.T. PC Port.app, open it once and allow it under System Settings > Privacy & Security (it is not signed with a Developer ID), then pick your dump folder when it asks. A fake PKG has to be extracted on Windows or Linux first. Intel Macs need a GPU that MoltenVK can run the renderer on; the port was written without a Mac at hand and the Intel app has not been run on one yet. More in docs/macos.md.

Windows and Linux releases include installers and portable ZIPs. To update an existing installation, use the game's update button or run the new installer over it. Your game archives, settings, saves and mods stay.

On Windows and Linux, settings, saves, logs and cache live in data/ beside the executable. The game migrates existing user data without overwriting newer files. On macOS, these stay in ~/Library/Application Support/pt-port/pt/. The game checks GitHub Releases for a newer version at startup; [network] check_updates = 0 disables that check.

Thanks to ahm3texe for the Apple silicon port, totsu0jv for Czech translation, and yewhochen for the Linux library-loading and startup-focus fixes.

Antivirus warnings

Some antivirus programs flag the installer or pt.exe. These are false positives. The files are not code signed (a certificate costs more every year than this free project makes), and an installer that unpacks programs and starts one of them is exactly what heuristic scanners watch for. On VirusTotal the release files are flagged by 1 to 3 engines out of about 70. Every line of the port is in this repository, so you can read it or build it yourself (see Building from source). If your antivirus stops the installer, save it to a folder first instead of opening it from the browser, or use the portable ZIP.

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

The Original preset keeps the PS4 look. The port also includes the following features.

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 Google libsbc) and downloads the Whisper and Silero models and the upscaler SDK files, each checked by SHA-256. Windows release builds require the upscaler SDKs and stop if required downloads fail. 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. Linux includes DLSS and FSR 3.1; XeSS and DLSS Frame Generation are Windows-only. tools/linux/ has the cross build I use from Windows. More in docs/linux.md.

macOS (Apple silicon or Intel, built for the CPU it runs on): the command line tools, then brew install cmake ninja shaderc vulkan-headers vulkan-loader and cmake -G Ninja -B build/macos -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build/macos --target pt. python3 tools/macos/make_app.py makes the app bundle and its zip. The upscalers and the VR mode are left out there too, and MoltenVK has no ray queries. More in docs/macos.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.

Support the port

Become a patron

Every release is built, tested on real hardware and checked against the PS4 by hand. Patreon support is what makes that possible: new GPUs and handhelds to test on, the Mac and Steam Deck work, and the time to keep fixing what players report. Thank you to everyone who already helps.

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, Google libsbc for the DS4 speaker, AMD FidelityFX, NVIDIA DLSS and Intel XeSS for the upscalers, MinHook in the DLSS 5 companion, 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, Hallway Engine included, is under the GNU General Public License v3.0 or later (see LICENSE) with the additional terms in ADDITIONAL-TERMS.md:

Please also name Hallway Engine on your README and release page. Releases up to and including 1.1.1 were published under MIT and stay under it.

P.T. and all of its content belong to Konami, and the third-party pieces listed above keep their own licenses (see NOTICE).

AI Disclosure

AI coding tools were used in developing and debugging this port. My focus has been on matching the original P.T.: comparing builds with PS4 references, identifying discrepancies, testing gameplay and prioritizing fixes.

The project uses the original game assets from the player's own PS4 copy. Optional upscalers and neural rendering use machine-learning models when enabled.

pt-pc (LoreanXavier/pt-pc)

Ищем в базе…

Что это?Нативный 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.
Автор
LoreanXavier
Размер
39.4 MB
Звёзды
2.5K
Возраст
1 мес
Коммиты · 90 дней