[WIP] PSP injection

Discussion in 'PS4 - Hacking & Homebrew' started by KiiWii, May 6, 2018.

  1. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    BASIC INJECTION TUTORIAL:

    You will need:

    orbis-pub-chk (cannot be shared here)
    orbis-pub-gen (cannot be shared here)
    parappa the rappa/patapon/loco roco 2 remasters fpkg (cannot be shared here)
    A compatible PSP iso (cannot be shared here: also currently very few work, examples: lumines, loco roco games, patapon games (stuck at "sign" screen)) or build your own homebrew iso (See Optional)
    HXD
    notepad
    gimp2

    Start here:

    Open the FPKG with pub-chk using all 0's as the key and extract ALL the content.

    Copy all EXCEPT the playgo/psreserved/keystone files from the Sc0 folder

    Locate Image0>sce_sys folder and paste the files in.
    (should look like this: )
    Replacing the game:

    Locate Image0 > data folder and delete the USER_L0.IMG

    (Trivia: L0 refers to layer 0 and L1 refers to layer 1 for PSP umd creation, L0&L1 can be = 900mb max, combined 1.8gb max)

    Copy your PSP ISO to this location and to make things easier name it game.iso

    Simple!

    OPTIONAL Making your own homebrew ISO:

    You need to locate: UMDGEN 4.0 & EBOOT2ISO 1.1 (cannot be shared here)

    Open EBOOT2ISO, and select your homebrew eboot.pbp, put the output path as the same folder you are currently in, and click CONVERT

    Place any files that came with the homebrew eboot.pbp into PSP_GAME/Sysdir. (Rom folders goe here too FYI)

    Open UMDGEN, drag the PSP_GAME folder into UMDGen, click the UMD PROPERTIES tab and click GENERATE.

    Click Save and select UNCOMPRESSED ISO.

    Rename to game.iso and place in Image0 > data folder to test.

    (Massive thanks to @ploggy for the mini tut!)


    Editing the configuration:

    Locate Image0 > config-emu-ps4.txt (make a back up somewhere else first just in case) open it in notepad:

    Edit the "Game Image" part to this:
    Now go through config-emu-ps4.txt and ";" comment out EVERY uncommented command (you can actually leave SSAA4x if you want), for example:
    Enabled:
    Disabled (commented out):
    Save config-emu-ps4.txt and exit.

    Editing icons and SFO:

    To edit the SFO use HXD (make a back up somewhere else first just in case) you can edit (in three places) the line "PaRappa The Rapperâ„¢ Remastered" to almost any string you like, careful to maintain the length, for example mine is now set to: "PSPHD INJECTIONZ TEST REMASTERED"

    You can also overwrite the CUSA ID/UCUS ID to individualize the game and allow more than one to be installed. For example: UP9000-CUSA05289_00-UCUS987020000001 is parappa original > EP9000-UCUS00304_00-UCUS003040000100 = Custom ID using Loco Roco's actual UCUS ID. (thanks @shopeg over at hax)

    Dont forget the CUSA05289 line at the very bottom of the SFO too.

    Save Param.SFO and exit.

    Now go to Image0 > sce_sys and edit nptitle.dat with HXD to match the CUSA ID you used in the SFO.

    To edit the icons and bg PNG's I suggest start new images in GIMP2 (or your preferred image editor):

    512x512 24bit PNG for Icon0.png
    1920x1080 24bit PNG for pic0.png and pic1.png
    228x128 24bit PNG for save_data.png

    (if you have issues with PNG being 8bit or 32 bit, simply save png as jpg (which is 24 bit by default), then re-save that jpg as png, and you now have 24bit png)

    Stripping out unneeded files:

    You can remove pretty much anything that relates to texture/movie/sample swaps, languages, etc leaving a bare bones set of directories ready to customize your own in future. For this tutorial I have left pretty much everything up to you to make it simpler. Feel free to experiment with what files are and aren't needed (for example .dds files arent needed ;))

    Rebuilding the FPKG:

    Open pub-gen, double click image0 in right pane, drag contents of your Image0 folder into that directory,
    Click chunk panel on left, right click image0 on left and tick switch chunks, press C to close that pane.
    Click command > project settings>package: give the pkg a name in the format "XXYY-XXXXYYYYY_00-ZZZZZZZZZZZZZZZZ" = use the ID you gave it while editing the SFO for easy way to remember it.
    Give the FPKG a passcode (32 0's is HIGHLY recommended)
    Click ok, hit build (far right) then set directory for output PKG, once selected then hit tab and hit enter to start the FPKG build.

    Once done save the GP4 file (you can simply swap the iso over (cannot add or remove/rename files) and use this GP4 to quickly skip almost all steps in the rebuilding FPKG section: next time associate the GP4 file with gen-pub (in windows or your os), double click the GP4 and hit build.

    You can rename the PKG anything you like, I name mine as <content vX>.pkg for example: Loco Roco v3.pkg (version denotes changes I have made in case of regressions)

    Copy the FPKG to your exfat USB stick, and install to PS4 through [SETTINGS] > [DEBUG SETTINGS] > [GAME] > [PKG INSTALLER].

    Enjoy and report back any specific PSP game success stories! (psdevwiki compatibility list coming soon)

    COMPATIBLE GAMES:
    (Its a short list)

    Bust-a-Move Deluxe = works fine.

    Patapon = cant get past "sign" screen.

    Patapon 2 = cant get past "sign" screen.

    Patapon 3 = cant get past "sign" screen.

    Loco Roco = works fine ; comment out all options in config.

    Loco Roco 2 = works fine ; comment out all options in config.

    Lumines = Loads into game but gfx missing (unplayable)

    More to come ;)

    Original post

    Warning: Spoilers inside!
    Please feel free to contribute!
     
    Last edited by KiiWii, May 18, 2018
  2. joemoe123g

    joemoe123g Member

    Newcomer
    1
    Apr 7, 2018
    Australia
    did you contact flatz? He might have the necessary knowledge for this... Also I was wondering the ps4 version of uncharted collection... are we also talking about emulation there? Maybe a ps3 emulator ??
     
  3. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    I have contacted a couple of devs, wether they get back to me is another matter....

    I doubt theres a PS3 emulator, more likely assets were ported to an upgraded engine for PS4.
     
  4. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    Just had a thought:

    ; Game Image
    --image="data/USER_L0.IMG"

    Change to:

    ; Game Image
    --image="data/WHATEVER.ISO" .. could it be that simple....

    Obv need to swap prx's with ones in ps2 classics template, edit sfo, and comment out all texture swap in cfg.
     
    Last edited by KiiWii, May 7, 2018
  5. Natboy

    Natboy Member

    Newcomer
    1
    Nov 3, 2015
    United States
    That'd be pretty amazing if that's all it took. Good luck!
     
  6. reminon

    reminon GBAtemp Fan

    Member
    3
    Feb 7, 2016
    United States
    Would it not be better to convert the iso to img, so its atleast the file format it's looking for? I feel like that would cut one variable out of why it wouldn't work. God I hope it works.

    Edit: if it doesn't require a compressed .img then you could just rename the .iso to .img.
     
    Last edited by reminon, May 8, 2018
  7. fate6

    fate6 Haha, I killed a Pumpkin!

    Member
    2
    Aug 2, 2014
    United States
    [fate6@Canterlot ~]$
    USER_L0.IMG is created from the UMDGEN included in the PSP SDK, It contains all the assets and such for a game.
    6.60 SDK is public so getting this tool is possible.
    Good luck OP ;D

    Im bad at explaining things :(
     
    Last edited by fate6, May 8, 2018
    KiiWii likes this.
  8. joemoe123g

    joemoe123g Member

    Newcomer
    1
    Apr 7, 2018
    Australia
    did you create a test mate?
     
  9. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    I found this info just now in a method to run beta/preview titles on PSP HERE:

    "Step 3: DO THIS ONLY IF YOU DID NOT DO STEP2
    Rename USER_L0.IMG to USER_L0.ISO"

    @joemoe123g I am just about to fire it up.

    EDIT: This just popped up on twitter: https://pastebin.com/CXRpVLdd

    @darkelement seems to be on this mission too, lets hope someone succeeds for the scene :)
     
    Last edited by KiiWii, May 8, 2018
  10. joemoe123g

    joemoe123g Member

    Newcomer
    1
    Apr 7, 2018
    Australia
    omg psp emulator for ps4 ?!?!?!?!? Shiit its getting real man
     
  11. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    Haha, and I'm always 1 step behind as RL takes over...
     
  12. joemoe123g

    joemoe123g Member

    Newcomer
    1
    Apr 7, 2018
    Australia
    but who discovered this and where did you find the pastebin ?
     
  13. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    (the paste.bin is the cfg file for the dump of parappa remaster which was uploaded Saturday morning.)

    AFAIK: Saturday afternoon I spotted the parappa remaster dump on a certain site and mentioned that this might be a PSX emulator, dug deeper and Strann0 and jwooh found its a Allegrex PSP emulator. jwooh and I have both been testing various things to get images swapped and built, but neither have managed to get past black screen.... its probably something obvious.

    From my quick tests this morning:
    Its easy to swap the USER_L0.IMG, and comment out cfg for texture/sample swaps (the img = the iso)
    Its even easier to make custom icons and SFO with custom ID's
    It looks like we need a modified libSceNpToolkit2.prx to build properly (?)
    I'm not sure how to build/if Sc0 folder is needed for PKG

    I'm highly convinced its do able, but unfortunately I dont think I am the person to do this right now, I simply have too much going on IRL to spend enough time on this :(

    DarkElement‏ @zordon605 seems to be on the case though :)
     
    Last edited by KiiWii, May 8, 2018
  14. depaul

    depaul GBAtemp Fan

    Member
    3
    May 21, 2014
    France
    Injecting PSP games is a great idea. Hopefully it wouldn't be ultra hard because sony always complicates everything with code signature and encryption.
     
    Last edited by depaul, May 8, 2018
    KiiWii likes this.
  15. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    Injecting works, games boot ;)
     
    hippy dave and depaul like this.
  16. reminon

    reminon GBAtemp Fan

    Member
    3
    Feb 7, 2016
    United States
    care to share the template? lol ;)
     
  17. depaul

    depaul GBAtemp Fan

    Member
    3
    May 21, 2014
    France
    Great! Are they playable?
     
  18. Stayhye

    Stayhye Newbie

    Newcomer
    1
    May 8, 2018
    United States
    What did you guys do to make it work? I tried replacing IMG...did not work. Would you share the method?
     
  19. KiiWii
    OP

    KiiWii GBAtemp Guru

    Member
    13
    Nov 17, 2008
    United Kingdom
    Literally swap the img out and remove cfg. Trust me there are people working all out on this as we speak. Very soon we will have injects :)

    My personal template is very messy and didnt work well, others have got further. We are sharing all info to get this done :)
     
    ShonenJump and 8BitWonder like this.
  20. joemoe123g

    joemoe123g Member

    Newcomer
    1
    Apr 7, 2018
    Australia
    Kiiwii any psx games released for ps4 remastered? Would be cool to have psx games in HD on ps4 :O

    — Posts automatically merged - Please don't double post! —

    also any pics ?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice