Forum: Official Open PS2 Loader Forum - Discussion and information on the Official Open PS2 Loader.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Useful scripts for PS2SMB (Linux)
  

Results 1 to 6 of 6
  1. #1 Useful scripts for PS2SMB (Linux) 
    altimit's Avatar
    altimit is offline Playstation Enthusiast
    Join Date
    Jan 2004
    Location
    Hudson, NY, USA
    Posts
    187
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I just threw these together, they are designed for use on a linux server running samba.
    These are very hacky, and are not my best work, but they serve the purpose.

    These will not work on windows without some porting.
    Well, maybe under cygwin but UNTESTED!
    Tested only under Fedora 14.

    In the zip there is a tools folder, extract it to your PS2SMB so that the tools folder is in your PS2SMB like the CD and DVD folders.

    nameset:
    Use in CD or DVD folder to auto rename your ISOs to have the S###_###.## format required. Requires a program called "isoinfo" to look up the iso filesystem. If this returns nothing, all files are already renamed.

    Use in the CD or DVD directory.
    $ cd DVD
    $ ../tools/nameset

    would rename:
    Shining Force EXA.iso

    to:
    SLUS_215.67.Shining Force EXA.iso

    namecheck:
    Checks to make sure your name is 32 characters or less, and will tell you how much you need to shorten it by. If this returns nothing, everything is fine.
    This script is primitive and has no sanity checks, using a "." in your game name will break this one. (Example: SLUS_215.67.Shining.Force.EXA.iso would not process correctly and only see "Shining")

    Use in the CD or DVD directory.
    $ cd DVD
    $ ../tools/namecheck

    Might return something like:
    'Fullmetal Alchemist 2 - Curse of the Crimson Elixir' too long (by 19 chars)!

    date2press:
    This is just a simple script that uses isoinfo to get the time/date that the ISO was originally pressed by the publisher. There are no checks to verify if this data has been tampered with or not. It will set the creation/access/last modified date to the date it finds in the ISO header.

    Use in the CD or DVD directory.
    $ cd DVD
    $ ../tools/date2press

    This just lists each file as it processes them. View the result by following up with:

    $ ls -l

    getcover:
    Use AFTER nameset, reads S### id from filename and looks for corresponding png (or jpg) for cover art in OPL Gallery.

    Use in the CD or DVD directory.
    $ cd DVD
    $ ../tools/getcover

    Will report success or failure of each cover. If nothing appears, all files have a cover successfully downloaded.

    geticon:
    Use AFTER nameset, reads S### id from filename and looks for corresponding png for icon art in OPL Gallery.

    Use in the CD or DVD directory.
    $ cd DVD
    $ ../tools/geticon

    Will report success or failure of each cover. If nothing appears, all files have a icon successfully downloaded.
    Attached Files
    Last edited by altimit; 03-09-2011 at 07:05 AM.
    Reply With Quote  

  2. #2  
    JNABK's Avatar
    JNABK is offline Member
    Join Date
    Sep 2004
    Location
    <<< I'm right over there!
    Posts
    4,920
    Downloads
    3
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    2
    Likes Received
    16
    Quote Originally Posted by altimit View Post
    I also have getcover and geticon to automatically populate your ART folder but I would need JNABK's permission to release them as they scrape the server.
    Sure, its ok.
    PS2 Consoles:
    SCPH-30001 [V4] - unmodded (2)
    SCPH-30001-R [V5] DMS4 Pro SE
    SCPH-50001-N [V9] CC 2.0 SLE
    SCPH-79001 [V16] Silver - unmodded

    Reply With Quote  

  3. #3  
    altimit's Avatar
    altimit is offline Playstation Enthusiast
    Join Date
    Jan 2004
    Location
    Hudson, NY, USA
    Posts
    187
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Updated
    Reply With Quote  

  4. #4  
    hominem.te.esse is offline Babylon User
    Join Date
    Mar 2011
    Posts
    221
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    24
    Good.

    Just one remark, when OPL 0.9 goes out, don't forget to update "namecheck", as now game names for ISO (only) are limited to 64 chars.

    Also, there is a script floating around in the forum to allow mounting a real CD/DVD PS2 game disc into your PC computer DVD drive, and link into the PS2SMB share, so it can be accessible by OPL (useful if you don't want to rip some game, and want to try it with OPL).
    Reply With Quote  

  5. #5  
    altimit's Avatar
    altimit is offline Playstation Enthusiast
    Join Date
    Jan 2004
    Location
    Hudson, NY, USA
    Posts
    187
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by hominem.te.esse View Post
    Good.

    Just one remark, when OPL 0.9 goes out, don't forget to update "namecheck", as now game names for ISO (only) are limited to 64 chars.

    Also, there is a script floating around in the forum to allow mounting a real CD/DVD PS2 game disc into your PC computer DVD drive, and link into the PS2SMB share, so it can be accessible by OPL (useful if you don't want to rip some game, and want to try it with OPL).
    Interesting. I wonder if that could be a simple symlink /dev/dvd > thefile.iso or something more complicated. But I just threw these together to help me out and figured I'd share for anyone else.

    You mention support for 64 chars, does the latest source support this? Because I have set up the ps2sdk and all th at and am running the latest dev-revision.
    Reply With Quote  

  6. #6  
    hominem.te.esse is offline Babylon User
    Join Date
    Mar 2011
    Posts
    221
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    24
    It is "losetup" (to access the device in block/raw mode) + symbolik link.

    I could not find where it has been posted, if nobody have it I'll search it on my HDD.

    64 chars for ISO filename was functionnal since revision 518 (so yes, it is present in the current sources)
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •