ps4 & ps5 emulator

Related tags

Miscellaneous Kyty
Overview

Kyty

ps4 & ps5 emulator

The project is in its early stage.

Vladimir M

Licensed under the MIT license.

Building

Supported platforms:

  • Windows 10 x64

Toolchains:

  • Visual Studio + clang-cl + ninja
  • Eclipse CDT + mingw-w64 + gcc/clang + ninja/mingw32-make

Supported versions:

Tool Version
cmake 3.12
Visual Studio 2019 16.10.3
clang 12.0.1
clang-cl 11.0.0
gcc (MinGW-W64 x86_64-posix-seh) 10.2.0
ninja 1.10.1
MinGW-w64 8.0.0
Eclipse CDT 10.3.0

MSVC compiler (cl.exe) is not supported!

External dependencies:

  • Vulkan SDK 1.2.176.1
Issues
  • multiple issues with initial commit code

    multiple issues with initial commit code

    1. Kyty/source/3rdparty/easy_profiler/src/event_trace_win.cpp:237:19: error: 'GetProcessIdOfThrea ' was not declared in this scope 237 | pid = GetProcessIdOfThread(hThread);

    solved by #define _WIN32_WINNT 0x0600

    at top of cpp

    1. Kyty/source/emulator/src/Graphics/Tile.cpp:434:20: error: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Werror=sign-compare] 434 | for (int l = 0; l < levels; l++)

    solved by

    for (uint32_t l = 0; l < levels; l++)

    1. error at linking stage (vulkan and sockets stuff)

    solved by puting the correct order in the libraries, like this:

    3rdparty/vulkan/libspirv-tools-opt.a 3rdparty/vulkan/libspirv-tools.a -lws2_32 -lpsapi

    inside build.ninja's LINK_LIBRARIES (this isn't optimal and it should be fixed in the CMakefiles instead but i don't know how to do it)

    opened by zecoxao 7
  • is this issue from a mistake i made or what ?

    is this issue from a mistake i made or what ?

    exe_name = E:/Kyty/Kyty/Kyty/fc_script.exe Initialized: Config Initialized: Profiler Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Graphics Initialized: Audio --- Stack Trace --- [0] 0000000140274492, 0000000140274310, RuntimeLinker.cpp.obj, Kyty::Loader::RelocateHandler(Kyty::Loader::RelocateHandlerStack) [1] 0000000010122bb9, 0000000000000000, unknown, unknown [2] 0000000000000050, 0000000000000000, unknown, unknown [3] 0000000010122bb9, 0000000000000000, unknown, unknown [4] 0000000140599f08, 0000000000000000, unknown, unknown --- Error --- === Unpatched function!!! === [9] bzQExy189ZI[libc_v1][libc_v1.1][Func] in C:/projects/kyty/source/emulator/src/RuntimeLinker.cpp:459

    opened by MedoGamer888 6
  • Unknown exception (sample used to work before)

    Unknown exception (sample used to work before)

    Logs:

    exe_name = C:/Users/zeluis/Desktop/Kyty/fc_script.exe Initialized: Config Initialized: Profiler Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Graphics Initialized: Audio --- Stack Trace --- [0] 0000000140272c0c, 0000000140272aa0, RuntimeLinker.cpp.obj, Kyty::Loader::kyty_exception_handler(Kyty::Loader::VirtualMemory::ExceptionHandler::ExceptionInfo const*) [1] 000000014026dacd, 000000014026da60, VirtualMemory.cpp.obj, Kyty::Loader::VirtualMemory::ExceptionHandlerPrivate::Handler(_EXCEPTION_RECORD*, unsigned long long, _CONTEXT*, _DISPATCHER_CONTEXT*) [2] 00007ffa790e86ef, 0000000000000000, unknown, unknown [3] 00007ffa79075aea, 0000000000000000, unknown, unknown [4] 00007ffa790e76fe, 0000000000000000, unknown, unknown [5] 0000000010071806, 0000000000000000, unknown, unknown [6] 0000000010063f5f, 0000000000000000, unknown, unknown --- Error --- Unknown exception!!! in C:/projects/kyty/source/emulator/src/RuntimeLinker.cpp:172

    Before, videoout_basic.elf would display and work properly, now it doesn't. Any idea why?

    opened by zecoxao 5
  • Add GitHub Actions

    Add GitHub Actions

    See https://github.com/ultimaweapon/kyty/runs/6632324680 for the example run.

    Everything went well until almost finished with the following error:

    [ 97%] Built target emulator
    Consolidate compiler generated dependencies of target fc_script
    [ 97%] Linking CXX executable fc_script.exe
    process_begin: CreateProcess(D:\a\kyty\kyty\__bin\fc_script.exe, ..\..\__bin\fc_script D:/a/kyty/kyty/source/map_to_csv.lua fc_script mingw 64 ld, ...) failed.
    make (e=216): Error 216
    mingw32-make[2]: *** [CMakeFiles\fc_script.dir\build.make:148: fc_script.exe] Error 216
    mingw32-make[2]: *** Deleting file 'fc_script.exe'
    mingw32-make[1]: *** [CMakeFiles\Makefile2:473: CMakeFiles/fc_script.dir/all] Error 2
    mingw32-make: *** [Makefile:135: all] Error 2
    

    I'm appreciate if you can point out how to fix this error. Thanks.

    opened by ultimaweapon 4
  • Error compiling

    Error compiling

    I get those errors when try to link with Visual Studio 2019 or 2022

    KytyScripts.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl Kyty::Emulator::EmulatorSubsystem::Init(class Kyty::Core::SubsystemsList *)" ([email protected]@[email protected]@@[email protected]@[email protected]@Z) 2>KytyScripts.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl Kyty::Emulator::EmulatorSubsystem::Destroy(class Kyty::Core::SubsystemsList *)" ([email protected]@[email protected]@@[email protected]@[email protected]@Z) 2>KytyScripts.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl Kyty::Emulator::EmulatorSubsystem::UnexpectedShutdown(class Kyty::Core::SubsystemsList *)" ([email protected]@[email protected]@@[email protected]@[email protected]@Z)

    Regards

    opened by thx4ever 4
  • launcher fails opening with

    launcher fails opening with "This application failed to start because no Qt5 plugin could be initialized"

    builds and links just fine, fc_script launches just fine, but when you try to launch the launcher (together with the required dll dependencies) that message pops up.

    Any idea what it could be?

    opened by zecoxao 2
  • failure to link 3rdparty/rijndael/librijndael.a (only in the clang specific builds)

    failure to link 3rdparty/rijndael/librijndael.a (only in the clang specific builds)

    FAILED: 3rdparty/rijndael/librijndael.a cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E rm -f 3rdparty\rijndael\librijndael.a && C:\ProgramData\chocolatey\lib\winlibs\tools\mingw64\bin\llvm-ar.exe qc 3rdparty\rijndael\librijndael.a @CMakeFiles\rijndael.rsp && C:\ProgramData\chocolatey\lib\winlibs\tools\mingw64\bin\llvm-ranlib.exe 3rdparty\rijndael\librijndael.a && cd ." C:\ProgramData\chocolatey\lib\winlibs\tools\mingw64\bin\llvm-ar.exe: error: unable to open '3rdparty\rijndael\librijndael.a': No such file or directory [97/494] Building CXX object 3rdparty/vulkan/CMakeFiles/spirv-tools_obj.dir/source/binary.cpp.obj ninja: build stopped: subcommand failed.

    this might be related to the build tools i have and not be an issue of the emulator per se. clang-cl from winlibs was used.

    opened by zecoxao 2
  • Initialize CI for Linux

    Initialize CI for Linux

    This build is not going to success yet but it is a first step to slowly fixing each error until we have a working build for Linux. Once this PR is merged I will submit a fix for each error in the CI.

    opened by ultimaweapon 1
  • Document the project

    Document the project

    @InoriRus It would be nice to have a high level technical explainer of the architecture, e.g. how do you compile GCN shaders, emulate VRAM, etc Of course that's only a low priority bonus, keep up the good work :)

    opened by LifeIsStrange 1
  • Debug cpp:85 when trying to run worms w.m.d

    Debug cpp:85 when trying to run worms w.m.d

    exe_name = F:/Kyty/fc_script.exe Initialized: Config Initialized: Profiler Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Graphics Initialized: Audio --- Stack Trace --- [0] 00000001400673a2, 0000000140067380, Debug.cpp.obj, Kyty::Core::exception_filter(void*) [1] 00000001400a9b67, 00000001400a9b50, SysWindowsDbg.cpp.obj, Kyty::ExceptionFilter(_EXCEPTION_POINTERS*) [2] 00007fff2f99ff27, 0000000000000000, unknown, unknown [3] 00007fff31e951b0, 0000000000000000, unknown, unknown [4] 00007fff31e7c766, 0000000000000000, unknown, unknown [5] 00007fff31e9209f, 0000000000000000, unknown, unknown [6] 00007fff31e41454, 0000000000000000, unknown, unknown [7] 00007fff31e90bce, 0000000000000000, unknown, unknown [8] 0000000140273c59, 0000000140273c40, VirtualMemory.cpp.obj, Kyty::Loader::VirtualMemory::ExceptionHandlerPrivate::InitHandler() [9] 0000000140273559, 0000000140273510, VirtualMemory.cpp.obj, Kyty::Loader::VirtualMemory::ExceptionHandler::Install(unsigned long long, unsigned long long, unsigned long long, void ()(Kyty::Loader::VirtualMemory::ExceptionHandler::ExceptionInfo const)) [10] 00000001402767e8, 00000001402765d0, RuntimeLinker.cpp.obj, Kyty::Loader::RuntimeLinker::LoadProgramToMemory(Kyty::Loader::Program*) [11] 0000000140276221, 0000000140275ff0, RuntimeLinker.cpp.obj, Kyty::Loader::RuntimeLinker::LoadProgram(Kyty::Core::String const&) [12] 00000001400c1470, 00000001400c13a0, Kyty.cpp.obj, Kyty::Emulator::LuaFunc::kyty_load_elf_func(void*) --- Error --- Exception!!! in C:/projects/kyty/source/lib/Core/src/Debug.cpp:85

    opened by MedoGamer888 0
  • Could not find suitable device

    Could not find suitable device

    Hi, I'm getting error while trying to run Kyty It says it can't find suitable device as per screenshot Can you tell why this might have happened? Also there's no such folder in my C drive 😅😅 image

    opened by Aduser345 11
Releases(v0.1.0)
A different way of calling the notify function on the ps4 for homebrew development.

PS4-Notify A different way of calling the notify function on the ps4 for homebrew development. Calling the new Notify void Notify(char* IconURI, char*

Greg 16 Jun 22, 2022
Enables Permanent UART output across boots. Supports PS4 version 6.72 only for now

Enables Permanent UART for PS4. Requires a 5.05/6.72/7.02 Jailbroken PS4. To build, you require ps4-sdk from Scene-Collective/ps4-payload-sdk In the t

Alexander Boulton 15 May 12, 2022
PS4 kernel hooking library / payload.

PS4 KHook PS4 KHook is a minimalist kernel hooking payload. It targets 5.05 but it can be used with any firmware (or even non-PS4 systems) with modifi

Specter 43 May 10, 2022
Firmware-agnostic PS4 sandbox escape

libjbc This a firmware-agnostic implementation of the sandbox escape for PS4 homebrew apps. It operates by traversing the process list up to PID 1 (in

null 24 Jun 26, 2022
PS4 Internal PKG Installer

ps4-ipi PS4 IPI, short for Internal PKG Installer, is a PlayStation 4 utility homebrew app which will install PKG files from the HDD, making it possib

0x199 92 Jun 20, 2022
PKG/PFS unpacker for PS4

PS4 PKG/PFS tool (c) 2017-2021 by flatz Dependencies: mbedtls uthash zlib For ubuntu-ish: sudo apt install libmbedtls-dev uthash-dev zlib To produce w

null 56 Jun 15, 2022
Linux 4.19 + PS4 patches + Latest security patches

Linux kernel ============ There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML an

kquote03 1 Oct 12, 2021
A single file, single function, header to make notifications on the PS4 easier

Notifi Synopsis Adds a single function notifi(). It functions like printf however the first arg is the image to use (NULL and any invalid input should

Al Azif 7 Mar 24, 2022
A simple "do it all" logging library (PRX) designed for the PS4

libLog About A simple "do it all" logging library (PRX) designed for use on the PS4 using the OpenOrbis Toolchain. It should be easy enough to follow

Al Azif 7 Mar 24, 2022
Linux v4.14 with the latest security patches and PS4 patches.

Patches are from https://github.com/Ps3itaTeam/ps4-linux Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Plea

kquote03 2 Oct 12, 2021
x86 emulator on Raspberry Pi Pico

picox86 x86 emulator on Raspberry Pi Pico https://user-images.githubusercontent.com/10139098/110543817-13299080-812b-11eb-9c88-674cdae919fc.mp4 PCB fr

null 34 Apr 7, 2022
I2C hardware test terminal/master mode emulator.

I2C Master Mode Emulator The I2C master mode emulator allows communication with I2C devices by sending or receiving data to/from the I2C bus. To issue

Dilshan R Jayakody 17 Jan 26, 2022
a little hobby raspberry pi pico emulator

PICO-EMU a little raspberry pi pico emulator note: we use the provided bootrom from raspberry pi at the repo: https://github.com/raspberrypi/pico-boot

supercyp 21 Jun 5, 2022
Emulator for EvE Online Crucible expansion

EVEmu - An EVE Online Emulator Introduction EVEmu is a work-in-progress server emulator for the space MMO EVE Online. This is an educational project.

EvEmu Project 44 Jun 19, 2022
a Blue Pill Neopixel Emulator

NeoPill a Blue Pill Neopixel Emulator, firmware for STM32F103C8T6. To build with STM32CubeMX (6.1.1), open bluepill_neoemu_clk.ioc, generate code in a

null 20 Dec 13, 2021
BK0010/BK0011 Emulator for Linux

<html><head> <meta http-equiv="content-type" content="text/html;charset=koi8-r"> </head> <body><pre> Этот эмулятор БК-0010 (пока только БК-0010, у мен

Yaroslav Salnikov 7 Apr 1, 2022
A VERY simple Chip8 emulator

Chip8-Emu A VERY simple Chip8 emulator

null 4 Nov 7, 2021
EMUCHIP8, a CHIP-8 emulator.

EMUCHIP8 Chip-8 Demo Video This is a fun retro emulator project of mine. You can download the source code and build with MAKE, then insert your chip-8

Levent Kaya 13 Dec 29, 2021
OpenTibiaBR - Canary Project is a free and open-source MMORPG server emulator written in C++.

OpenTibiaBR - Canary Project is a free and open-source MMORPG server emulator written in C++. It is a fork of the OTServBR-Global project. To connect to the server and to take a stable experience, you can use our own client or tibia client and if you want to edit something, check our customized tools.

OpenTibiaBR 59 Jun 22, 2022