PS4 [Research]PS2 emulator configuration on PS4

That part you added for mpegs isn't even called, so you can remove it.
Here i made config that hopefully.. will auto speed up loadings. Plus included all working stuff from @Stayhye config.
While a lot is removed, this config do exactly what Stayhye config, but should have faster loadings. I wasn't really able to test that on pcsx2 due to its nature, but i think my hooks are fine.

Code:
-- Mortal Kombat - Shaolin Monks (SLUS-21087)
-- ported to PS4 Lua by Stayhye

apiRequest(2.0)

local emuObj         = getEmuObject()
local eeObj            = getEEObject()
local gsObj            = getGsObject()

emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1  } )
emuObj.SetDisplayAspectWide()
gsObj.SetDeinterlaceShift(0)

local widescreen = function()

-- 16:9
eeObj.WriteMem32(0x004f4b38,0x3f400000)

-- black border fix
eeObj.WriteMem32(0x00322f2c,0x3c013f80)

--FMV's fix
eeObj.WriteMem32(0x00272210,0x24030256)
eeObj.WriteMem32(0x00272498,0x240B0256)

--No Interlace
eeObj.WriteMem32(0x00249F7C,0x00000000)
end

emuObj.AddVsyncHook(widescreen)

local TH1A =    -- start loading screen
    function()
        emuObj.ThrottleMax()
    end

local TH1B =    -- end loading screen
    function()
        emuObj.ThrottleNorm()
    end
 
local TH1C =    -- start loading screen
    function()
        emuObj.ThrottleMax()
    end

local TH1D =    -- end loading screen
    function()
        emuObj.ThrottleNorm()
    end
 
eeObj.AddHook(0x1d4800, 0x27bdff80, TH1A)
eeObj.AddHook(0x1e15a0, 0x27bdff60, TH1C)
eeObj.AddHook(0x1e1c80, 0x03e00008, TH1B)
eeObj.AddHook(0x1d5014, 0x03e00008, TH1D)

Edit: TXT config by stayhye is still required.
Start good, faster menu but crash with error after long intro...
 
Was test both --vu-t-bit=1 - still freeze
--vu-t-bit=0 - not freeze but loading "forever".
Test pal version, Jal v.1 emu used
Here are patches i was talking about, someone need to translate them for you. I can't guarantee they will work for ps4, but issues looks exactly the same.
Code:
Serial = SLES-54723
Name   = Spider-Man 3
Region = PAL-E
Compat = 4
[patches = 0C881B25]
    comment=Patch by Kozarovv
    // Fixes hang before loading level 2.
    patch=1,EE,0044bae4,word,000002ff
[/patches]
---------------------------------------------
Serial = SLES-54724
Name   = Spider-Man 3
Region = PAL-M4
[patches = C529B0AD]
    comment=Patch by Kozarovv
    // Fixes hang before loading level 2.
    patch=1,EE,0044bae4,word,000002ff
[/patches]
---------------------------------------------
Serial = SLKA-25385
Name   = Spider-Man 3
Region = NTSC-K
[patches = B35F8AAE]
    comment=Patch by Kozarovv and Arapapa
    // Fixes hang before loading level 2.
    patch=1,EE,0044bc64,word,000002ff //400002ff
[/patches]
---------------------------------------------
Serial = SLPS-25823
Name   = Spider-Man 3
Region = NTSC-J
[patches = 9295A3BE]
    comment=Patch by Kozarovv and Arapapa
    // Fixes hang before loading level 2.
    patch=1,EE,0044bde4,word,000002ff //400002ff
[/patches]
-----------------------------------------
Name   = Spider-Man 3
Region = NTSC-U
Compat = 4
[patches = 29873A0C]
comment= Patch by Kozarovv
// Fixes hang before loading level 2.
patch=1,EE,0044bae4,word,000002ff
[/patches]
 
Here are patches i was talking about, someone need to translate them for you. I can't guarantee they will work for ps4, but issues looks exactly the same.
Code:
Serial = SLES-54723
Name   = Spider-Man 3
Region = PAL-E
Compat = 4
[patches = 0C881B25]
    comment=Patch by Kozarovv
    // Fixes hang before loading level 2.
    patch=1,EE,0044bae4,word,000002ff
[/patches]
---------------------------------------------
Serial = SLES-54724
Name   = Spider-Man 3
Region = PAL-M4
[patches = C529B0AD]
    comment=Patch by Kozarovv
    // Fixes hang before loading level 2.
    patch=1,EE,0044bae4,word,000002ff
[/patches]
---------------------------------------------
Serial = SLKA-25385
Name   = Spider-Man 3
Region = NTSC-K
[patches = B35F8AAE]
    comment=Patch by Kozarovv and Arapapa
    // Fixes hang before loading level 2.
    patch=1,EE,0044bc64,word,000002ff //400002ff
[/patches]
---------------------------------------------
Serial = SLPS-25823
Name   = Spider-Man 3
Region = NTSC-J
[patches = 9295A3BE]
    comment=Patch by Kozarovv and Arapapa
    // Fixes hang before loading level 2.
    patch=1,EE,0044bde4,word,000002ff //400002ff
[/patches]
-----------------------------------------
Name   = Spider-Man 3
Region = NTSC-U
Compat = 4
[patches = 29873A0C]
comment= Patch by Kozarovv
// Fixes hang before loading level 2.
patch=1,EE,0044bae4,word,000002ff
[/patches]
https://raw.githubusercontent.com/PCSX2/pcsx2/master/bin/GameIndex.dbf
The link has expired and can be used as a reference, because the situation on PS4 may be different. Can you find a historical version of it?
 
PCSX2 moved from dbf to yaml. File is still there, but you wouldn't find many patches there as emu was significally improved lately. Most patches were removed nowdays. Anyway, almost all of them are on "fixing unplayables" thread.
Yes, that's why I asked, is there a historical version? There is no clamping configuration on fixing unplayables, and some fixed game codes are not included in this content.
 
Here are patches i was talking about, someone need to translate them for you. I can't guarantee they will work for ps4, but issues looks exactly the same.
Code:
Serial = SLES-54723
Name   = Spider-Man 3
Region = PAL-E
Compat = 4
[patches = 0C881B25]
    comment=Patch by Kozarovv
    // Fixes hang before loading level 2.
    patch=1,EE,0044bae4,word,000002ff
[/patches]
---------------------------------------------
Serial = SLES-54724
Name   = Spider-Man 3
Region = PAL-M4
[patches = C529B0AD]
    comment=Patch by Kozarovv
    // Fixes hang before loading level 2.
    patch=1,EE,0044bae4,word,000002ff
[/patches]
---------------------------------------------
Serial = SLKA-25385
Name   = Spider-Man 3
Region = NTSC-K
[patches = B35F8AAE]
    comment=Patch by Kozarovv and Arapapa
    // Fixes hang before loading level 2.
    patch=1,EE,0044bc64,word,000002ff //400002ff
[/patches]
---------------------------------------------
Serial = SLPS-25823
Name   = Spider-Man 3
Region = NTSC-J
[patches = 9295A3BE]
    comment=Patch by Kozarovv and Arapapa
    // Fixes hang before loading level 2.
    patch=1,EE,0044bde4,word,000002ff //400002ff
[/patches]
-----------------------------------------
Name   = Spider-Man 3
Region = NTSC-U
Compat = 4
[patches = 29873A0C]
comment= Patch by Kozarovv
// Fixes hang before loading level 2.
patch=1,EE,0044bae4,word,000002ff
[/patches]
I tested the US version and it still freezes, I think other versions will do the same
 
WIP Improvement fix for Driver: Parallel Lines

cli
Code:
--vu1-mpg-cycles=2080
--vu0-mpg-cycles=2050

--ee-cycle-scalar=0.68
--iop-cycle-scalar=0.45

--gs-uprender=none
--gs-upscale=motionvector
--gs-override-small-tri-area=1


#--framelimiter=1
#--framelimit-fps=31.7
#--framelimit-scalar=0.99

#--no-gs
--mfifo-manual-drain=1.65  # [frame_multiplier/float]
--host-audio-latency=2.11

lua
Code:
apiRequest(2.2)

local gpr       = require("ee-gpr-alias")
local emuObj      = getEmuObject()
local eeObj       = getEEObject()
local gsObj       = getGsObject()
local eeOverlay    = eeObj.getOverlayObject()
local iopObj  = getIOPObject()
 
emuObj.SetDisplayAspectWide()
gsObj.SetDeinterlaceShift(0)


-- Performace fix (bug #9785 )
emuObj.SetGsTitleFix( "globalSet",  "reserved", { waveThreshold = 90000} )
emuObj.SetGsTitleFix( "ignoreAreaUpdate", 0, { } )

emuObj.SetGsTitleFix( "setRejectionArea", 800,{twIsNot=8, thIsNot=8 } )

-- Fix shadow
emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1  } )

Gameplay much improved

jakx v2 used

it will work on pal version?
 
Some find from me! Anyone try before The Italian Job? I was try NTSC, before it only was give me black screen after ps2 logo. Now i was try add --vu1=jit-sync and --vif1-instant-xfer=0 and its boot...show intro and loading screen but freeze then.....

Jakx v2 used

Also video with boot game here
 

Attachments

  • The Italian Job freeze screen.png
    The Italian Job freeze screen.png
    221.5 KB · Views: 34
Jakx v2 probably or else emu?
This has nothing to do with the emulator. You can write the test code directly into the ISO, or you can use the LUA configuration method. Why do you have to test on the emulator above jak x every time? It will not improve any compatibility, except for startup crashes, api level increased by 0.1 or other commands that have never appeared. I think that jak v2 is still my default emulator for testing without exceeding the api 2.2 level. According to my findings, the V2 emulator can eliminate part of the jitter of interlaced scanning, but not all of it.
 
This has nothing to do with the emulator. You can write the test code directly into the ISO, or you can use the LUA configuration method. Why do you have to test on the emulator above jak x every time? It will not improve any compatibility, except for startup crashes, api level increased by 0.1 or other commands that have never appeared. I think that jak v2 is still my default emulator for testing without exceeding the api 2.2 level. According to my findings, the V2 emulator can eliminate part of the jitter of interlaced scanning, but not all of it.
Well becouse it works for me, for example, Ghosthunter game works for alot people on Jakx v2 , for me no. For me works jak v.1 and much another examples! Second sight game, first was test on jak v.2 - alot graphical glithes...after it i test on Jakx v2 - works perfect!
 
Well becouse it works for me, for example, Ghosthunter game works for alot people on Jakx v2 , for me no. For me works jak v.1 and much another examples! Second sight game, first was test on jak v.2 - alot graphical glithes...after it i test on Jakx v2 - works perfect!
Yes, in some games, it is possible to correct certain graphics or boot up using other emulators, but this is a small probability event.
 
Yes, in some games, it is possible to correct certain graphics or boot up using other emulators, but this is a small probability event.
Well of course im just start know emulation on ps4, and i like test, so only thats why i ask what emus people use for test games!
 

Similar threads

Back
Top