PS4 [Research]PS2 emulator configuration on PS4

Dead to Rights (SLES51581)

TXT.
Code:
--host-display-mode=16:9
--gs-use-clut-merge=1
--gs-kernel-cl="clutmerge"
--gs-kernel-cl-up="clutmerge2x2"
--force-frame-blend=1
--gs-ignore-rect-correction=1

LUA.
Code:
-- Dead to Rights [SCES-51581] (E)
-- Widescreen hack by Arapapa
-- Jak v2

local gpr = require("ee-gpr-alias")

apiRequest(0.1)

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

local patcher = function()

--Widescreen hack 16:9

--Force turn on Widescreen
--00 00 00 00 01 00 00 00 AB AA AA 3F 00 00 80 3F
eeObj.WriteMem32(0x2042FBE0,0x00000001)

--Zoom fix
--29 5C 8F 3F 00 00 C0 43 00 00 C0 43
eeObj.WriteMem32(0x2042FBF4,0x3f800000) --3f8f5c29

end

emuObj.AddVsyncHook(patcher)

Dead to Rights|Graphics FiX|Widescreen|PS2toPS4 Test
 
@Vika23
Did you happen to fix the squished up dog texture issue?
DeadToRights_mashedDog.jpg
 
Mafia (German Version) (SLES52279)

TXT.
Code:
--host-display-mode=16:9
--framelimit-mode=normal
--cdvd-sector-read-cycles=6000
--ee-cycle-scalar=2.1
--vif1-instant-xfer=0

LUA.

Code:
--gametitle=Mafia [PAL] (SLES_522.79) DE
--emu used=kinetica v2

apiRequest(1.0)   

local gpr = require("ee-gpr-alias")

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

local patcher = function()

--Gameplay 16:9
eeObj.WriteMem32(0x20FFAC24,0x3FAB0000) --3F800000 Vertical axis
eeObj.WriteMem32(0x20FFAD0C,0x3FAB0000) --3F800000 Horizontal axis

--Render fix
eeObj.WriteMem32(0x20FFAC74,0x3D000000) --3D4CCCCD

--Rendering distancce
eeObj.WriteMem32(0x20FFAC78,0x44000000) --41A00000

--avoid hang before molotov party
eeObj.WriteMem32(0x003E2454,0x00000000) --00000000

--fix crash in The priest mission
eeObj.WriteMem32(0x0016F04C,0x1000000D) --1000000D

emuObj.ThrottleMax()

end

emuObj.AddVsyncHook(patcher)

Mafia. Deutsch Dub Test!
VIDEO
 
Hi i want to thank you for your work with this ps2 games that you are porting to ps4. I want to know if there is a fix for prince of persia the sands of time euro version, I trid converting but no luck
 
Final fix for Haunting Ground. It's no longer required to use the low render 2x2simple nor is it required to disable all of the graphical effects/shadows anymore either. The game is now perfect at normal 2x2. I only had to disable most of the blur to avoid the black screen in panic mode and some lines/ghosting in a few cutscenes. Those who want to add a widescreen hack feel free but I think it already exists.


I'm sure this question has been asked many times, so I apologize in advance. But in this post it says to apply the config to the ISO, would this be separate from the .txt file? Would this require me to extract the .iso file to apply this?
 
I'm sure this question has been asked many times, so I apologize in advance. But in this post it says to apply the config to the ISO, would this be separate from the .txt file? Would this require me to extract the .iso file to apply this?

Use the "PS2 Patch Engine by pelvicthrustman". You attach the ISO to the program and then copy paste the pnach. Then just click patch and use the patched ISO to build the FPKG (it will keep the original as a backup). Also, make sure to enable progressive scan when you go ingame or the remaining blur effects will not be accurate: hold Triangle + X after the PS2 logo.

You can also turn it into a LUA script but I don't know how to do it so I injected the pnach instead.
 
Last edited:
@MinishCapKing
LUA version of Blur patch for Hunting Ground
Obviously only use one set for your iso region

Code:
--NTSC:
-- Disable Blur-Effect
eeObj.WriteMem32(0x002bbba4,0x34020000)
-- Disable briefly emerging Blur-Effects and constant effects on some foreground objects
eeObj.WriteMem32(0x002c6650,0x03e00008)
eeObj.WriteMem32(0x002c6654,0x34020000)
--PAL:
-- Disable Blur-Effect
eeObj.WriteMem32(0x0028c684,0x34020000)
-- Disable briefly emerging Blur-Effects and constant effects on some foreground objects
eeObj.WriteMem32(0x002935c0,0x03e00008)
eeObj.WriteMem32(0x002935c4,0x34020000)

BTW, @sargentfart
Kudos for finding that shadow fix throu ( "ignoreUpShiftTri", "reserved", { fbmask = 0x00FFFFFF } )
I found it myself yesterday to work as well in Radiata Stories to fix "spagetti" shadows
 
Last edited:
Well, thats mean game need other emu! Just need pick right one, or find commands on pcsx2 forums! Sometime we have luck and fix black screen just with picking right emu, sometime need do more work!


So, I found an emulator that runs this game. If you use ADK it will open and apparently without any bugs in menus, but when you start the game there are some glitches in the shadows, and in the character.. maybe you need the magic of @Vika23 which is a little beyond my knowledge. I played the first stage in the US version to test, and what I saw was this: No problems in the scenery, no problems in the audio, no problems in the enemies, only in the main character and his shadows.
 
So, I found an emulator that runs this game. If you use ADK it will open and apparently without any bugs in menus, but when you start the game there are some glitches in the shadows, and in the character.. maybe you need the magic of @Vika23 which is a little beyond my knowledge. I played the first stage in the US version to test, and what I saw was this: No problems in the scenery, no problems in the audio, no problems in the enemies, only in the main character and his shadows.
about what game u talk?
 
about what game u talk?

Ben 10 Ultimate Alien - Cosmic Destruction (US Version)

Someone asked you about this game that in other emu's they stayed in Black screen when they started, so I went to test it.. Maybe this will make your work easier to fix it, or give you more work, I don't know how you think..

Anyway, if it's useful, the help I can give is this, ADK Emu, with glitches in the shadow and in the main character and his transformations.
 
@Diego Bedin

Ben 10: Ultimate Alien Cosmic Destruction [NTSC-U] (SLUS-21938)

Emu to use - Red Faction. Seems the most stable for Papaya Studios games like the one config I did for Disney Princess.
Graphics issues are fixed by NOT (On by default) enabling "Trying to fix graphics" option in PS2FPKG program if someone using it.
This game is still having problems crashing occasionally (very VU1 sensitive it seems) and having annoying black bar at the bottom with rainbow strip (Disney Princess, Area 51, Deus Ex). And not emulation problems, how it was on PS2 hardware I guess - "sinking feet in the floor textures", "floating characters above their own shadows"
 
Castleween (SLES51249)

TXT.
Code:
--host-display-mode=16:9
--gs-use-clut-merge=1
--gs-kernel-cl="clutmerge"
--gs-kernel-cl-up="clutmerge2x2"
--ps2-lang=system
--force-pal-60hz=1
--gs-ignore-rect-correction=1

LUA.
Code:
-- Castleween [SLES-51249] (E)
-- Jak v2

local gpr = require("ee-gpr-alias")

apiRequest(0.1)

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

local CheckInputs = function()

local pad_bits = emuObj.GetPad()

local UP    = pad_bits &  0x0010
local DOWN    = pad_bits &  0x0040
local LEFT    = pad_bits &  0x0080
local RIGHT    = pad_bits &  0x0020
local Triangle  = pad_bits &  0x1000
local Cross    = pad_bits &  0x4000
local Square    = pad_bits &  0x8000
local Circle  = pad_bits &  0x2000
local L1    = pad_bits &  0x0400
local L2    = pad_bits &  0x0100
local L3    = pad_bits &  0x0002
local R1    = pad_bits &  0x0800
local R2    = pad_bits &  0x0200
local R3    = pad_bits &  0x0004
local Select  = pad_bits &  0x0001
local Start    = pad_bits &  0x0008

if (L3 ~= 0) then
-- Widescreen hack 16:9
eeObj.WriteMem32(0x002b9c78,0x3c023f40) --3c023f80
eeObj.WriteMem32(0x002794b8,0x3c033f40) --3c033f80
end
if (R3 ~= 0) then
-- Die Once For Max Hearts
eeObj.WriteMem32(0x203C7194,0x24120063)
end

end

emuObj.AddVsyncHook(CheckInputs)

local patcher = function()


end

emuObj.AddVsyncHook(patcher)

Castleween|Graphics FiX|Widescreen|60fps PS2toPS4 Test

Happy Halloween!:flustered::flustered::flustered::tan::tan::tan:
 
Want to set the EE cycle scalar beyond 5? Use this (Only tested on Jakv2)

7: --vu0-mpg-cycles=1792,-15
9: --vu0-mpg-cycles=2304,-15
12: --vu0-mpg-cycles=3072,-15
 
Grand Theft Auto: Vice City Stories [SLES-54622]
emu=Jakxv2
Code:
--ps2-lang=system
--gs-uprender=2x2
--gs-upscale=EdgeSmooth
--host-display-mode=full
--gs-kernel-cl="h2lpool"
--gs-kernel-cl-up="h2lpool2x2"
--gs-adaptive-frameskip=1
--host-audio-latency=1.70
--cdvd-sector-read-cycles=23000
--force-pal-60hz=1
Lua:
Code:
apiRequest(2.2)

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

local thresholdArea = 500

local ApplyVifCycleSettings = function()
   eeObj.Vu1MpgCycles(1000)
   eeObj.SetVifDataCycleScalar(1, 2.6)
end
ApplyVifCycleSettings()

local patcher = function()
--widescreen
eeObj.WriteMem32(0x00265568,0x3c013f9d)--27BD0030
eeObj.WriteMem32(0x0026556C,0x44810000)--00000000
eeObj.WriteMem32(0x00265570,0x46006302)--3C020048
eeObj.WriteMem32(0x00265574,0x3c020048)--03E00008
eeObj.WriteMem32(0x00265578,0x03e00008)--E44C7484
eeObj.WriteMem32(0x0026557c,0xe44c7784)
eeObj.WriteMem32(0x0037AFB4,0x0c09955a)--0C0994F8
eeObj.WriteMem32(0x003BA014,0x0c09955d)--0C0994F8
eeObj.WriteMem32(0x003B9EB0,0x0c09955d)--0C0994F8
--60fps
--eeObj.WriteMem32(0x203704F4,0x10820019)--14820019
--trails off
eeObj.WriteMem32(0x21FB588C,0x00000000)--00000001
--subtitles on
eeObj.WriteMem32(0x21FB580C,0x00000001)--00000000
--widescreen on
eeObj.WriteMem32(0x21FB5830,0x00000001)--00000000
--disable rain
eeObj.WriteMem32(0x204CD5A0,0x00000000)--00000000
--graphics fix by Juano V
eeObj.WriteMem32(0x00486848,0x0)
eeObj.WriteMem32(0x00486B3C,0x0)
eeObj.WriteMem32(0x00487324,0x0)
eeObj.WriteMem32(0x2048683C,0x0)
end
emuObj.AddVsyncHook(patcher)

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

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

based on the lua posted by Stayhye.

Big thanks for remove filter cheat!

Grand Theft Auto Liberty/Vice City Stories|Widescreen|1 Hour of Classic|New FiX|PS4 Pro
 
Constantine (SLES52872)

TXT.
Code:
--host-display-mode=16:9
--cdvd-sector-read-cycles=2000
--ps2-lang=system

LUA.
Code:
-- Constantine (SLES_52872)
-- emu used=Default PS2 Emu

local gpr = require("ee-gpr-alias")

apiRequest(0.1)

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

local patcher = function()

-- Widescreen hack

--X-Fov ELF hack
--803f013c 00108144 0c00438e
eeObj.WriteMem32(0x002b5118,0x3c013f40) --3c013f80

--Forces NTSC mode at startup
eeObj.WriteMem32(0x0040E3E0,0x34050002)
eeObj.WriteMem32(0x0040E3E4,0x24030002)
eeObj.WriteMem32(0x0040E3E8,0x0000000C)
eeObj.WriteMem32(0x0040E3EC,0x03E00008)
eeObj.WriteMem32(0x002B505C,0x24050280)
eeObj.WriteMem32(0x002B5060,0x240601C0)

--Dumpster FiX
eeObj.WriteMem32(0x00339EEC,0x00000000) -- 1040000E

end

emuObj.AddVsyncHook(patcher)

Dumpster bug on Second Level FiXed!
VIDEO

Special Thanks to Kozarovv and @mrjaredbeta for original config!

Constantine|Dumpster FiX|Widescreen|PS2toPS4 Test
 
@Vika23 Is dumpster fix region specific? Can be used on NTSC version?

EDIT: Answering my own question:)
Constantine [SLUS-21142]
Code:
--Dumpster FiX
eeObj.WriteMem32(0x0033a584,0x00000000) -- 1040000E

EDIT: Unfortunately, dumpster fix thou fixing ability to climb that problem dumpster causes weird glitching and character climbs anything clipping thru walls and objects.
 
Last edited:
checking old notes for ps4 > ps2 i check emuMediaPatch how it works, testing with this code i did couple weeks ago

gametitle=ゴジラ怪獣大乱闘 〜地球最終決戦〜 (Godzilla saves earth) (Japan) SLPM-65805 7EB64263
-unlock multilanguage
-autoboot native progressive scan
-port widescreen code by ElHecht \ Arapapa

Tested Aofa emu
-have graphic bugs - 1 random crash long play with full dump - trimmed dump no crashes till now

Update= emuMediaPatch had a catch is based in base disc sector, so uncorrect dump, trimmed, no correct size etc will change and code patch will not work, example in this code i trim dump 4gb > 699+mb (702.271.488 bytes) so will not work un-trimmed dump.

Code:
--Lua configs by felixthecat1970

apiRequest(2.0)

local emuObj = getEmuObject()

--Set language change (*) number by desired lang
-- 0 - japanese
-- 1 - english
-- 2 - french
-- 3 - spanish
-- 4 - german
-- 5 - italian
emuObj.SetPs2Lang(1)

--unlock multilanguag, enable native progressive scan, port widescreen video mode 16:9 created by ElHecht \ Arapapa
emuMediaPatch(0x66D, 12 + 0x3E8, { 0xAC850070 }, { 0x00000000 })
emuMediaPatch(0x7FE, 12 + 0x2A4, { 0x2C42003B }, { 0x2C42003D })
emuMediaPatch(0x7D4, 12 + 0x430, { 0x34038026 }, { 0x34030066 })
emuMediaPatch(0x7C7, 12 + 0x20, { 0x10400005 }, { 0x00000000 })
emuMediaPatch(0x7D4, 12 + 0x568, { 0x24030003 }, { 0x24030001 })
emuMediaPatch(0x7D4, 12 + 0x558, { 0x640D0800 }, { 0x00000000 })
emuMediaPatch(0x7D2, 12 + 0x424, { 0x24A50001 }, { 0x0000282D })
emuMediaPatch(0x7D5, 12 + 0x68, { 0x24A50023 }, { 0x24A50033 })
emuMediaPatch(0x7D5, 12 + 0x64, { 0x64C900E8 }, { 0x64C90140 })
emuMediaPatch(0x7D2, 12 + 0x468, { 0x2484FFFF }, { 0x00000000 })
emuMediaPatch(0x802, 12 + 0x6CC, { 0xE6000124 }, { 0x08054684 })
emuMediaPatch(0x802, 12 + 0x6D0, { 0xE6010128 }, { 0x00000000 })
emuMediaPatch(0x61E, 12 + 0x310, { 0x00000000 }, { 0x3C013F40 })
emuMediaPatch(0x61E, 12 + 0x314, { 0x00000000 }, { 0x4481F000 })
emuMediaPatch(0x61E, 12 + 0x318, { 0x00000000 }, { 0x461E0002 })
emuMediaPatch(0x61E, 12 + 0x31C, { 0x00000000 }, { 0xE6000124 })
emuMediaPatch(0x61E, 12 + 0x320, { 0x00000000 }, { 0xE6010128 })
emuMediaPatch(0x61E, 12 + 0x324, { 0x00000000 }, { 0x08090F75 })
 
Last edited:

Similar threads

Back
Top