[QUESTION] PS4 PS2 FILE STRUCTURE

Discussion in 'PS2 on PS4' started by SKIDGFX, Feb 26, 2020.

  1. 2
    0
    5
    SKIDGFX

    SKIDGFX Forum Noob

    Joined:
    Feb 26, 2020
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Where does XXXX-YYYYY_config.lua get placed while compiling pkg?

    Current Directory

    Code:
    |   config-emu-ps4.txt
    |   eboot.bin
    |   formatted.card
    |   ps2-emu-compiler.self
    |   PS20220WD20050620.crack
    |   sce_discmap.plt
    |   SLUS-20827_config.lua
    |
    +---docs
    |       revision.h
    |
    +---image
    |       disc01.iso
    |
    +---lua_include
    |       ee-cpr0-alias.lua
    |       ee-gpr-alias.lua
    |       ee-hwaddr.lua
    |       language.lua
    |       utils.lua
    |
    +---patches
    |       SLUS-20827_cli.conf
    |       SLUS-20827_config.lua
    |
    +---sce_module
    |       libc.prx
    |       libSceFios2.prx
    |
    \---sce_sys
            icon0.png
            param.sfo
            pic0.png
            pic1.png
            shareparam.json
    
    config-emu-ps4.txt
    Code:
    --path-snaps="/tmp/snapshots"
    --path-recordings="/tmp/recordings"
    --path-vmc="/tmp/vmc"
    --path-emulog="/tmp/recordings"
    --config-local-lua=""
    --load-tooling-lua=0
    --path-patches="/app0/patches"
    #--path-trophydata="/app0/trophy_data"
    #--path-featuredata="/app0/patches"
    #--path-toolingscript="/app0/patches"
    --ps2-title-id=SLUS-20827
    --max-disc-num=1
    --trophy-support=0
    --gs-uprender=2x2
    --gs-upscale=EdgeSmooth
    --host-audio=1
    --rom="PS20220WD20050620.crack"
    --verbose-cdvd-reads=0
    --host-osd=0
    --host-display-mode=full
    
     
  2. 2
    0
    5
    SKIDGFX

    SKIDGFX Forum Noob

    Joined:
    Feb 26, 2020
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    UPDATE: Creating Manhunt SLUS20827 package file for PS4.
    Created UP9000-SLUS20827_00-SLUS208270000001-A0100-V0100.pkg using xXxTheDarkprogramerxXx's PS4 PS2 Classics

    Manhunt has light issues that is fixed with custom config and lua scripts as seen in the official PKG and scripts are here.

    Creating 1.01 Update to add configs as sce_discmap.plt deletes itself in PKG Generator.

    File Directory of ps2emu_patch:
    Code:
    |   config-emu-ps4.txt
    |   SLUS-20827_config.lua
    |
    +---patches
    |       SLUS-20827_cli.conf
    |
    \---sce_sys
            icon0.png
            param.sfo
            pic0.png
            pic1.png
            shareparam.json
    
    The files contain the following:
    SLUS-20827_cli.conf
    Code:
    --ee-hook=0x4329e0,FastForwardClock,0x1600fff1
    --gs-uv-shift-pointsampling=1
    --ee-hook=0x1d1d60,AdvanceClock,0x27bdffb0,225
    --ee-hook=0x1d71e0,AdvanceClock,0x0c09a4d0,100
    #Fix crane issue, and probably fixing lightsourcing.
    
    SLUS-20827_config.lua
    Code:
    local gpr = require('ee-gpr-alias')
    
    apiRequest(0.1)
    
    local emuObj = getEmuObject()  
    local eeObj  = getEEObject()
    
    emuObj.SetGsTitleFix( "forceSimpleFetch",  "reserved", {prim=5, texMode=2, tbp=0x320000} )
    
    local FixBug9277 = function()
        local s0 = eeObj.GetGpr(gpr.s0)
        --local v0 = eeObj.GetGpr(gpr.v0)
        --print( string.format("-------- v0=0x%08x s0=0x%08x", v0, s0) )
        if s0 == 0x7333 then
            eeObj.SetGpr(gpr.s0, 0x5800)
        end
    end
    
    eeObj.AddHookJT(0x1d71f8, 0x10000036, FixBug9277)
    
    config-emu-ps4.txt
    Code:
    --path-snaps="/tmp/snapshots"
    --path-recordings="/tmp/recordings"
    --path-vmc="/tmp/vmc"
    --path-emulog="/tmp/recordings"
    --config-local-lua=""
    --load-tooling-lua=0
    --path-patches="/app0/patches"
    #--path-trophydata="/app0/trophy_data"
    --path-featuredata="/app0/patches"
    --path-toolingscript="/app0/patches"
    --ps2-title-id=SLUS-20827
    --max-disc-num=1
    --trophy-support=0
    --gs-uprender=2x2
    --gs-upscale=EdgeSmooth
    --host-audio=1
    --rom="PS20220WD20050620.crack"
    --verbose-cdvd-reads=0
    --host-osd=0
    --host-display-mode=full
    

    After patch, the game crashes at launch with error CE-34878-0. If I comment the directories out it runs without the fixes.
     

Share This Page