Vika23
Senior Member
same as NTSC, Graphical bugsScarface PAL is working, without the texture issues?
same as NTSC, Graphical bugsScarface PAL is working, without the texture issues?
same as NTSC, Graphical bugs
--gs-uprender=2x2
--gs-upscale=edgesmooth
--gs-use-clut-merge=1
--gs-kernel-cl="clutmerge"
--gs-kernel-cl-up="clutmerge2x2"
--vu0=trans
--vu1-mpg-cycles=500
--vu1-di-bits=0
--vu1-jr-cache-policy=newprog
--iop-cycle-scalar=2.0
--ee-cycle-scalar=1.5
#--vu0-no-clamping=0
#--vu0-clamp-range=0x130,0x140
#--vu0-accurate-addsub-range=0x130,0x16a
#--vu0-mul0fix-range=0x010,0x03f
-- Scarface NTSC SLUS-21111
-- emu used=jakx v2
apiRequest(2.3)
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()
emuObj.ForceRefreshRate(0)
emuObj.SetFormattedCard("scarface.card")
emuObj.SetDisplayAspectWide(1)
gsObj.SetDeinterlaceShift(1)
local FIX = function()
eeObj.WriteMem32(0x00643790,0x03e00080) -- But it is more aggressive and the pop ins might be more distracting.
eeObj.WriteMem32(0x00643794,0x00000000)
eeObj.WriteMem32(0x0064292c,0x10000012) -- This patch would affect the smaller objects also (e.g. stillages).
eeObj.WriteMem32(0x0050ffa0,0x3c034220)
eeObj.WriteMem32(0x0050ff50,0x3c033f00)
--eeObj.WriteMem32(0x004f8048,0x00000000) -- everything but trees
--eeObj.WriteMem32(0x001b99e0,0x00000000) -- nighht
--eeObj.WriteMem32(0x20DAFABC,0x00000000) --60fps
eeObj.SchedulerDelayEvent("vif1.dma", 0x6500)
emuObj.ThrottleMax()
end
emuObj.AddVsyncHook(FIX)
emuObj.SetGsTitleFix( "trianglesAsParticles", "reserved", { hasClut=1,zmsk=1 } )
One question, the CLI.conf files where i put that? Inside the Star Ocean emu folder I see a "patches" folder. If i put inside the file "SLES-54182_cli.conf" (Scarface Pal) it will auto add to the pkg? Or I have to create a "patches" folder in the root of the program folder?what could be causing it? All clamp modes do nothing. Accurate range seems like a good command, but how would one find the memory range addresses? Randomly trying values is not productive lol, at least for me.
I copypasted the codes from the CLI file to the config-emu-ps4.txt and it doesnt boot in the ps4. Without adding the CLI file works. Is for Scarface PAL with Ocean emu
My config-emu-ps4.txt is this:
Code:--path-vmc="/tmp/vmc" --path-emulog="/tmp/recordings" --path-patches="/app0/patches" --path-trophydata="/app0/trophy_data" --path-featuredata="/app0/feature_data" --host-osd=0 --host-audio=1 --host-display-mode=full --ps2-title-id=SLES-00000 --ps2-lang=system --gs-uprender=none --gs-upscale=none --rom="PS20220WD20050620.crack" --vu1-di-bits=1 --vu1-jr-cache-policy=newprog --vu1-jalr-cache-policy=newprog --vu1-opt-flags=2 --vu1-mpg-cycles=500 --ee-cycle-scalar=0.3 --ee-kernel-hle=1 --ee-injection-kernel=1 --ee-injection-title=1 --ee-hook=0x0072EFA0,AdvanceClock --ee-native-function=memset,0x72EF60 --ee-native-function=memset,0x72EF78 --ee-native-function=memset,0x72EF84 --framelimit-mode=normal --gs-optimize-30fps=1 --safe-area-min=1.0
and the LUA file is:
Code:-- Scarface The World Is Yours REGION : EUR VIDEO MODE : PAL ------------------------------------- --PROBLEMS : --Low frame rate caused by microvu1 recompilation --Flickering textures ------------------------------------- apiRequest(1.4) local emuObj = getEmuObject() local gpr = require("ee-gpr-alias") -- Graphic improvement: removes corrupted lines on screen with uprender on for PAL version emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1 } ) emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=2 } ) --texMode=2 is BILINEAR ------------------------- require("utils") local eeObj = getEEObject() local PrecompileAddrs = Queue.new( { 0x1A1300, 0x1A1304, 0x1A1308, 0x1A130C, 0x1A1310, 0x1A1314, 0x1A1318, 0x1A131C, 0x1A1320, 0x1A1324, 0x1A1328, 0x1A132C, 0x1A1330, 0x1A1334, 0x1A1338, 0x1A133C, 0x1A1340, 0x1A1344, 0x1A1348, 0x1A134C, 0x1A1350, 0x1A1354, 0x1A1358, 0x1A135C, 0x1A1360, 0x1A1364, 0x1A1368, 0x1A136C, 0x1A1370, 0x1A1374, 0x1A1378, 0x1A137C, 0x1A1380, 0x1A1384, 0x1A1388, 0x1A138C, 0x1A1390, 0x1A1394, 0x1A1398, 0x1A139C, 0x1A13A0, 0x1A13A4, 0x1A13A8, 0x1A13AC, 0x1A13B0, 0x1A13B4, 0x1A13B8, 0x1A13BC, 0x1A13C0, 0x1A13C4, 0x1A13C8, 0x1A13CC, 0x1A13D0, 0x1A13D4, 0x1A13D8, 0x1A13DC, 0x1A13E0, 0x1A13E4, 0x1A13E8, 0x1A13EC, 0x1A13F0, 0x1A13F4, 0x1A13F8, 0x1A13FC, 0x1A1400, 0x1A1404, 0x1A1408, 0x1A140C, 0x1A1410, 0x1A1414, 0x1A1418, 0x1A141C, 0x1A1420, 0x1A1424, 0x1A1428, 0x1A142C, 0x1A1430, 0x1A1434, 0x1A1438, 0x1A143C, 0x1A1440, 0x1A1444, 0x1A1448, 0x1A144C, 0x1A1450, 0x1A1454, 0x1A1458, 0x1A145C, 0x1A1460, 0x1A1464, 0x1A1468, 0x1A146C, 0x1A1470, 0x1A1474, 0x1A1478, 0x1A147C, 0x1A1480, 0x1A1484, 0x1A1488, 0x1A148C, 0x1A1490, 0x1A1494, 0x1A1498, 0x1A149C, 0x1A14A0, 0x1A14A4, 0x1A14A8, 0x1A14AC, 0x1A14B0, 0x1A14B4, 0x1A14B8, 0x1A14BC, 0x1A14C0, 0x1A14C4, 0x1A14C8, 0x1A14CC, 0x1A14D0, 0x1A14D4, 0x1A14D8, 0x1A14DC, 0x1A14E0, 0x1A14E4, 0x1A14E8, 0x1A14EC, 0x1A14F0, 0x1A14F4, 0x1A14F8, 0x1A14FC, 0x1A1500, 0x1A1504, 0x1A1508, 0x1A150C, 0x1A1510, 0x1A1514, 0x1A1518, 0x1A151C, 0x1A1520, 0x1A1524, 0x1A1528, 0x1A152C, 0x1A1530, 0x1A1534, 0x1A1538, 0x1A153C, 0x1A1540, 0x1A1544, 0x1A1548, 0x1A154C, 0x1A1550, 0x1A1554, 0x1A1558, 0x1A155C, 0x1A1560, 0x1A1564, 0x1A1568, 0x1A156C, 0x1A1570, 0x1A1574, 0x1A1578, 0x1A157C, 0x1A1580, 0x1A1584, 0x1A1588, 0x1A158C, 0x1A1590, 0x1A1594, 0x1A1598, 0x1A159C, 0x1A15A0, 0x1A15A4, 0x1A15A8, 0x1A15AC, 0x1A15B0, 0x1A15B4, 0x1A15B8, 0x1A15BC, 0x1A15C0, 0x1A15C4, 0x1A15C8, 0x1A15CC, 0x1A15D0, 0x1A15D4, 0x1A15D8, 0x1A15DC, 0x1A15E0, 0x1A15E4, 0x1A15E8, 0x1A15EC, 0x1A15F4, 0x1A15F8, 0x1A15FC, 0x1A1600, 0x1A1604, 0x1A1608, 0x1A160C, 0x1A1610, 0x1A1614, 0x1A1618, 0x1A161C, 0x1A1620, 0x1A1624, 0x1A1628, 0x1A162C, 0x1A1630, 0x1A1634, 0x1A1638, 0x1A163C, 0x1A1640, 0x1A1644, 0x1A1648, 0x1A164C, 0x1A1650, 0x1A1654, 0x1A1658, 0x1A165C, 0x1A1660, 0x1A1664, 0x1A1668, 0x1A166C, 0x1A1670, 0x1A1674, 0x1A1678, 0x1A167C, 0x1A1680, 0x1A1684, 0x1A1688, 0x1A168C, 0x1A1690, 0x1A1694, 0x1A1698, 0x1A169C, 0x1A16A0, 0x1A16A4, 0x1A16A8, 0x1A16AC, 0x1A16B0, 0x1A16B4, 0x1A16B8, 0x1A16BC, 0x1A16C0, 0x1A16C4, 0x1A16C8, 0x1A16CC, 0x1A16D0, 0x1A16D4, 0x1A16D8, 0x1A16DC, 0x1A16E0, 0x1A16E4, 0x1A16E8, 0x1A16EC, 0x1A16F0, 0x1A16F4, 0x1A16F8, 0x1A16FC, 0x1A1700, 0x1A1704, 0x1A1708, 0x1A170C, 0x1A1710, 0x1A1714, 0x1A1718, 0x1A171C, 0x1A1720, 0x1A1724, 0x1A1728, 0x1A172C, 0x1A1730, 0x1A1734, 0x1A1738, -- microvu1 first section with opcode 3F800000 0x1A1790, -- microvu1 first section with opcode 3F000000 0x1A1794, 0x1A1798, 0x1A179C, 0x1A17A0, 0x1A17A4, 0x1A17A8, 0x1A17AC, 0x1A17B0, 0x1A17B4, 0x1A17B8, 0x1A17BC, 0x1A17C0, 0x1A17C4, 0x1A17C8, 0x1A17CC, 0x1A17D0, 0x1A17D8, 0x1A17DC, 0x1A17E0, 0x1A17E4, 0x1A17E8, 0x1A17EC, 0x1A17F0, 0x1A17F4, 0x1A17F8, 0x1A17FC, 0x1A1800, 0x1A1804, 0x1A1808, 0x1A180C, 0x1A1810, 0x1A1814, 0x1A1818, 0x1A181C, 0x1A1820, 0x1A1824, 0x1A1828, 0x1A182C, 0x1A1830, 0x1A1834, 0x1A1838, 0x1A183C, 0x1A1840, 0x1A1844, 0x1A1848, 0x1A184C, 0x1A1850, 0x1A1854, 0x1A1858, 0x1A185C, 0x1A1860, 0x1A1864, 0x1A1868, 0x1A186C, 0x1A1870, 0x1A1874, 0x1A1878, 0x1A187C, 0x1A1880, 0x1A1884, 0x1A1888, 0x1A188C, 0x1A1890, 0x1A1894, 0x1A1898, 0x1A189C, 0x1A18A0, 0x1A18A4, 0x1A18A8, 0x1A18AC, 0x1A18B0, 0x1A18B4, 0x1A18B8, 0x1A18BC, 0x1A18C0, 0x1A18C4, 0x1A18C8, 0x1A18CC, 0x1A18D0, 0x1A18D4, 0x1A18D8, 0x1A18DC, 0x1A18E0, 0x1A18E4, 0x1A18E8, 0x1A18EC, 0x1A18F0, 0x1A18F4, 0x1A18F8, 0x1A18FC, 0x1A1900, 0x1A1904, 0x1A1908, 0x1A190C, 0x1A1914, 0x1A1918, 0x1A191C, 0x1A1920, 0x1A1924, 0x1A1928, 0x1A192C, 0x1A1930, 0x1A1934, 0x1A1938, 0x1A193C, 0x1A1940, 0x1A1948, 0x1A194C, 0x1A1950, 0x1A1954, 0x1A1958, 0x1A195C, 0x1A1960, 0x1A1964, 0x1A1968, 0x1A196C, 0x1A1970, 0x1A1974, 0x1A1978, 0x1A197C, 0x1A1980, 0x1A1984, 0x1A1988, 0x1A198C, 0x1A1990, 0x1A1994, 0x1A1998, 0x1A199C, 0x1A19A0, 0x1A19A4, 0x1A19A8, 0x1A19AC, 0x1A19B0, 0x1A19B4, 0x1A19B8, 0x1A19BC, 0x1A19C0, 0x1A19C4, 0x1A19C8, 0x1A19CC, 0x1A19D0, 0x1A19D4, 0x1A19D8, 0x1A19DC, 0x1A19E0, 0x1A19E4, 0x1A19E8, 0x1A19EC, 0x1A19F0, 0x1A19F4, 0x1A19F8, 0x1A19FC, 0x1A1A00, 0x1A1A04, 0x1A1A08, 0x1A1A0C, 0x1A1A10, 0x1A1A14, 0x1A1A18, 0x1A1A1C, 0x1A1A20, 0x1A1A24, 0x1A1A28, 0x1A1A2C, 0x1A1A30, 0x1A1A34, 0x1A1A38, 0x1A1A3C, 0x1A1A40, 0x1A1A44, 0x1A1A48, 0x1A1A4C, 0x1A1A50, 0x1A1A54, 0x1A1A58, 0x1A1A5C, 0x1A1A60, 0x1A1A64, 0x1A1A68, 0x1A1A6C, 0x1A1A70, 0x1A1A74, 0x1A1A78, 0x1A1A7C, 0x1A1A80, 0x1A1A84, 0x1A1A88, 0x1A1A8C, 0x1A1A90, 0x1A1A94, 0x1A1A98, 0x1A1A9C, 0x1A1AA0, 0x1A1AA4, 0x1A1AA8, 0x1A1AAC, 0x1A1AB0, 0x1A1AB4, 0x1A1AB8, 0x1A1ABC, 0x1A1AC0, 0x1A1AC4, 0x1A1AC8, 0x1A1ACC, 0x1A1AD0, 0x1A1AD4, 0x1A1AD8, 0x1A1ADC, 0x1A1AE0, 0x1A1AE4, 0x1A1AE8, 0x1A1AEC, 0x1A1AF0, 0x1A1AF4, 0x1A1AF8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1A20C0, 0x1A20C4, 0x1A20C8, 0x1A20CC, 0x1A20D0, 0x1A20D4, 0x1A20D8, 0x1A20DC, 0x1A20E0, 0x1A20E4, 0x1A20E8, 0x1A20EC, 0x1A20F0, 0x1A20F4, 0x1A20F8, 0x1A20FC, 0x1A2100, 0x1A2104, 0x1A2108, 0x1A210C, 0x1A2110, 0x1A2114, 0x1A2118, 0x1A211C, 0x1A2120, 0x1A2124, 0x1A2128, 0x1A212C, 0x1A2130, 0x1A2134, 0x1A2138, 0x72EF60, 0x72EF78, 0x72EF84, 0x1A698C })
How can i add the CLI file codes? It doesnt boot adding that
-- NOP out some meaningless (M) bits.
-- SO3 uses these as a performance optimization to allow writing next data set regs in parallel
-- to mpg calculating results of current set. In our emu it's sync always, so just interlock is ok.
vuInsnReplace(0, 0x004, (0x21f809bc<<32) | 0x8000033c, (0x01f809bc<<32) | 0x8000033c) -- MULAbc.xyzw Acc, vf01, vf24.x (M)
vuInsnReplace(0, 0x016, (0x21f859bc<<32) | 0x8000033c, (0x01f859bc<<32) | 0x8000033c) -- MULAbc.xyzw Acc, vf11, vf24.x (M)
vuInsnReplace(0, 0x034, (0x21f880bd<<32) | 0x8000033c, (0x01f880bd<<32) | 0x8000033c) -- MADDAbc.xyzw Acc, Acc, vf16, vf24.y (M)
vuInsnReplace(0, 0x05b, (0x21f81e4a<<32) | 0x8000033c, (0x01f81e4a<<32) | 0x8000033c) -- MADDbc.xyzw vf25, Acc, vf03, vf24.z (M)
vuInsnReplace(0, 0x06c, (0x210001c3<<32) | 0x8000033c, (0x010001c3<<32) | 0x8000033c) -- ADDbc.x vf07, vf00, vf00.w (M)
vuInsnReplace(0, 0x15d, (0x21e141bc<<32) | 0x8000033c, (0x01e141bc<<32) | 0x8000033c) -- MULAbc.xyzw Acc, vf08, vf01.x
-- remove DMA Ch1 kick for audio-vu1.
-- using Native EE processing code.
-- See. SLES82028_cli.conf and eJitExec_NativeHooks.cpp.
eeInsnReplace(0x00109bd4, 0xac239000, 0) -- sw $v1,-0x7000 (0xffff9000)($at)
eeInsnReplace(0x00109c08, 0xac239000, 0) -- sw $v1,-0x7000 (0xffff9000)($at)
I don't know what program you are using.
I've tested that CLI and LUA for the PAL Scarface, and it seems to do nothing at all to fix or speed up anything. Without the lopnor, the game still runs like crap
Game run full speed at jak x v.2?what could be causing it? All clamp modes do nothing. Accurate range seems like a good command, but how would one find the memory range addresses? Randomly trying values is not productive lol, at least for me.
LUACode:--gs-uprender=2x2 --gs-upscale=edgesmooth --gs-use-clut-merge=1 --gs-kernel-cl="clutmerge" --gs-kernel-cl-up="clutmerge2x2" --vu0=trans --vu1-mpg-cycles=500 --vu1-di-bits=0 --vu1-jr-cache-policy=newprog --iop-cycle-scalar=2.0 --ee-cycle-scalar=1.5 #--vu0-no-clamping=0 #--vu0-clamp-range=0x130,0x140 #--vu0-accurate-addsub-range=0x130,0x16a #--vu0-mul0fix-range=0x010,0x03f
Code:-- Scarface NTSC SLUS-21111 -- emu used=jakx v2 apiRequest(2.3) 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() emuObj.ForceRefreshRate(0) emuObj.SetFormattedCard("scarface.card") emuObj.SetDisplayAspectWide(1) gsObj.SetDeinterlaceShift(1) local FIX = function() eeObj.WriteMem32(0x00643790,0x03e00080) -- But it is more aggressive and the pop ins might be more distracting. eeObj.WriteMem32(0x00643794,0x00000000) eeObj.WriteMem32(0x0064292c,0x10000012) -- This patch would affect the smaller objects also (e.g. stillages). eeObj.WriteMem32(0x0050ffa0,0x3c034220) eeObj.WriteMem32(0x0050ff50,0x3c033f00) --eeObj.WriteMem32(0x004f8048,0x00000000) -- everything but trees --eeObj.WriteMem32(0x001b99e0,0x00000000) -- nighht --eeObj.WriteMem32(0x20DAFABC,0x00000000) --60fps eeObj.SchedulerDelayEvent("vif1.dma", 0x6500) emuObj.ThrottleMax() end emuObj.AddVsyncHook(FIX) emuObj.SetGsTitleFix( "trianglesAsParticles", "reserved", { hasClut=1,zmsk=1 } )
I get great results with this config, except for the graphical glitches
Yes. With extra effects enabled. That config is still a WIP. Star Ocean may be a better choice because of "--ee-context-switch-cycles=".....that is turning out to be a very powerful command IMO when using the "--ee-cycle-scalar=" is not an optionGame run full speed at jak x v.2?
ring eternal emu dont do anything good with scarface?Yes. With extra effects enabled. That config is still a WIP
no real difference. The only thing I've noticed about Eternal ring emu is the command "--vu1=jit-sync" seems to operate slightly different that all other emus I've tested.ring eternal emu dont do anything good with scarface?
cli and lua files need to be in patches folder in root of emu!One question, the CLI.conf files where i put that? Inside the Star Ocean emu folder I see a "patches" folder. If i put inside the file "SLES-54182_cli.conf" (Scarface Pal) it will auto add to the pkg? Or I have to create a "patches" folder in the root of the program folder?
and also u not got random crash? long time ago i have random crash soon or later but @Vitt0xLar_YT help me with config! Thets mean ur config not have random crash right?no real difference.
One question, the CLI.conf files where i put that? Inside the Star Ocean emu folder I see a "patches" folder. If i put inside the file "SLES-54182_cli.conf" (Scarface Pal) it will auto add to the pkg? Or I have to create a "patches" folder in the root of the program folder?
is not the line:i found just widescreen patch, well gameplay good anyways
I have not had a crash yet. But I am mostly playing to test configs trying to remove glitches.and also u not got random crash? long time ago i have random crash soon or later but @Vitt0xLar_YT help me with config! Thets mean ur config not have random crash right?
is not the line:
--gs-optimize-30fps=1
In cli should make the game run at 30fps
add commands from cli to txt. file![]()
This program. Im searching how to add the CLI file but the program doesnt show anything like that
It only give me the possibility of add a TXT file and LUA file. Thats why i was searching for put the CLI codes in a txt file
my config-emu-ps4.txt is this, i added the CLI codes but the game crashes before even start. The CLI codes go after theadd commands from cli to txt. file
--path-vmc="/tmp/vmc"
--path-emulog="/tmp/recordings"
--path-patches="/app0/patches"
--path-trophydata="/app0/trophy_data"
--path-featuredata="/app0/feature_data"
--host-osd=0
--host-audio=1
--host-display-mode=full
--ps2-title-id=SLES-00000
--ps2-lang=system
--gs-uprender=2x2
--gs-upscale=EdgeSmooth
--rom="PS20220WD20050620.crack"
--vu1-di-bits=1
--vu1-jr-cache-policy=newprog
--vu1-jalr-cache-policy=newprog
--vu1-opt-flags=2
--vu1-mpg-cycles=500
--ee-cycle-scalar=0.3
--ee-kernel-hle=1
--ee-injection-kernel=1
--ee-injection-title=1
--ee-hook=0x0072EFA0,AdvanceClock
--ee-native-function=memset,0x72EF60
--ee-native-function=memset,0x72EF78
--ee-native-function=memset,0x72EF84
--framelimit-mode=normal
--gs-optimize-30fps=1
--safe-area-min=1.0
what emu are you using? All commands do not work with all emus! I would recommend that instead of polluting the config-emu-ps4.txt, create a CLI file with correct name and put in patches folder. XXXX-YYYYY_cli.conf, with XXXX-YYYYY being your game ID.my config-emu-ps4.txt is this, i added the CLI codes but the game crashes before even start. The CLI codes go after the
--rom="PS20220WD20050620.crack" code
Code:--path-vmc="/tmp/vmc" --path-emulog="/tmp/recordings" --path-patches="/app0/patches" --path-trophydata="/app0/trophy_data" --path-featuredata="/app0/feature_data" --host-osd=0 --host-audio=1 --host-display-mode=full --ps2-title-id=SLES-00000 --ps2-lang=system --gs-uprender=2x2 --gs-upscale=EdgeSmooth --rom="PS20220WD20050620.crack" --vu1-di-bits=1 --vu1-jr-cache-policy=newprog --vu1-jalr-cache-policy=newprog --vu1-opt-flags=2 --vu1-mpg-cycles=500 --ee-cycle-scalar=0.3 --ee-kernel-hle=1 --ee-injection-kernel=1 --ee-injection-title=1 --ee-hook=0x0072EFA0,AdvanceClock --ee-native-function=memset,0x72EF60 --ee-native-function=memset,0x72EF78 --ee-native-function=memset,0x72EF84 --framelimit-mode=normal --gs-optimize-30fps=1 --safe-area-min=1.0
Im using the Star Ocean emu. I changed the ps2 title id for "SLES-54182" and i put the conf and lua file in patches folder(inside the star ocean emu folder), but still the program doesnt detect these files.what emu are you using? All commands do not work with all emus! I would recommend that instead of polluting the config-emu-ps4.txt, create a CLI file with correct name and put in patches folder. XXXX-YYYYY_cli.conf, with XXXX-YYYYY being your game ID.
Also you have to change "--ps2-title-id=" in config-emu-ps4.txt to match game ID/configs
I build manually with the original fake pkg tools 1.5.1Im using the Star Ocean emu. I changed the ps2 title id for "SLES-54182" and i put the conf and lua file in patches folder(inside the star ocean emu folder), but still the program doesnt detect these files.
By the way, what program you use?