[Research]PS2 emulator configuration on PS4

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

  1. 7
    2
    7
    hyndrid

    hyndrid Forum Noob

    Joined:
    Jun 9, 2019
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    7
    Gender:
    Male
    don't work dude :(
     
  2. 7,544
    5,632
    872
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    7,544
    Likes Received:
    5,632
    Trophy Points:
    872
    Home Page:
    Mipmap removing patches, seems like PS4 emu need it due to inability to properly emulate them on some games.

    UNTESTED
    Defiance SLUS_207.73

    Code:
    patch=1,EE,00188F50,word,10000020 
    UNTESTED
    TR games mipmap

    SLUS_215.55

    Code:
    patch=1,EE,001297C0,word,10000022 
    SLUS_212.03
    Code:
    patch=1,EE,00127390,word,10000022 

    EDIT: Added proper PS4 format patches.

    TESTED only on PCSX2
    Defiance SLUS_207.73

    Code:
    apiRequest(0.1)    -- request version 0.1 API. Calling apiRequest() is mandatory.
    -- SLUS_207.73 mipmap removing
    
    eeInsnReplace(0x188F50, 0x10600020, 0x10000020)
    
    UNTESTED AT ALL
    TR games mipmap


    Code:
    apiRequest(0.1)    -- request version 0.1 API. Calling apiRequest() is mandatory.
    -- SLUS_215.55 mipmap removing
    
    eeInsnReplace(0x1297C0, 0x10600022, 0x10000022)
    
    Code:
    apiRequest(0.1)    -- request version 0.1 API. Calling apiRequest() is mandatory.
    -- SLUS_212.03 mipmap removing
    
    eeInsnReplace(0x127390, 0x10600022, 0x10000022)
    
     
    Last edited: Jul 28, 2019
    DeViL303, Stayhye and sandungas like this.
  3. 4
    0
    5
    MWE

    MWE Forum Noob

    Joined:
    Jul 18, 2019
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    Brave - The Search for Spirit Dancer SCES-51635(E)
    Start - OK
    Movie with render textures (not avi) - OK
    First fight with bear - the characters fly off into the abyss.

    https://imgur.com/a/YCxYivh

    try this config-emu-ps4.txt:
    //--gs-uprender=2x2
    //--gs-upscale=EdgeSmooth
    --fpu-no-clamping=0
    --fpu-clamp-operands=1
    --fpu-clamp-results=1

    without changes.
     
  4. 2
    0
    5
    Savage546

    Savage546 Forum Noob

    Joined:
    Aug 8, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    --path-snaps="/tmp/snapshots"
    --path-recordings="/tmp/recordings"
    --path-vmc="/tmp/vmc"
    --path-emulog="/tmp/recordings"
    --config-local-lua=""
    --load-tooling-lua=0
    #--path-patches="/app0/patches"
    #--path-trophydata="/app0/trophy_data"
    #--path-featuredata="/app0/patches"
    #--path-toolingscript="/app0/patches"
    --ps2-title-id=SCES-54206
    --max-disc-num=1
    --trophy-support=0
    --gs-uprender=None
    --gs-upscale=None
    --host-audio=1
    --rom="PS20220WD20050620.crack"
    --verbose-cdvd-reads=0
    --host-osd=0
    --host-display-mode=full

    Guys, here's config-emu-ps4 for God Of War 2. The game loads, but it seems like patches don't work. What's the problem?
     
  5. 7,544
    5,632
    872
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    7,544
    Likes Received:
    5,632
    Trophy Points:
    872
    Home Page:
    @sabin1981 Maybe you have USA version of Shadowman: Second Coming? I worked on fix for pcsx2 for that game, and if issues are similar i can try to fix it for PS4.

    Possible issues are:

    - First intro glitches, after selecting start game wait until fmv will start play. When cop open door in car, graphic can start glitching (sadly no good fix for that yet)
    - When you start game, there is only one texture on everything excluding main character.
     
  6. 194
    248
    97
    NewFile

    NewFile Developer

    Joined:
    Oct 11, 2017
    Messages:
    194
    Likes Received:
    248
    Trophy Points:
    97
    Gender:
    Male
    Remove "#" from those lines becausw right now they are comments and the command after # are ignored.
    You may need to edit paths aswell.
     
  7. 2
    0
    5
    Savage546

    Savage546 Forum Noob

    Joined:
    Aug 8, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    Ok, I will try it later
     
  8. 7,544
    5,632
    872
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    7,544
    Likes Received:
    5,632
    Trophy Points:
    872
    Home Page:
  9. 7,544
    5,632
    872
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    7,544
    Likes Received:
    5,632
    Trophy Points:
    872
    Home Page:
    I'm reversing emu since few days, and today i found something big! Looks like emu support PS3 style configs in bin form!! Still a lot to do, but this looks very promising, we got ~1000 configs on ps3!
     
    Jack15_5, Stayhye, Vegeta and 2 others like this.
  10. 1,502
    907
    222
    Naked_Snake1995

    Naked_Snake1995 Senior Member

    Joined:
    Dec 11, 2017
    Messages:
    1,502
    Likes Received:
    907
    Trophy Points:
    222
    Gender:
    Male
    Occupation:
    Graphic Designer
    But is the Emu good, as well as the PS3 is?



    Sent from my G8141 using Tapatalk
    [​IMG]
     

    Attached Files:

    Last edited: Sep 17, 2019 at 6:49 AM
  11. 158
    89
    82
    jacobsson

    jacobsson Member

    Joined:
    Aug 11, 2017
    Messages:
    158
    Likes Received:
    89
    Trophy Points:
    82
    Gender:
    Male
    This would be insane! I you could, please make smaller updates in this thread of your findings, so exiting!
     
  12. 7,544
    5,632
    872
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    7,544
    Likes Received:
    5,632
    Trophy Points:
    872
    Home Page:
    So.. Here is what i got for now. Thread that is responsible for PS3-a-like configs is called x-lpnr. Lpnr mean Lopnor, is internal $ony name for non EE PS2 emulators for PS3 (excl. netemu afaik). To enable config reading by emu we need specify --lopnor-config=1 in cli file. Config expected file name is (TITLE_ID)_lopnor.cfgbin.

    Supported commands are (by netemu values):

    • 0x01 (not quite sure where is hooks list yet)
    • 0x09
    • 0x0A
    • 0x0B
    • 0x0F
    • 0x10
    • 0x26
    • 0x27
    What about other commands? I'm not sure yet, but it looks like they are ignored. But they still can be in config, no need to clean them. Config reading table have 77 switch cases, that suggest that supported commands are up to 0x4D.
    Sad news is missing 0x12 command, that is responsible for EE -- VU sync/talk. Looks like we need to hook, or fastforwardclock there.
    Honestly i counted for more juicy configs, on list there is nothing i can't port by myself to ps4 config manually. Excluding 0x01, that can be interesting.

    Still not 100% sure how to use this, also commands that seems to be supported can be ported without need of cfgbin to ps4 emu.

    CC @3141card @mysis , maybe it will be interesting for you.
     
    STLcardsWS, Jack15_5, Stayhye and 3 others like this.
  13. 7,544
    5,632
    872
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    7,544
    Likes Received:
    5,632
    Trophy Points:
    872
    Home Page:
    Small update, for now tester confirmed that we can enable those configs on retail emu. No need for any special patches, etc. This is log from emu:

    Code:
    <118>x-host  [   0.274sec] lopnor cfgbin file NOT found: ./patches/SLES-52755/SLES-52755_lopnor.cfgbin
    So now we just need to figure out format, and we are ready to go ;)
     
  14. 2
    0
    5
    Jack15_5

    Jack15_5 Forum Noob

    Joined:
    Jul 21, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
    @sabin1981 could you share the folder "rogue emu" and "emu jack"
     

Share This Page