PS4 [Research]PS2 emulator configuration on PS4

@kozarovv's fix for Dropship NTSC PCSX2 converted for PS4

LUA
Code:
--Dropship - United Peace Force (U)(SLUS-20463)
--Widescreen hack by Arapapa
--Game fix by Kozarovv
--emu used=jak v1

apiRequest(1.0)

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

--Widescreen hack 16:9
--0c000396 58000fc6 (2nd)
eeObj.WriteMem32(0x0019d198,0x08088ab4) --c60f0058

eeObj.WriteMem32(0x00222ad0,0xc60f0058)
eeObj.WriteMem32(0x00222ad4,0x3c013f40)
eeObj.WriteMem32(0x00222ad8,0x4481f000)
eeObj.WriteMem32(0x00222adc,0x461e7bc2)
eeObj.WriteMem32(0x00222ae0,0x08067467)

eeObj.WriteMem64(0x001be9c8,0x34068001ac660018)
eeObj.WriteMem64(0x001be9d4,0x3c062000ac66001c)
eeObj.WriteMem64(0x001be9dc,0x340600e8ac660020)
eeObj.WriteMem64(0x001be9e4,0xfc600028ac660024)
eeObj.WriteMem64(0x001be9f0,0x3c060005fc600030)
eeObj.WriteMem64(0x001be9f8,0xac60003834c60804)
eeObj.WriteMem64(0x001bea00,0xac600040ac66003c)
eeObj.WriteMem64(0x001bea08,0xac66004424060047)
eeObj.WriteMem64(0x001bea10,0xac67004cac600048)
eeObj.WriteMem64(0x001bea18,0x8f878b1024060060)

end

emuObj.AddVsyncHook(patcher)

Jak v1 used
Game appears to work fine. More testing needed
 
Last edited:
Hello, anyone have a fix fps drop for Tales of Destiny DC? I tried this config.txt

--fpu-accurate-range=0x1C0008,0x1C9000
--gs-use-clut-merge=1
--gs-kernel-cl="clutmerge"
--gs-kernel-cl-up="clutmerge2x2"

its works pretty good, it fixed not working control after exiting the menu and fix graphic bugs, but on menu and battle with full party and many enemies it will runs slow and when using mystic art, other than that the game runs very good, I try to omit "--fpu-accurate-range=0x1C0008,0x1C9000" it fixed all slowdown but control not working when exiting the menu, any solution for this? I really want to play this game on ps4, please help, thank you very much.

anyhelp for this guys, want to play Tales of Destiny DC English Patch on PS4, please help :(
 
Drakan - The Ancients' Gates - SCES_500.06

Many thanks to Maori-Jigglypuff for creating this code for PCSX2, I just converted it to a lua file.
We will finally be able to play this game without black parts flashing on all characters.


LUA

Code:
--Drakan - The Ancients' Gates (SCES_500.06)

apiRequest(1.0)
local eeObj = getEEObject()
local emuObj = getEmuObject()
local patcher = function()

--Characters, Dragon and certain Objects in the World only consist of real Light
eeObj.WriteMem32(0x00189da4,0x64040000)
eeObj.WriteMem32(0x001ea774,0x34040060)
eeObj.WriteMem32(0x001ea778,0x34020080)
eeObj.WriteMem32(0x001ea77c,0x00042a00)
eeObj.WriteMem32(0x001ea780,0x00a42825)
eeObj.WriteMem32(0x001ea784,0x00052a00)
eeObj.WriteMem32(0x001ea788,0x00a42825)
eeObj.WriteMem32(0x001ea790,0x00021600)
eeObj.WriteMem32(0x001ea798,0x00458025)
eeObj.WriteMem32(0x001ea860,0x1000000b)
eeObj.WriteMem32(0x001ea864,0x70002c28)
eeObj.WriteMem32(0x001ea890,0x7e050000)
end

emuObj.AddVsyncHook(patcher)


STAROCEAN v2 used


 
Last edited:
Fix for Knockout kings 2002 NTSC

fixes found here by various authors:

https://forums.pcsx2.net/Thread-Fixing-unplayable-games

LUA
Code:
--Knockout Kings 2002 [SLUS 20369] (U)
--patched by Prafull
--Widescreen Hack by Arapapa
--emu used=jakx v2

apiRequest(1.0)

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

--fix Hang at start of fight
eeObj.WriteMem32(0x001d7fec,0x1000000f)
eeObj.WriteMem32(0x001d8020,0x1000000f)
eeObj.WriteMem32(0x001d8074,0x1000000f)

--Widescreen hack 16:9
--Matrix hack
eeObj.WriteMem32(0x00219a94,0x3c013f40) --00000000
eeObj.WriteMem32(0x00219a98,0x44810000) --00000000
eeObj.WriteMem32(0x00219aa0,0x4600c602) --00000000

end

emuObj.AddVsyncHook(patcher)

emu used=jakx v2

Game works great now!
 
Last edited:
TXT
Code:
--gs-force-bilinear=1


I just found a new command, this command can fix the ghosting problem on the main menu or cutscene graphics in the game, such as: Arc the Lad Twilight of the Spirits and 7Sins, maybe many games also need it.
 
Last edited:
Drakan - The Ancients' Gates - SCES_500.06

Many thanks to Maori-Jigglypuff for creating this code for PCSX2, I just converted it to a lua file.
We will finally be able to play this game without black parts flashing on all characters.


LUA

Code:
--Drakan - The Ancients' Gates (SCES_500.06)

apiRequest(1.0)
local eeObj = getEEObject()
local emuObj = getEmuObject()
local patcher = function()

--Characters, Dragon and certain Objects in the World only consist of real Light
eeObj.WriteMem32(0x189da4,0x64040000)
eeObj.WriteMem32(0x1ea774,0x34040060)
eeObj.WriteMem32(0x1ea778,0x34020080)
eeObj.WriteMem32(0x1ea77c,0x00042a00)
eeObj.WriteMem32(0x1ea780,0x00a42825)
eeObj.WriteMem32(0x1ea784,0x00052a00)
eeObj.WriteMem32(0x1ea788,0x00a42825)
eeObj.WriteMem32(0x1ea790,0x00021600)
eeObj.WriteMem32(0x1ea798,0x00458025)
eeObj.WriteMem32(0x1ea860,0x1000000b)
eeObj.WriteMem32(0x1ea864,0x70002c28)
eeObj.WriteMem32(0x1ea890,0x7e050000)
end

emuObj.AddVsyncHook(patcher)


STAROCEAN v3 used

This config crashes PS4. The problem is

"eeObj.WriteMem32(0x" needs to be "eeObj.WriteMem32(0x00"

this code has 8 characters after the 0x

Works great after edit
 
This config crashes PS4. The problem is

"eeObj.WriteMem32(0x" needs to be "eeObj.WriteMem32(0x00"

this code has 8 characters after the 0x

Works great after edit

Thanks for testing, I've edited the post, but I don't know what might have happened, because I tested the configuration before, and it worked as I posted it.
Here it is, I took it out of the game working.
 

Attachments

possible I had another mistake somewhere else in my tests. Will have to re-try to be sure. I used star ocean v2, since I don't have a v3?
 
Does anyone know what this means?
BondNetAddResetHandler 0
GetThreadId() returned 00000001
CreateSema() returned 24
CreateThread() returned 8
StartThread() returned 8
scePowerOffHandler() returned 00000000
Shape @ Addr: 0x00978df0 - Not New (240) Metalbin!
Shared @ Addr: 0x0097c120
Shared Text =
Please rebuild ALL your .ssh / sfn files with gx > 5.00
 
possible I had another mistake somewhere else in my tests. Will have to re-try to be sure. I used star ocean v2, since I don't have a v3?
Sorry for my typo, it was star ocean v2 the emu used, I don't know where it's having problems, but here's a video I made just now using the lua file I published, and it's working amazingly well.


 
Hello people. I have been watching this thread for a long time and viewing the psdevwiki. Creating CLI configs is quite simple and understandable, but I still don't understand how you make lua configs. I need a hint. Where do you get these 0x codes for various speed and bug fixes?
 
Fix and Improvements for Gungrave NTSC

CLI
Code:
--gs-use-clut-merge=1
--gs-kernel-cl="clutmerge"
--gs-kernel-cl-up="clutmerge2x2"

LUA
Code:
--Gungrave (NTSC-U) (SLUS-20493)
--Widescreen Hack + Cheats
--emu used=rogue v1

apiRequest(0.1)

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

local patcher = function()

--No-Interlacing
eeObj.WriteMem32(0x001af74c,0x00000000) --64420008
--Widescreen
eeObj.WriteMem32(0x001bec1c,0x3c013f40) --00000000
eeObj.WriteMem32(0x001bec20,0x44810000) --00000000
eeObj.WriteMem32(0x001bec28,0x4600c602) --00000000
eeObj.WriteMem32(0x00143504,0x2402010e) --24020168 renderfix

end
emuObj.AddVsyncHook(patcher)

emu used=rogue v1

Gameplay almost perfect.
 
Last edited:
Fix and Improvements for Gungrave NTSC

CLI
Code:
--gs-use-clut-merge=1
--gs-kernel-cl="clutmerge"
--gs-kernel-cl-up="clutmerge2x2"

LUA
Code:
--Gungrave (NTSC-U) (SLUS-20493)
--Widescreen Hack + Cheats
--emu used=rogue v1

apiRequest(0.1)

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

local patcher = function()

--No-Interlacing
eeObj.WriteMem32(0x001af74c,0x00000000) --64420008
--Widescreen
eeObj.WriteMem32(0x001bec1c,0x3c013f40) --00000000
eeObj.WriteMem32(0x001bec20,0x44810000) --00000000
eeObj.WriteMem32(0x001bec28,0x4600c602) --00000000
eeObj.WriteMem32(0x00143504,0x2402010e) --24020168 renderfix

end
emuObj.AddVsyncHook(patcher)

emu used=rogue v1

Gameplay almost perfect.
I really like idea of putting emu version as comment into config itself.
 
Minor fix and improvement for X-Men Next Dimension NTSC

CLI
Code:
--gs-kernel-cl="mipmap"
--gs-kernel-cl-up="mipmap2x2"
--gs-use-mipmap=1
LUA
Code:
-- X-Men - Next Dimension SLUS_202.79
-- Widescreen Hack + Cheats
-- emu used=jakx v2

apiRequest(0.1)

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

eeObj.WriteMem32(0x001a5adc,0x3c014455)
eeObj.WriteMem32(0x001a5af8,0x3c013fe3)
eeObj.WriteMem32(0x001a5afc,0x34218e38)
eeObj.WriteMem32(0x0019dae4,0x3c013f22)

--Unlock All Characters
eeObj.WriteMem32(0x202F1540,0xFFFFFFFF)
--Unlock All Stages
eeObj.WriteMem32(0x202F1544,0xFFFFFFFF)
--Unlock All 2nd Set Of Costumes
eeObj.WriteMem32(0x202F1548,0xFFFFFFFF)
--Unlock All 3rd Set Of Costumes
eeObj.WriteMem32(0x202F154C,0xFFFFFFFF)
--Unlock All 4th Set Of Costumes
eeObj.WriteMem32(0x202F1550,0xFFFFFFFF)

end
emuObj.AddVsyncHook(patcher)

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

emu used=jakx v2

Cleans graphical glitches on some stages. Still present on some stages. Added unlock all codes as well. Remove if your preference.

*
edit - game still suffers from graphical glitches.
 
Last edited:
I ask you help! I need to remove the shadow of the "shadow of memories" game of the PAL destination. Would you be so kind to take a look please?
 
1. Proper fix for Steambot Chronicles NTSC

CLI
Code:
--vu1-no-clamping=0

--gs-uprender=2x2
--gs-upscale=EdgeSmooth

--gs-kernel-cl-up="up2x2skipinterp"
LUA
Code:
-- Steambot Chronicles SLUS_213.44
-- Widescreen Hack & Blur Removal
-- ported to PS4 Lua
-- emu used=jakx v2

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()

local thresholdArea = 600

emuObj.SetDisplayAspectWide()
gsObj.SetDeinterlaceShift(1)

local patcher = function()

--Widescreen hack 16:9
eeObj.WriteMem32(0x001329c0,0x3c033f40)
eeObj.WriteMem32(0x00132818,0x3c0643d6)
--Extensive blur removal
eeObj.WriteMem32(0x0010fdd8,0x00000000)
eeObj.WriteMem32(0x0010fea4,0x00000000)
--60 fps
--eeObj.WriteMem32(0x205BC89C,0x00000001) --\
--eeObj.WriteMem32(0x2055C3CC,0x42700000) --/ broken on PS4

end

emuObj.AddVsyncHook(patcher)

-- Performace fix
emuObj.SetGsTitleFix( "globalSet",  "reserved", { waveThreshold = 100000} )
No more audio stutter. Graphics cleaned up. Improvement over original fix.

2. Fix for Red Ninja End of Honor NTSC
Code:
<use emu twisted metal v2>
 
Last edited:

Similar threads

Back
Top