PS3 PKGi PS3 beta release

Discussion in 'Homebrew Development' started by bucanero, Dec 3, 2019.

  1. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    Actually you're mixing stuff; the ~ 7.5 MB/s that you saw for background download is not the actual download speed: the app is only creating an empty .pkg file so the Download Manager can actually download the file later. (the actual download starts when you reboot)

    if you have done any background download with the original PS3 apps, you probably remember that when you click the "background download" button, the PS3 starts to save the complete file on the HDD, and then continues from the Download manager. (that's the same step you saw on PKGi)
     
    Last edited: Dec 14, 2019
  2. 1
    0
    30
    Kitasan0529

    Kitasan0529 Member

    Joined:
    Jan 7, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    30
    Location:
    フレンチトースター城下町
    Home Page:
    how can i fix ”cannot save .rap” error?
     
  3. 241
    42
    57
    arcadekidflo

    arcadekidflo Member

    Joined:
    Feb 18, 2015
    Messages:
    241
    Likes Received:
    42
    Trophy Points:
    57
    Is it possible to auto-install the pkg after the background download ? Right now it goes into Package Manager , needs another X to begin installing
     
  4. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    you probably don't have a /dev_hdd0/exdata folder.
    Quick solution: Just download the latest version (1.0.5) , it's fixed there. If there's no folder, the app will create one for you.
     
  5. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    that's probably another flag in the internal d0.pdb file, but I don't know which one ... we don't have all the information about those files and flags, but we might find more information in the future. It's a matter of time, trial, error and reversing info from other downloads.
     
    sandungas likes this.
  6. 7,664
    5,901
    872
    kozarovv

    kozarovv Developer

    Joined:
    Nov 8, 2014
    Messages:
    7,664
    Likes Received:
    5,901
    Trophy Points:
    872
    Home Page:
    Param seems to be be 0 or anything, but i can't figure out offset in pdb file. I looked at notification handling, there are 2 types of that for game download while downloading finish. msg_download_complete, and msg_downloaded_install_game_pls. First one is used if param is not 0.

    Not sure that helps anyhow, maybe tracking those names in rco will give some info. When you know which msg is used, then you at least know that search 0 or not in pdb. I don't know is helpful anyhow, tasks are handled by esse files in firmware, someone with ppc skills should reverse that without some bigger issues. .


    Code:
    0x38C4                 lwz       r9, 0(r28)
    0x38C8                 lwz       r0, 0xB8(r9)
    0x38CC                 extrdi    r9, r0, 4,36    # r9 = music, video, game dl type
    0x38D0                 cmpwi     cr7, r9, 1      # 1
    0x38D4                 beq       cr7, loc_3910   # msg_download_complete //music
    0x38D8                 cmplwi    cr7, r9, 1      # logical imm (1)
    0x38DC                 blt       cr7, loc_38F4   # msg_download_complete //video
    0x38E0                 cmpwi     cr7, r9, 2      # 2
    0x38E4                 beq       cr7, loc_392C   # msg_downloaded_install_video_pls
    0x38E8                 cmpwi     cr7, r9, 3      # 3
    0x38EC                 bne       cr7, loc_3B7C   # end function
    0x38F0                 b         loc_396C        # msg_downloaded_install_game_pls
     # ---------------------------------------------------------------------------
    0x396C
    0x396C loc_396C:                               # XREF: 0x3700+1F0↑j
    0x396C                 rlwinm    r0, r0, 0,10,10
    0x3970                 lis       r11, [email protected]
    0x3974                 cmpwi     cr7, r0, 0
    0x3978                 bne       cr7, loc_3994   # msg_download_complete //game
    0x397C                 lis       r9, [email protected]
    0x3980                 addi      r0, r11, [email protected] # "msg_game"
    0x3984                 addi      r9, r9, [email protected] # "msg_downloaded_install_game_pls"
    0x3988                 mr        r27, r0
    0x398C                 mr        r3, r9
    0x3990                 b         loc_39A8
     # ---------------------------------------------------------------------------
    0x3994
    0x3994 loc_3994:                               # XREF: 0x3700+278↑j
    0x3994                 lis       r9, [email protected]
    0x3998                 addi      r0, r11, [email protected] # "msg_game"
    0x399C                 addi      r9, r9, [email protected] # "msg_download_complete"
    0x39A0                 mr        r27, r0
    0x39A4                 mr        r3, r9
     
    bucanero and sandungas like this.
  7. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    thanks for sharing @kozarovv ! I had no idea about this info, I think it's really useful to understand the .pdb files better

    my assembler knowledge is quite rusty and I'm mostly guessing, but perhaps the code is checking for flag 0xB8 ?
    if it's equal 1, then it's music
    if equal 2, then video -> call "msg_downloaded_install_video_pls"
    if equal 3, then game -> call "msg_downloaded_install_game_pls"
    for any other value, go to end

    (in a sense, it would match the flag 0x6B values for the task subtype)

    I'll try to craft a new file with this flag and see what happens! :)
     
  8. 177
    267
    97
    zecoxao

    zecoxao Developer

    Joined:
    Dec 9, 2014
    Messages:
    177
    Likes Received:
    267
    Trophy Points:
    97
    @bucanero can confirm that the official TSVs are now supported, using db_format.txt, in version 1.05. Congratulations on the work on this app!
     
    bucanero likes this.
  9. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    thanks, I'm glad to know the generic dbformat is working properly :)

    btw, if you add a line to the config.txt file, you can define a remote URL for your database and refresh it whenever you want from the App.
    Config line should be:
    Code:
    url http://www.myweb.com/dir/mylist.file
     
  10. 159
    48
    57
    Omage

    Omage Member

    Joined:
    Feb 23, 2015
    Messages:
    159
    Likes Received:
    48
    Trophy Points:
    57
    build failed~ how to fix
    commands.c:(.opd+0xa8): multiple definition of `internal_commandBufferPutCmd8'
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(tiny3d.o):tiny3d.c:(.opd
    +0x168): first defined here
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(commands.o): In function
    `.internal_commandBufferPutCmd8':
    commands.c:(.text.internal_commandBufferPutCmd8+0x0): multiple definition of `.i
    nternal_commandBufferPutCmd8'
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(tiny3d.o):tiny3d.c:(.tex
    t.internal_commandBufferPutCmd8+0x0): first defined here
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(commands.o): In function
    `.rsxtiny_MakeCmdSpace':
    commands.c:(.text.rsxtiny_MakeCmdSpace+0x50): undefined reference to `.tiny_rsxC
    ontextCallback'
    commands.c:(.text.rsxtiny_MakeCmdSpace+0xe4): undefined reference to `.tiny_rsxC
    ontextCallback'
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(commands.o): In function
    `.rsxtiny_SetReferenceCommand':
    commands.c:(.text.rsxtiny_SetReferenceCommand+0x58): undefined reference to `.ti
    ny_rsxContextCallback'
    commands.c:(.text.rsxtiny_SetReferenceCommand+0x108): undefined reference to `.t
    iny_rsxContextCallback'
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(commands.o): In function
    `.rsxtiny_SetWriteBackendLabel':
    commands.c:(.text.rsxtiny_SetWriteBackendLabel+0x60): undefined reference to `.t
    iny_rsxContextCallback'
    /t/msys64/usr/local/ps3dev/portlibs/ppu/lib/libtiny3d.a(commands.o):commands.c:(
    .text.rsxtiny_SetWriteBackendLabel+0x148): more undefined references to `.tiny_r
    sxContextCallback' follow
    collect2: error: ld returned 1 exit status
     
  11. 177
    267
    97
    zecoxao

    zecoxao Developer

    Joined:
    Dec 9, 2014
    Messages:
    177
    Likes Received:
    267
    Trophy Points:
    97
    i remember how i "fixed" that lol. i installed the library, then removed the .a file, kept the headers, and THEN i added the source files from the library to the main code. i know, shitty coding, but that's the only thing that made the code work on windows.
     
  12. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    Omage likes this.
  13. 159
    48
    57
    Omage

    Omage Member

    Joined:
    Feb 23, 2015
    Messages:
    159
    Likes Received:
    48
    Trophy Points:
    57
    copy libtiny3d.a to /lib
    build success

    thanks.

    why make libtiny3d src get issue?
     
    Last edited: Dec 16, 2019
    bucanero likes this.
  14. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
  15. 177
    267
    97
    zecoxao

    zecoxao Developer

    Joined:
    Dec 9, 2014
    Messages:
    177
    Likes Received:
    267
    Trophy Points:
    97
    another thing that bothers me with pkgi is the lack of a "clean exit" button besides the ps button (this would prove useful for dualshock 4 users)
    what do you think @bucanero ?
    also, what about an option of downloading the latest release pkg when it's available? i noticed that 1.0.0 does tell you that the latest 1.0.5 is available, however, without an option of downloading from the console...
     
    DeViL303 and bucanero like this.
  16. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    actually the app has an "exit" button, but I forgot to mention it in the documentation :biggrin2: it should work if you press (START).

    about the auto-update, yes, I was thinking about adding that to the next release. It should be easily added as a background task queue, so next time you boot your PS3 you'll have the latest version ready to be installed. :D
     
    DeViL303 and zecoxao like this.
  17. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    the upcoming version is looking nice :cool2:

    screenshot_2019_12_17_02_38_27.png
     
  18. 291
    497
    97
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    291
    Likes Received:
    497
    Trophy Points:
    97
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    I've just released PKGi PS3 v1.0.8

    With improved UI, an additional "details" screen, improved update version check, and faster .pkg file creation in background mode using async IO.
     
    Last edited: Dec 19, 2019
    DeViL303 likes this.
  19. 3
    1
    30
    Dukenugem

    Dukenugem Member

    Joined:
    Oct 22, 2018
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    30
    Logged in to say thank you!
     
    bucanero likes this.
  20. 15
    12
    7
    jcolell

    jcolell Forum Noob

    Joined:
    May 14, 2019
    Messages:
    15
    Likes Received:
    12
    Trophy Points:
    7
    THANKS FOR THIS!
     
    bucanero likes this.

Share This Page