PS4 [Research]PS2 emulator configuration on PS4

Is there any way to use a custom card and have a config lua cos i cant seem to get both to work if i use
apiRequest(1.3)
local emuObj = getEmuObject()
emuObj.SetFormattedCard("custom.card")
but it wont load up the config after this point like say

local eeObj = getEEObject()
local emuObj = getEmuObject()
local patcher = function()
eeObj.WriteMem32(0x001D78A8,0x100000B4)
end
emuObj.AddVsyncHook(patcher)
and the config loads but not the custom card if i put it here at the end

you can try to change the extension to ps2: emuObj.SetFormattedCard("custom.ps2")
 
ok ill have 1 more try to explain I can use a ps2 card fine if i put the following in the config.lua

apiRequest(1.3)
local emuObj = getEmuObject()
emuObj.SetFormattedCard("custom.card")

this works fine i have the custom card in the feature data folder as its supposed to be but i also need to add a config for a game and it has to also go in the config.lua this one is for nfsu2

apiRequest(1.0)
local eeObj = getEEObject()
local emuObj = getEmuObject()
local patcher = function()
eeObj.WriteMem32(0x001D78A8,0x100000B4)
end
emuObj.AddVsyncHook(patcher)
-- Fix the horizontal lines after the background
emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1 } )

how do i make both these work together in the config.lua
 
Metal Gear Solid 3 Subsistence BIG PS2toPS4 Review

Just wish remind some old config with small update

Micro freezes while gameplay and cutscenes - FiXed!

FiX

Code:
--ee-context-switch-cycles=2700 #*
--ee-cycle-scalar=0.1

--iop-cycle-scalar=0.1

--vu1-mpg-cycles=700

--framelimiter=1
--framelimit-fps=15.0
--framelimit-scalar=2.1

in txt.

Code:
-- Metal Gear Solid 3 - Subsistence (SLUS_21359)
-- Widescreen hack by No.47
-- 30 FPS/Speed Fix by applepiejr @PCSX2 Forums
-- ported to PS4 LUA
-- emu used=star ocean v2

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

apiRequest(1.3)

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

local patcher = function()
-- Force 30 FPS
eeObj.WriteMem32(0x001D5AD8,0x00000040) -- 40=30fps / 00=60fps / 20=15 or20fps? <camera>
eeObj.WriteMem32(0x001D6DB8,0x00000002) -- 01=60fps / 02=30fps / 3=20fps / 4=16.67fps? <cut-scenes/fmv>
eeObj.WriteMem32(0x001D6DBC,0x00000001) -- 0=double speed / 1=normal speed <gameplay>
-- 480p 512x448
eeObj.WriteMem32(0x201741F4,0x3C050000)
eeObj.WriteMem32(0x201741F8,0xFFB20020)
eeObj.WriteMem32(0x201741FC,0x3C060050)
eeObj.WriteMem32(0x20174200,0xFFB10010)
eeObj.WriteMem32(0x20174204,0x3C070001)
-- REMOVES MOST OF THEM, BUT SOME ARE NOW RED?
-- Remove Black Bars
local code_check = eeObj.ReadMem16(0x25E1CC)
if code_check == 0x0000 then
eeObj.WriteMem32(0x2025E6A4,0x00000000)
end
local code_check = eeObj.ReadMem16(0x20B3FC)
if code_check == 0x0001 then
eeObj.WriteMem32(0x2025E6A4,0x00000000)
end
local code_check = eeObj.ReadMem16(0x214D80)
if code_check == 0x0001 then
eeObj.WriteMem32(0x2025E6A4,0x00000000)
end
local code_check = eeObj.ReadMem16(0x214D70)
if code_check == 0x0001 then
eeObj.WriteMem32(0x2025E6A4,0x00000000)
end
----16:9---//Widescreen water fix
eeObj.WriteMem32(0x202050AC,0x3F400000)

local code_check = eeObj.ReadMem16(0x4CCD42)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x204CCD40,0x3FAB0000)
eeObj.WriteMem32(0x204CCD44,0x3F400000)
eeObj.WriteMem32(0x204CCD4C,0xBFAB0000)
end
local code_check = eeObj.ReadMem16(0x580CE2)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x20580CE0,0x3FAB0000)
eeObj.WriteMem32(0x20580CE4,0x3F400000)
eeObj.WriteMem32(0x20580CEC,0xBFAB0000)
end
local code_check = eeObj.ReadMem16(0x591C72)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x20591C70,0x3FAB0000)
eeObj.WriteMem32(0x20591C74,0x3F400000)
eeObj.WriteMem32(0x20591C7C,0xBFAB0000)
end
local code_check = eeObj.ReadMem16(0x599C12)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x20599C10,0x3FAB0000)
eeObj.WriteMem32(0x20599C14,0x3F400000)
eeObj.WriteMem32(0x20599C1C,0xBFAB0000)
end
local code_check = eeObj.ReadMem16(0x4A14D2)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x204A14D0,0x3FAB0000)
eeObj.WriteMem32(0x204A14D4,0x3F400000)
eeObj.WriteMem32(0x204A14DC,0xBFAB0000)
end
local code_check = eeObj.ReadMem16(0x557CFA)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x20557CF8,0x3FAB0000)
eeObj.WriteMem32(0x20557CFC,0x3F400000)
eeObj.WriteMem32(0x20557D04,0xBFAB0000)
end
local code_check = eeObj.ReadMem16(0x4B7082)
if code_check == 0x3F80 then
eeObj.WriteMem32(0x204B7080,0x3FAB0000)
eeObj.WriteMem32(0x204B7084,0x3F400000)
eeObj.WriteMem32(0x204B708C,0xBFAB0000)
end

end

emuObj.AddVsyncHook(patcher)

emuObj.SetDisplayAspectWide()

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

in lua.
 
Can u share patch?
Credits to @kozarovv

SLES_539.84
Lua
Code:
apiRequest(0.1)

eeInsnReplace(0x2ff3f0, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2ff42c, 0x27bd0090, 0x27bd0120)

SLPM_664.97
Lua
Code:
apiRequest(0.1)

eeInsnReplace(0x2e91e8, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2e9224, 0x27bd0090, 0x27bd0120)

SLUS_213.07
Lua
Code:
apiRequest(0.1)

eeInsnReplace(0x2feb80, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2febbc, 0x27bd0090, 0x27bd0120)
@Vika23 The only one that i tested was Slus_213.07. I Have not heard of anyone having success in fixing the splash screen in this game before.
 
Last edited:
Credits to @kozarovv

SLES_539.84
Lua
Code:
apiRequest(0.1)

eeInsnReplace(0x2ff3f0, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2ff42c, 0x27bd0090, 0x27bd0120)

SLPM_664.97
Lua
Code:
apiRequest(0.1)

eeInsnReplace(0x2e91e8, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2e9224, 0x27bd0090, 0x27bd0120)

SLUS_213.07
Lua
Code:
apiRequest(0.1)

eeInsnReplace(0x2feb80, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2febbc, 0x27bd0090, 0x27bd0120)
@Vika23 The only one that i tested was Slus_213.07. I Have not heard of anyone having success in fixing the splash screen in this game before.

Ice Age 2 The Meltdown. Short GamePlay! (SLUS21307)
VIDEO

Full lua.
Code:
-- Ice Age 2 The Meltdown
-- emu used=Siren v2

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

apiRequest(0.1)

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

-- Freeze FiX
eeInsnReplace(0x2feb80, 0x27bdff70, 0x27bdfee0)
eeInsnReplace(0x2febbc, 0x27bd0090, 0x27bd0120)

local patcher = function()

end

emuObj.AddVsyncHook(patcher)

Thanks Again! @Scalerize
 
The Lord of the Rings The Third Age. Quick Look! (SLUS21027)
VIDEO

Full lua.
Code:
-- The Lord of the Rings The Third Age SLUS-21027
-- emu used=art of fighting anthology

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

apiRequest(0.1)

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

-- FiX vertical transparent line bug
eeInsnReplace(0x21ae18, 0x14a000b4, 0x100000b4)

local patcher = function()

-- Widescreen
eeObj.WriteMem32(0x20C37580,0x3f400000)  --fov
eeObj.WriteMem32(0x20C37590,0x3fb00000)  --renderfix 1
eeObj.WriteMem32(0x20C37598,0x3fb00000)  --renderfix 2

end

emuObj.AddVsyncHook(patcher)

For Original FiX Thanks to @mrjaredbeta
 
60 fps patch Jackie chan adventures
SCES_524.12
Code:
local gpr = require("ee-gpr-alias")

apiRequest(0.1)

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

local patcher = function()
eeObj.WriteMem32(0x202C4B48,0x00000001)

end

emuObj.AddVsyncHook(patcher)
hmm sound cool
 
Ugh. I miss being able to get in on all this fun. Unfortunate my JB PS4 BLOD last week and I lost all the progress I made with this machine. Oh well :cold:
 

Similar threads

Back
Top