PS4 [Research]PS2 emulator configuration on PS4

WIP fix for Tony Hawk Underground

cli
Code:
--gs-uprender=2x2
--gs-upscale=edgesmooth

--vu1=jit-sync

--ee-cycle-scalar=2.1
--iop-cycle-scalar=0.89

--vif1-instant-xfer=0
--vif-ignore-invalid-cmd=1

--vu1-mpg-cycles=7250

Gets past the loading screen freeze on Jak series emus(Jak, Jak2, Jak3, Jakx) maybe others?

Game hard crashes when selecting free skate. Story mode crashes a few screens in. Still working on it....:confused:

Proper fix for Mortal Kombat shaolin Monks

https://www.psx-place.com/threads/r...onfiguration-on-ps4.16131/page-59#post-279781

Almost no slowdown or audio stutter. Much improved from 1st version of fix. Unlocked characters for story and VS as bonus
 
Last edited:
WIP fix for Tony Hawk Underground

cli
Code:
--gs-uprender=2x2
--gs-upscale=edgesmooth

--vu1=jit-sync

--ee-cycle-scalar=2.1
--iop-cycle-scalar=0.89

--vif1-instant-xfer=0
--vif-ignore-invalid-cmd=1

--vu1-mpg-cycles=7250

Gets past the loading screen freeze on Jak series emus(Jak, Jak2, Jak3, Jakx) maybe others?

Game hard crashes when selecting free skate. Story mode crashes a few screens in. Still working on it....:confused:

You can try that patch help or not if you want, THUG 1 US only. You need to add it to patcher or something.
eeObj.WriteMem32(0x0034B738, 0xD3400000)
 
That did it! We fixed T.H.U.G.! thank you once again! A little fine tuning now...
Nice work. :) Bad news is that every single tony hawk game (not 3rd part) gonna need that patch, and address will be different for all of them.
 
Last edited:
Nice work. :) Bad news is that every single tony hawk game (not 3th part) gonna need that patch, and address will be different for all of them.

can you tell me how to find address? what to look for? tools to use? Really want to learn how to locate these addresses
 
can you tell me how to find address? what to look for? tools to use? Really want to learn how to locate these addresses

-Grab ps2dis mod https://forums.pcsx2.net/Thread-ps2dis-mod
-Open it, drag & drop your SLES/SLUS tony hawk file to program area.
-Now push CTRL+A, analyze should start (is important since you later need VU code)
-Push CTRL + F , tick "As Hex String" enter 00 00 40 53 value, and search for it.
- code NEED TO LOOK EXACTLY LIKE THAT (LOI + that value), if it doesn't push F5 to perform next search.
upload_2021-3-7_11-36-33.png

Address at left will be adress you need to patch. For all tony hawk games value in patch will be 0xD3400000, so you don't need to change it.

Good luck :)
 
-Grab ps2dis mod https://forums.pcsx2.net/Thread-ps2dis-mod
-Open it, drag & drop your SLES/SLUS tony hawk file to program area.
-Now push CTRL+A, analyze should start (is important since you later need VU code)
-Push CTRL + F , tick "As Hex String" enter 00 00 40 53 value, and search for it.
- code NEED TO LOOK EXACTLY LIKE THAT (LOI + that value), if it doesn't push F5 to perform next search.
View attachment 31977
Address at left will be adress you need to patch. For all tony hawk games value in patch will be 0xD3400000, so you don't need to change it.

Good luck :)

thank you. will get on this in the future. hopefully I can get this down.
 
Tony Hawk's Underground (Europe) SLES_518.48
Code:
eeObj.WriteMem32(0x0034BC38,0xD3400000)


Tony Hawk's Underground 2 (USA) SLUS_209.65
Code:
eeObj.WriteMem32(0x003F0FE8,0xD3400000)


Tony Hawk's Proving Ground (USA) SLUS_216.16
Code:
eeObj.WriteMem32(0x00498A30,0xD3400000)


Tony Hawk's Project 8 (USA) SLUS_214.44

Code:
eeObj.WriteMem32(0x00474FB0,0xD3400000)


Tony Hawk's Pro Skater 4 (USA) (v2.01) SLUS_205.04
Code:
eeObj.WriteMem32(0x002CDDA0,0xD3400000)


Tony Hawk's Downhill Jam (USA) SLUS_214.56
Code:
eeObj.WriteMem32(0x003CC3B0,0xD3400000)


Tony Hawk's American Wasteland (USA) SLUS_212.08
Code:
eeObj.WriteMem32(0x00493B30,0xD3400000)


Tony Hawk's American Wasteland (USA) (Collector's Edition) SLUS_212.95
Code:
eeObj.WriteMem32(0x00493B30,0xD3400000)


It should also be easy to get other Tony Hawk games
 
Last edited:
T.H.U.G.2 freezes at "tony hawk underground 2" splash screen after the ps2 logo.

THPS4 hard crashes after where the loading screen freeze

Gun(Uses THUG engine) freezes at loading screen. Usual fix commands do nothing

None of the usual fixes do anything. I also tried the patch provided by @nifengyuexia

using jakx v2...
 
Last edited:
hello guys first of all thank u all for your amazing work at these patches, second is there any fix for the graphical issues in game The Suffering [SLUS20636].
i have uploaded the pictures of the issue, i am at the very start of the game and there is some black shadow kind of effect on characters both in cutscene and normal play and also in the picture you can see there is some white effects in the corridor.
7CKDb2MQoEfiMv8B26FmYdN8PgKlSYvg5JELiVwf61QrI4lnLtTCOXlTT5jTM8Rym19tnQZ9ZD7svBHW7lwrK7ciABuxgPcBr7lPIr7h4E8uc2TIulb7Hpx5Oob71emjgtkJbUcxHezMDSJvQVaUd9Dsg9e7RCBnFve6xAhOWTonTT99xR2uYIv1JN1sV-ZNjB3jB6N1T4FJCI9cDS6oz_UDDBMKkVtvLElmnmJEzrZrSNiZe3rv3zOlekTXzML19fF74QqcA7rpi0kC_t3VUhz0i1J6-n8McjwTdeV6PoHhHoB4glUgiY6bb-NCPW3Q44EsAi71CpQZOH4CPBLgVzg-9w_9jGQALS217Y1Kr5tkxTeiarn6JwSKg7TZcRMfC4lIlVMCImBnvpt5mBNIHBPcnwfbN7iiTZ7fEpUZA1wETjxc_wh77z_awZS8hnrXuStwAXHPbOGSMrgypvgAslMg0xy_iq1wa56XA2BobAUHkL9Ae97Y4dwNJnEMxr9cKw4EkiU2BF3eeuq5risvRpnqGF6mY3Lz39dJOKn5LF5FZZT0YLmYz0PxOiX8R_Lg-NAVcPrxgvgkiKRJ_XuZGAIT4iftoDUB9OV7l7T9elY_EHw1TRy0Ux2wMu9ZqnolnSYGrM1UaUDFp47wLOsFU8CC7zTjeogQDgYT7qKcBgqa_2HSVU8nv7Zg=w1666-h937-no

od5x3ww0raTGmhyGGbmWeRQ-RENoe5pcqRDK31VhAqZ0LwoWJfr3ELxWREMJ2oZrRWI0CE9hycggZB62VpLGHb26o38Aq_-9UCPQgqlu95iicoDX9dRjOeUbso3LTmblh7OMaWClQjpCb-oagfK0oYuyeP9liBCiA9PEALPXGvE6_bDJ_s9LwXiqUc-VNev9oQLIA-Nw-48vq-JzeAZxRAHd6QW4B87iMA50SfNb3G0seNEtfO_rORvir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UEp03q4QDcUny9BSV7FG2uSpLCHkgyvWG2Z_0mWfhq_tEOtf7lR2RXmrOtQ7w03en=w1666-h937-no
 
T.H.U.G.2 freezes at "tony hawk underground 2" splash screen after the ps2 logo.

THPS4 hard crashes after where the loading screen freeze

Gun(Uses THUG engine) freezes at loading screen. Usual fix commands do nothing

None of the usual fixes do anything. I also tried the patch provided by @nifengyuexia

using jakx v2...
That sucks :/ I was really optimistic with your config. All games use exactly the same engine, and all of them die in the same moment. No idea why only THUG1 is happy. Still we have now 50% more tony hawk games working thanks to that :D
 
That sucks :/ I was really optimistic with your config. All games use exactly the same engine, and all of them die in the same moment. No idea why only THUG1 is happy. Still we have now 50% more tony hawk games working thanks to that :D

from my testing these games are very sensitive to the ee/iop scalars. .01 or .1 in the wrong direction will re-enable the loading freeze.

The others will probably work with EXTRA fine tuning on the scalars. Or, maybe something completely different due to this emu/emus

BTW, do you know what this is doing?

cli
Code:
--vu1-mpg-cycles=2250
--vu1-mpg-cycles=1850,$037,$7b3
--vu1-mpg-cycles=1150,$2b4,$7c4

This is from Okage PSN.
 
hello guys first of all thank u all for your amazing work at these patches, second is there any fix for the graphical issues in game The Suffering [SLUS20636].
i have uploaded the pictures of the issue, i am at the very start of the game and there is some black shadow kind of effect on characters both in cutscene and normal play and also in the picture you can see there is some white effects in the corridor.
7CKDb2MQoEfiMv8B26FmYdN8PgKlSYvg5JELiVwf61QrI4lnLtTCOXlTT5jTM8Rym19tnQZ9ZD7svBHW7lwrK7ciABuxgPcBr7lPIr7h4E8uc2TIulb7Hpx5Oob71emjgtkJbUcxHezMDSJvQVaUd9Dsg9e7RCBnFve6xAhOWTonTT99xR2uYIv1JN1sV-ZNjB3jB6N1T4FJCI9cDS6oz_UDDBMKkVtvLElmnmJEzrZrSNiZe3rv3zOlekTXzML19fF74QqcA7rpi0kC_t3VUhz0i1J6-n8McjwTdeV6PoHhHoB4glUgiY6bb-NCPW3Q44EsAi71CpQZOH4CPBLgVzg-9w_9jGQALS217Y1K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FN1grtbA8G8Gu8NLjsuH89Uxjx3QBbGjnf-GxeQmkykxYX8KCg4gfNXZ8Cn7_6o4gLINhlIurQNoYs73A2Z8vM2B1zWJa0_sumE9WvGwI2DfIGpNw-uOWXvMQ1OxEzCU0m4QzTnjz2OjYKmeWMDeCBHXuxtUM3FEPDPKedxi4eoRJHgJIj9TWY9_oBVEZEMWwbFUN-z1t-XIjwL2HnpSykKL6Lx5_Sw1mpBiYGMMIjQqW-39mX8RVrEEvXgu8iNbKHPgIytwm__RqYQd5KFUFEl9VyPOT05X2MFj7auWkhS1idLQzKYh6ExUEObIg6X_SxoidK4KJfT3xT7zbeVmvkmiMyzd-nzdo0TokwcPkterYA5r6_PWvlne-CF6B0OOfThy9KAbqFanzIpfyYHsopJY1wmImHIpAVWQAc2XuDoHYE3feHY0dufGdB1etXOI_39aZxpH5_qhh75_0AWgsC-8Dg59jNkYejqNm84nzrvMLFYxU2Ng01zMv8e2N4sQP88_6490dyDThQg9KK2Hz8qfBfxeBcSu_tsQnikg2fZKuZWyP3WCWBvv9EuGtuFj5sRdugVKKlXYWQ_DTsUEp03q4QDcUny9BSV7FG2uSpLCHkgyvWG2Z_0mWfhq_tEOtf7lR2RXmrOtQ7w03en=w1666-h937-no

I can't see the images you uploaded.
 
BTW, do you know what this is doing?

cli
Code:
--vu1-mpg-cycles=2250
--vu1-mpg-cycles=1850,$037,$7b3
--vu1-mpg-cycles=1150,$2b4,$7c4
This is from Okage PSN.
Partially, this is exactly the same as --vu1-mpg-cycles=xxxx by work per VU microprogram address.
Only thing i'm not sure that is start-end address, or start-start.
Address is divided by 8, so for VU1 correct values are $000 to $7FF. But you can just use old way, and don't write address.
 
Fix for Flatout 2


cli
Code:
--gs-uprender=none
--gs-upscale=edgesmooth
--gs-override-small-tri-area=1
--ee-cycle-scalar=1.80
--iop-cycle-scalar=0.91

--vu0-mpg-cycles=1400
--vu1-mpg-cycles=1400

--gs-optimize-30fps=1

--framelimit-mode=normal

--vu0-opt-flags=1
--vu1-opt-flags=1
--cop2-opt-flags=1
--vu0-const-prop=0
--vu1-const-prop=0
--vu1-jr-cache-policy=newprog
--vu1-jalr-cache-policy=newprog
--vu0-jr-cache-policy=newprog
--vu0-jalr-cache-policy=newprog

--host-audio-latency=1.45

lua
Code:
apiRequest(2.3)

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

local thresholdArea = 600

emuObj.SetDisplayAspectWide()
gsObj.SetDeinterlaceShift(1)

local patcher = function()

--Gameplay 16:9
eeObj.WriteMem32(0x003A1F28,0x3C013F14) --3C013F00 Zoom
eeObj.WriteMem32(0x002D6650,0x3C014010) --3C014040 Y-FOV
eeObj.WriteMem32(0x00234F18,0x3C013F8A) --3C013F80 Y-FOV car menus

-----------------cheats--------------------------------

--Start a New Career with Max Cash
eeObj.WriteMem32(0x201AEE08,0x3C0505F0)
--Max Cash after Buying Parts/Cars
eeObj.WriteMem32(0x201AF0F4,0x3C0205F0)
eeObj.WriteMem32(0x201AF174,0x3C0205F0)
--Infinite Nitro
eeObj.WriteMem32(0x201A4DCC,0x00000000)
--Maximum Cup Points After a Race
--eeObj.WriteMem32(0x2018687C,0x240603E7)
--Display FPS
eeObj.WriteMem32(0x2018E160,0x00000000)
--Disable Car Damage
--eeObj.WriteMem32(0x20142F7C,0x24020001)
--All Cups Open
eeObj.WriteMem32(0x201AF46C,0x24020000)

--eeObj.WriteMem32(0x204A20B4,0x00000001)

end

emuObj.AddVsyncHook(patcher)

-- Small triangle rejection. Works in conjunction with CLI setting   --gs-override-small-tri-area=1
-- keep default area for texture 256x256 ( no blend)
emuObj.SetGsTitleFix( "setRejectionArea", 500,{twIsNot=8, thIsNot=8 } )

Jakx v2 used
 
Last edited:
Fix for Flatout 2


cli
Code:
--gs-uprender=none
--gs-upscale=edgesmooth
--gs-override-small-tri-area=1
--ee-cycle-scalar=1.80
--iop-cycle-scalar=0.91

--vu0-mpg-cycles=1400
--vu1-mpg-cycles=1400

--gs-optimize-30fps=1

--framelimit-mode=normal

--vu0-opt-flags=1
--vu1-opt-flags=1
--cop2-opt-flags=1
--vu0-const-prop=0
--vu1-const-prop=0
--vu1-jr-cache-policy=newprog
--vu1-jalr-cache-policy=newprog
--vu0-jr-cache-policy=newprog
--vu0-jalr-cache-policy=newprog

--host-audio-latency=1.45

lua
Code:
apiRequest(2.3)

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

local thresholdArea = 600

emuObj.SetDisplayAspectWide()
gsObj.SetDeinterlaceShift(1)

local patcher = function()

--Gameplay 16:9
eeObj.WriteMem32(0x003A1F28,0x3C013F14) --3C013F00 Zoom
eeObj.WriteMem32(0x002D6650,0x3C014010) --3C014040 Y-FOV
eeObj.WriteMem32(0x00234F18,0x3C013F8A) --3C013F80 Y-FOV car menus

-----------------cheats--------------------------------

--Start a New Career with Max Cash
eeObj.WriteMem32(0x201AEE08,0x3C0505F0)
--Max Cash after Buying Parts/Cars
eeObj.WriteMem32(0x201AF0F4,0x3C0205F0)
eeObj.WriteMem32(0x201AF174,0x3C0205F0)
--Infinite Nitro
eeObj.WriteMem32(0x201A4DCC,0x00000000)
--Maximum Cup Points After a Race
--eeObj.WriteMem32(0x2018687C,0x240603E7)
--Display FPS
eeObj.WriteMem32(0x2018E160,0x00000000)
--Disable Car Damage
--eeObj.WriteMem32(0x20142F7C,0x24020001)
--All Cups Open
eeObj.WriteMem32(0x201AF46C,0x24020000)

--eeObj.WriteMem32(0x204A20B4,0x00000001)

end

emuObj.AddVsyncHook(patcher)

-- Small triangle rejection. Works in conjunction with CLI setting   --gs-override-small-tri-area=1
-- keep default area for texture 256x256 ( no blend)
emuObj.SetGsTitleFix( "setRejectionArea", 500,{twIsNot=8, thIsNot=8 } )
NTSC version?
 
NTSC version?

no PAL version, and jakx v2 emu used


★Fix for Wacky Races™ Starring Dastardly & Muttley®(PAL)

Code:
--gs-uprender=2x2
--gs-upscale=edgesmooth

--vu0-di-bits=0
--vu1-di-bits=0

Eliminates micro-freezing during races. More testing needed.

Jakx v2 used

★Fix for Cartoon Network Racing(NTSC)
Code:
--gs-uprender=2x2
--gs-upscale=edgesmooth
--gs-frontend-opt-mode=1

--ee-cycle-scalar=2.35
--ee-jit-pagefault-threshold=30

--iop-cycle-scalar=2.01

--vu1-const-prop=1
--vu1-di-bits=0
--vu1-jr-cache-policy=newprog
--vu1-jalr-cache-policy=newprog

--vu0-di-bits=0
--vu0-const-prop=0
--vu0-jr-cache-policy=newprog
--vu0-jalr-cache-policy=newprog

--vu-d-bit=0
--vu-t-bit=0

--vif-ignore-invalid-cmd=1
--vif1-ignore-cmd-ints=1

Jakx v2 used

This game was a pain in the ***. I know some of these commands are probably not needed anymore but I was lazy to reverse-debug the fix once I got it working. If someone is able optimize, would be awesome.
 
Last edited:

Similar threads

Back
Top