1. rs1n

    OP rs1n GBAtemp Regular
    Member

    Joined:
    Jul 26, 2013
    Messages:
    244
    Country:
    United States
    Update is here: https://gbatemp.net/threads/hdlbatc...s2-hdd-batch-installer-using-hdl-dump.551420/
    TL; DR at the bottom.



    For those using Open PS2 Loader (or HDLoader) with a Network Adapter and internal HDD, installing games can be a hassle. There are several outdated methods for installing games, of which I will mention a few: WINHIIP, HDLGameInstaller, and HDLDUMP (and variations).
    • WINHIIP had been my go-to installer for a long time because of its speed. By connecting the PS2 HDD drive to a PC, one could batch install games very quickly (up to a limit of 255). However, it has a number of additional limitations: some games do not install properly, the partition naming scheme does not conform to specs outlined in the official SDK, it cannot handle 2TB drives, and as previously mentioned is limited to 255 games.
    • HDLGameInstaller is mainly a network installer, and is limited to about 7MB/s. All games, including CD games, must be in ISO format.
    • HDLDUMP has a number of flavors: HDLDUMB, HDL Dump Helper GUI, HDL HDD Batcher. HDLDUMP is a command-line toolkit for installing and managing games, and HDLDUMB is a GUI interface for HDLDUMP, but lacks batch installation. It is similar to HDLGameInstaller in terms of network installation, but seems to be slightly slower (~5MB/s). Batch installs can be done using HDL Dump Helper GUI or HDL HDD Batcher (the latter being a command-line interface). HDL Dump Helper GUI seems to be broken on more modern systems (claims of missing Java runtime environments despite the existence of one; can still be launched via command-line with admin rights). Still, who wants to have to install a Java runtime environment just for one app?! (I personally have no other use for Java.) Moreover, batch installs requires adding titles one at a time -- ugh! Both Helper GUI and Batcher, however, seem to use HDLDUMP 0.9.0, which seems to be extremely slow when using USB adapters (for me, anyway; ~7MB/s using a USB 3 SATA adapter). Moreover, Batcher was quite limited (had to install CD games separately, first; DVD9 installs would always break due to a bug in the batch code).
    HDLBATCH attempts to combine the advantages of the above while addressing some of their shortcomings. Using a more recent version of HDLDUMP, speeds through USB3 improved to around 40MB/s -- up from ~7MB/s, though this will certainly depend on the USB adapter. When connected to the PC directly, speeds ranged between 100MB/s and 150MB/s for DVD installs, and around 100MB/s for CD installs. Since many OPL users also enjoy having game art (boxart, backgrounds, screenshots), OPL Manager is a natural choice for managing art as well as games, especially for those who use OPL over network via SMB. However, more recent versions of OPL Manager (as of the writing of this post) have started requiring game file names with game ID prefixes. These prefixes are invisible to SMB users. But anyone wishing to transfer their games to the PS2 HDD will then have to rename all their game files; otherwise the file names get used by the installers above as the title of the game. So if "SCUS_973.28.Gran Turismo 4.iso" were transferred to the PS2 HDD, it would show up in OPL as "SCUS_973.28.Gran Turismo 4" -- OPL's alpha sorting of games becomes rather useless. Currently, OPL Manger does not provide an option to revert the file names; one has to make use of a batch file to rename all the files. (This naming scheme also makes it extremely tedious to maintain individual game files.) HDLBatch will strip this prefix -- but only if it matches the actual game ID inside the game file -- and used the stripped name for the game title. Games may be in CUE/BIN or ISO format.

    TL; DR:

    Instructions (old version removed; see link at top for updated version)
    1. Connect PS2 HDD (pre-formatted with uLaunch) to your PC. Fastest speeds obtained by connecting the drive directly to your motherboard. USB adapters will work, but speeds will depend on the quality of your adapter.
    2. Place all the games you wish to install into a single folder. CD games may be in CUE/BIN form, or even ISO (if you converted from CUE/BIN, for example, in order to make use of OPL Manager). DVD games will obviously need to be in ISO file format. Games whose filename is of the form SLUS_XXX.YY.GameTitle.ISO -- i.e. starts with game ID info from OPL Manager -- will have the game ID stripped so that only GameTitle is used.
    3. Unzip hdlbatch.7z into the games folder. Right-click on the HDLBATCH.bat file, and select "Run as Administrator", choose your target, and that's it.
    Limitations
    • The batch file does NOT check to see if the game being installed already exists on the PS2 HDD. This could potentially be an issue in instances where a game and its translation (FFXII International Zodiac Job System and its English translation) may collide because the game IDs would be the same, and long file names may not lead to unique partition names after the file name is truncated. Using shortened, unique file names should resolve this issue; e.g. "SLPM_667.50.FFXII IZJS (JPN).iso" and "SLPM_667.50.FFXII IZJS (USA).iso" or even place (JPN) and (USA) at the start of the game title in order to ensure that partition names are unique. (To my knowledge, only HDLGameInstaller has a check for existing games, but it will ask to overwrite the existing game without an option to do otherwise.)
     
    Last edited by rs1n, Jun 5, 2020
    DaFixer, Flame, cvskid and 5 others like this.
  2. Ryccardo

    Ryccardo watching Thames TV from London
    Member

    Joined:
    Feb 13, 2015
    Messages:
    7,366
    Country:
    Italy
    Great effort (though I won't be able to check it out anytime soon...)

    Just wondering, are you creating partitions with the standards-appropriate names? ("PP.SLES-12345.whatever" or "PP.SLES-12345.whatever1.whatever2" - the titleid matters for HDDOSD users!)
     
  3. rs1n

    OP rs1n GBAtemp Regular
    Member

    Joined:
    Jul 26, 2013
    Messages:
    244
    Country:
    United States
    The batch file calls HDLDUMP (0.9.2) which installs partitions using the PP.XXXX-nnnnn.MAGIC.APPLICATION scheme as defined in hdd_rule_3.0.2.pdf from the official Sony SDK. For example, "SCUS_972.28.Gran Turismo 4.iso" gets installed as PP.SCUS-97228.HDL.Gran Turismo (the "4" gets truncated).
     
  4. cvskid

    cvskid GBAtemp Addict
    Member

    Joined:
    Apr 13, 2014
    Messages:
    2,566
    Country:
    United States
    Is it possible to use a ethernet connection with this to transfer games from the pc to ps2 hdd?
     
  5. rs1n

    OP rs1n GBAtemp Regular
    Member

    Joined:
    Jul 26, 2013
    Messages:
    244
    Country:
    United States
    My original intent was just to make a batch file that installs directly to the HDD attached to the PC (since it is the fastest method). If you wish to do network installs, it is actually not that hard to do. Just change all instances of "hdd4:" (no quotes) in the batch file to the IP of your PS2. This will make the 4th target option a network install. For example, if your PS2 has IP 192.168.0.2, then change

    if errorlevel 4 set hdlhdd=hdd4:​

    to

    if errorlevel 4 set hdlhdd=192.168.0.2​

    I have not tested this, but I can tomorrow with a spare drive.

    EDIT: You'll also need to run a server on your PS2 (not sure if this needed to be written explicitly). Get hdl_svr_093.elf from here: http://www.ps2-home.com/forum/viewtopic.php?t=2307
     
    Last edited by rs1n, Oct 30, 2019
    zfreeman and cvskid like this.
  6. kublai

    kublai GBAtemp Fan
    Member

    Joined:
    May 29, 2008
    Messages:
    477
    Country:
    United States
    Do you still have to format your hdd with Winhiip?
     
  7. rs1n

    OP rs1n GBAtemp Regular
    Member

    Joined:
    Jul 26, 2013
    Messages:
    244
    Country:
    United States
    You must format with uLaunchELF
     
  8. kublai

    kublai GBAtemp Fan
    Member

    Joined:
    May 29, 2008
    Messages:
    477
    Country:
    United States
    I could not find the hddmanager to format the hdd, is that built into uLaunchELF or do you have to install another app?

    Edit: I found the hddmanager as it's in a folder called MISC
     
    Last edited by kublai, Dec 4, 2020
  9. MalcolmArt

    MalcolmArt Newbie
    Newcomer

    Joined:
    Dec 17, 2020
    Messages:
    2
    Country:
    United Kingdom
    Hi,
    I would like to say I love your youtube videos and was watching one of your videos on PS2 2Tb Internal HDD - HDL Dump GUI - make installing ISOs easy peasy.

    And I wanted to know it is possible to clone the PS2 Hard drive I have read up on reedit that it is possible but would have to save the image file to the windows hard drive.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - installer, HDLBATCH, adding