[release] ITG Ogg Patch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheLaughingSpaz
    FFR Player
    • Apr 2006
    • 7

    #1

    [release] ITG Ogg Patch

    I posted this several months ago on a few other forums, when FFR was down.

    tl;dr: Open-source program that does same thing as ogglengthpatch.exe but can reverse the process as well and can patch multiple files at once.



    Everyone that plays ITG knows about OggLengthPatch.exe, the program used to make .ogg files appear to be 1:45 long. A lot of song packs are distributed with the songs already patched, which annoys me because I only play at home and I prefer seeing correct song lengths and groove radar values. Since the original OggLengthPatch is not open-source and no one seems to know who made it, I set about writing a program to unpatch songs to their true length. Once I had unpatching working, I figured I might as well make it able to go both ways.

    ITG Ogg Patch improves on the original OggLengthPatch in the following ways:
    • Patch multiple songs at once or even entire directory trees. You can easily patch your entire Stepmania Songs/ folder with just 1 run of the program. With the original, you had to patch one song at a time.
    • In addition to patching .ogg files to 1:45, you can also unpatch patched songs back to their true length - useful for home players who play songs that are distributed already patched.
    • Available for both Windows and Linux (Mac support will be added if there is enough interest).
    • Source code is available under the Apache 2.0 license.


    Windows users can patch .ogg files to 1:45 by simply dragging a file or directory onto ITGOggPatch.exe (or hold ctrl to select multiple files or directories). Or you can double-click ITGOggPatch.exe to patch the directory that it is in. To unpatch .ogg files that were patched to be 1:45, drag files or directories onto ITGOggUnpatch.bat.

    You can also use it on the command-line.
    Code:
    Usage: ITGOggPatch.exe [OPTIONS] [Paths to the files or directories containing .ogg files]
    Allowed options:
      --help                Show program usage information.
      --version             Show version number.
      --unpatch             Reverse the length patching process by setting the
                            length of .ogg files to their true length. Files that
                            do not have a reported length of 1:45 are skipped. The
                            unpatching process is significantly slower than the
                            patching process and depends on how long the song is.
      --patchall            Patches all .ogg files found. If patching, this means
                            even files shorter than 2:00 will be patched. If
                            unpatching, even files that do not have a reported
                            length of 1:45 will be processed.
      --not-interactive     Suppresses the requests for user input when starting
                            and finishing.
    Linux users must use the command-line or copy the program to the directory they want to patch and double-click it.


    By default, only songs longer than 2:00 are patched when patching to 1:45 and only songs that are 1:45 are unpatched when unpatching to the song's true length.

  • ddrxero64
    FFR Player
    • Nov 2008
    • 790

    #2
    Re: [release] ITG Ogg Patch

    Dossar and I found this program about 4 days ago while we were at Anime Boston (very coincidental actually). We were trying to get the ITG Machine to work and we tried this program. It works very well, and the only reason the ITG Machine was crap was because it was r1 and the hardware was, well crap.

    This program was giving us some sort of trouble though. It wouldn't start up, even when it was in the proper folder (same as folder with song, same as folder the song and sm are placed in, etc.)

    I would highly recommend a video tutorial with this program. It would benefit the exposure of it greatly.

    Comment

    • TC_Halogen
      Rhythm game specialist.
      FFR Simfile Author
      FFR Music Producer
      • Feb 2008
      • 19376

      #3
      Re: [release] ITG Ogg Patch

      I've been looking for this because I had it once before. Thank you SO much for reposting it!

      Comment

      • Oni-Paranoia
        No fucks
        • Dec 2006
        • 2440

        #4
        Re: [release] ITG Ogg Patch

        Originally posted by ddrxero64
        the ITG Machine was crap was because it was r1
        lmao really now

        On topic, this is useful. The un-patching process is more useful for me. Songs cut off in edit mode if you start them past 105 seconds on a patched song and modding songs becomes a bitch.

        Comment

        • ddrxero64
          FFR Player
          • Nov 2008
          • 790

          #5
          Re: [release] ITG Ogg Patch

          Originally posted by Oni-Paranoia
          lmao really now
          I don't get it. So I'll just say this-

          That's what I heard :cheesy smile:

          <insert excuse for not knowing crap about ITG machines>

          Edit: But I did get some help from someone who knows trying to get songs on there. Even ask Sigma, that ITG machine was so sad. It was like the 90 year old grandfather that tries but isn't useful for anything.

          Comment

          • TheLaughingSpaz
            FFR Player
            • Apr 2006
            • 7

            #6
            Re: [release] ITG Ogg Patch

            Originally posted by ddrxero64
            Dossar and I found this program about 4 days ago while we were at Anime Boston (very coincidental actually). We were trying to get the ITG Machine to work and we tried this program. It works very well, and the only reason the ITG Machine was crap was because it was r1 and the hardware was, well crap.

            This program was giving us some sort of trouble though. It wouldn't start up, even when it was in the proper folder (same as folder with song, same as folder the song and sm are placed in, etc.)

            I would highly recommend a video tutorial with this program. It would benefit the exposure of it greatly.
            What operating system were you using it on? What was the error message?

            I am somewhat confused by your statement that it "works very well" and that it "wouldn't start up".

            Comment

            • ddrxero64
              FFR Player
              • Nov 2008
              • 790

              #7
              Re: [release] ITG Ogg Patch

              Originally posted by TheLaughingSpaz
              What operating system were you using it on? What was the error message?

              I am somewhat confused by your statement that it "works very well" and that it "wouldn't start up".
              Well the program ran fine, no obvious signs of error or error windows is what I meant. The program is legit, we just couldn't get it to start. Dossar tried doing some things through command prompt. It responds, but it won't actually start up the window.

              It was Dossar's computer, I believe it was XP. I have 7, but I've yet to try it on mine.

              Like I said, there has to be something simple I'm doing wrong. A video tutorial would benefit this program nicely, because it looks easy to explain. But yes, let me know if you could tell if there was something wrong.

              Comment

              • TC_Halogen
                Rhythm game specialist.
                FFR Simfile Author
                FFR Music Producer
                • Feb 2008
                • 19376

                #8
                Re: [release] ITG Ogg Patch

                I got it working fairly easily.

                Just make sure the .exe is in the same directory as where all your files are. Refer to my image:


                Then, simply click the .exe and it will detect all of the folders.

                Comment

                • ddrxero64
                  FFR Player
                  • Nov 2008
                  • 790

                  #9
                  Re: [release] ITG Ogg Patch

                  Originally posted by TC_Halogen
                  I got it working fairly easily.

                  Just make sure the .exe is in the same directory as where all your files are. Refer to my image:

                  <pic>

                  Then, simply click the .exe and it will detect all of the folders.
                  Yup, I did that. I actually think it was Dossar's computer. It acts weird on everything, just ask him lol. It was probably his old laptop, but thanks.

                  Comment

                  • Phlegmatism
                    FFR Player
                    • Apr 2011
                    • 128

                    #10
                    Re: [release] ITG Ogg Patch

                    Cool thanks. Gonna keep this thread favorited for the next time I happen to get into ITG. Batch is gonna save some time.

                    Comment

                    Working...