[Research]PS2 emulator configuration on PS4

Discussion in 'PS2 on PS4' started by kozarovv, Jan 23, 2018.

  1. 43
    11
    37
    stripnwild

    stripnwild Member

    Joined:
    Jan 29, 2017
    Messages:
    43
    Likes Received:
    11
    Trophy Points:
    37
    Gender:
    Female
    • Banned for publishing game download links
    Last edited by a moderator: Mar 13, 2020
    Vika23 likes this.
  2. 7,867
    6,071
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,867
    Likes Received:
    6,071
    Trophy Points:
    872
    Home Page:
    Sony speed/gfx-hacks found in ps3 official classic. Works on PCSX2, and PS3. Should work also here.

    Raw Danger! / Zettai Zetsumei Toshi 2 - Itetsuita Kiokutachi

    Code:
    apiRequest(0.1)
    
    -- SLPS-25606
    
    eeInsnReplace(0x11e094, 0x0c066804, 0x00000000)
    eeInsnReplace(0x11e09c, 0x0c08a654, 0x00000000)
    Code:
    apiRequest(0.1)
    
    -- SLES-54587
    
    eeInsnReplace(0x11e0f4, 0x0c066a40, 0x00000000)
    eeInsnReplace(0x11e0fc, 0x0c08a8d0, 0x00000000)
    Code:
    apiRequest(0.1)
    
    -- SLUS-21501
    
    eeInsnReplace(0x11e104, 0x0c066a5c, 0x00000000)
    eeInsnReplace(0x11e10c, 0x0c08a8ec, 0x00000000)
    What sony did here is actually terrible way of fixing stuff, but kinda work.
     
  3. 43
    11
    37
    stripnwild

    stripnwild Member

    Joined:
    Jan 29, 2017
    Messages:
    43
    Likes Received:
    11
    Trophy Points:
    37
    Gender:
    Female
    @kozarovv -----really dumb question but what and how to do take the following and use/convert so that it could be used in the ps4.pkg making process and add that into a ps4 pkg?
    Code:
    apiRequest(0.1)
    -- SLUS-21501
    eeInsnReplace(0x11e104, 0x0c066a5c, 0x00000000)
    eeInsnReplace(0x11e10c, 0x0c08a8ec, 0x00000000)
    Does that convert into a config file somehow? or is it a pnatch thing on the actual .iso? or does it somehow get converted and added to config-emu-ps4.txt? (sorry just trying to learn this part....is this an example of a ps3 config maybe)

    I've seen the odd reply to some games with an example similar to the above but no idea how to use that/convert that into a ps4.pkg Just want to try to make more PS2onPS4 games for peeps :)

    I should add I've been making/remaking games the manual way.......if that matters?
     
  4. 43
    11
    37
    stripnwild

    stripnwild Member

    Joined:
    Jan 29, 2017
    Messages:
    43
    Likes Received:
    11
    Trophy Points:
    37
    Gender:
    Female

    is there a pnatch version for the NTSC??
     
  5. 7,867
    6,071
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,867
    Likes Received:
    6,071
    Trophy Points:
    872
    Home Page:
    One posted above is LUA config, i belive there are some tutorials available for it.
    Anyway you can patch iso directly using ps2 patch engine, and those codes:

    Code:
    patch=1,EE,0011e104,word,00000000
    patch=1,EE,0011e10c,word,00000000
    I don't think it is, maybe someone can port it.
     
    Algol likes this.
  6. 3
    0
    5
    SJJD-CE

    SJJD-CE Forum Noob

    Joined:
    Mar 13, 2020
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    Hi, I Have God of War 2005 (USA) ISO and I converted to pkg then i installed it and it runs so slow so i check the https://www.psdevwiki.com/ps4/PS2_Classics_Emulator_Compatibility_List and i figured out I should do some configured to work perfect but I don't know where to do this changes and how?:sorrow:
    can I just convert the iso to pkg and installed it then I make a patch to do this configuration? and this configuration work for USA version? becuse I see at the beginning of LUA file wrote -- God Of War EU
    but in the site said playable for US/EU
    Please Help Me I Don't Know Anything about All of This
     
  7. 79
    33
    42
    Vika23

    Vika23 Member

    Joined:
    Mar 18, 2018
    Messages:
    79
    Likes Received:
    33
    Trophy Points:
    42
    Gender:
    Female
    p.m me
     
  8. 3
    0
    5
    SJJD-CE

    SJJD-CE Forum Noob

    Joined:
    Mar 13, 2020
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    Sorry but i don't know how and where should i p.m you:sorrow::sorrow::sorrow:
     
  9. 9
    6
    7
    Oxeres

    Oxeres Forum Noob

    Joined:
    Apr 9, 2020
    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    7
    Gender:
    Male
    I confirm this works for SLES-54587 !
    Raw Danger speed is fix ! Thanks
    If you have some more configs
     
    kozarovv likes this.
  10. 9
    6
    7
    Oxeres

    Oxeres Forum Noob

    Joined:
    Apr 9, 2020
    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    7
    Gender:
    Male
    is it possible to look at the config of second sight SLES-52670?
    It result only black screen on ps4, many emus tried.
     
    Last edited: Apr 9, 2020
    kozarovv likes this.
  11. 7,867
    6,071
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,867
    Likes Received:
    6,071
    Trophy Points:
    872
    Home Page:
    Thanks for testing.

    This is one of games that have similar issue to THPS4+ , etc. All games that have issue with MTVU on pcsx2 are currently not working also on ps4. And for now i have no idea how to fix it.
     
    Oxeres likes this.
  12. 9
    6
    7
    Oxeres

    Oxeres Forum Noob

    Joined:
    Apr 9, 2020
    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    7
    Gender:
    Male
    Both TR graphics are fixed however both games could freeze when you try to skip a cutscene.
    Thanks, they look much better with those fixes.

    I will try Legacy of Kain later.
     
    Last edited: Apr 11, 2020
    Stayhye and kozarovv like this.
  13. 9
    6
    7
    Oxeres

    Oxeres Forum Noob

    Joined:
    Apr 9, 2020
    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    7
    Gender:
    Male
    Legacy of Kain is ok too but still freeze problem when you skip cutscene. It's strange.
    Maybe have you same fix for PAL ?
    It's a "most wanted game" for a friend :)
     
    kozarovv likes this.
  14. 7,867
    6,071
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,867
    Likes Received:
    6,071
    Trophy Points:
    872
    Home Page:
    I don't own PAL version of it, but porting between PAL/NTSC is really easy. Maybe someone else can help.
     
    Oxeres likes this.
  15. 95
    30
    67
    nifengyuexia

    nifengyuexia Member

    Joined:
    Nov 18, 2017
    Messages:
    95
    Likes Received:
    30
    Trophy Points:
    67
    Crash Bandicoot: The Wrath of Cortex

    apiRequest(0.1)
    -- Eliminate color scan lines
    local emuObj = getEmuObject()

    emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1 } )
     
    Last edited: Apr 14, 2020
    Stayhye and Oxeres like this.
  16. 7,867
    6,071
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,867
    Likes Received:
    6,071
    Trophy Points:
    872
    Home Page:
    Some fun staff for Ace Combat 5 SCES_524.24, lets call it AC5 Remastered :D . This is patch that make game think that far objects on ground, are close to camera. That make game to select best quality texture for whole terrain. Here are some screens from PCSX2 as i don't own PS4 to make compare on it. Like you can see this is not great improvement, but on 40' TV can be a big deal. Specially that with those patches we don't need to use mipmap kernel, so we can use proper 2x2 Uprender with EdgeSmooth. That make graphic even better.

    Original vs. Patched - Open full images to see effect

    mipmapping.png vs. no_mipmap.png
    mipmapp.jpg vs. no_mip.jpg

    Usually mipmaping is used to minimize transition/aliasing effect of far textures, but here there seems to be no reason to keep it. As game still look stunning. :)

    IMPORTANT. DO NOT USE THIS WHEN USING THAT CONFIG!

    Code:
    --gs-kernel-cl="mipmap"
    --gs-kernel-cl-up="mipmap2x2"
    --gs-use-mipmap=1
    
    DO NOT USE THAT!
    Ok, straight to the point. Here is config, patches for collision detection come from PCSX2, fix for clouds was found by @Vitt0xLar_YT , patch for improved textures is my work.

    AC5 Remastered

    Code:
    apiRequest(0.1)
    
    local emuObj = getEmuObject()
    
    -- Collision detection fix based on PCSX2 Patch (Rearranging COP2 instructions that use old results)
    
    eeInsnReplace(0x1A3154, 0x4B00682C, 0x48498800)
    eeInsnReplace(0x1A3158, 0x4B0C682C, 0x4B00682C)
    eeInsnReplace(0x1A3164, 0x48498800, 0x484A8800)
    eeInsnReplace(0x1A3168, 0x484A8800, 0x4B0C682C)
    
    -- Always select best quality texture (no MipMap)
    
    emuMediaPatch(0x16E, 12 + 0x414, { 0x10400096 }, { 0x00000000 })
    emuMediaPatch(0x16E, 12 + 0x424, { 0x1443003A }, { 0x00000000 })
    emuMediaPatch(0x16E, 12 + 0x430, { 0x4502000C }, { 0x00000000 })
    
    -- Foece simple fetch for selected textures (i'm 100% sure that we don't need both, but i can't test by myself which one is correct)
    
    emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1 } )
    emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=2 } )
    Edit: Fixed pad patch.
     
    Last edited: Apr 14, 2020
    Oxeres and DeViL303 like this.
  17. 9
    6
    7
    Oxeres

    Oxeres Forum Noob

    Joined:
    Apr 9, 2020
    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    7
    Gender:
    Male
    I believe besides that there is a certain confusion in the patches ace combat on psdevwiki. game codes do not match titles. I don’t know how to edit them properly.

    edit: this is just SCES50410 who is ace combat 4 and not 5.
     
    Last edited: Apr 14, 2020
    kozarovv likes this.
  18. 7,867
    6,071
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,867
    Likes Received:
    6,071
    Trophy Points:
    872
    Home Page:
    Oh, i wasn't aware. I will fix it here in few minutes. So "remastered patch should be fine soon.
     
    Oxeres likes this.
  19. 95
    30
    67
    nifengyuexia

    nifengyuexia Member

    Joined:
    Nov 18, 2017
    Messages:
    95
    Likes Received:
    30
    Trophy Points:
    67
    Ace Combat Zero: The Belkan War

    SLPS-25629
    LUA

    apiRequest(0.1) -- request version 0.1 API. Calling apiRequest() is mandatory.
    -- Collision detection fix.
    eeInsnReplace(0x131E84, 0x4B00682C, 0x48498800)
    eeInsnReplace(0x131E88, 0x4B0C682C, 0x4B00682C)
    eeInsnReplace(0x131E94, 0x48498800, 0x484A8800)
    eeInsnReplace(0x131E98, 0x484A8800, 0x4B0C682C)

    Ace Combat 5

    SLPS-25418
    LUA

    apiRequest(0.1) -- request version 0.1 API. Calling apiRequest() is mandatory.
    -- Collision detection fix for Stage 3 onwards // Rearranging COP2 instructions that use old results
    eeInsnReplace(0x1A3B6C, 0x4B00682C, 0x48498800)
    eeInsnReplace(0x1A3B70, 0x4B0C682C, 0x4B00682C)
    eeInsnReplace(0x1A3B7C, 0x48498800, 0x484A8800)
    eeInsnReplace(0x1A3B80, 0x484A8800, 0x4B0C682C)
     
    Last edited: Apr 14, 2020
  20. 95
    30
    67
    nifengyuexia

    nifengyuexia Member

    Joined:
    Nov 18, 2017
    Messages:
    95
    Likes Received:
    30
    Trophy Points:
    67
    Prince of Persia: The Sands of Time
    Prince of Persia: The Two Thrones
    Prince of Persia: The Warrior Within

    All versions
    Text

    --vu0-no-clamping=0
    --vu0-clamp-operands=1
    --vu0-clamp-results=1
    --vu1-no-clamping=0
    --vu1-clamp-operands=1
    --vu1-clamp-results=1
    --cop2-no-clamping=0
    --cop2-clamp-operands=1
    --cop2-clamp-results=1
    #fix for graphical glitches
     
    Oxeres likes this.

Share This Page