[release] ITG Ogg Patch

Anything concerning In The Groove and/or r21.

Moderators: Admins, Mods

[release] ITG Ogg Patch

Postby LordHighCaptain on Thu Jul 01, 2010 9:26 pm

http://code.google.com/p/itgoggpatch/downloads/list

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 planned for a future release).
  • 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: Select all
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.


Image

I hope you find this program helpful.
LordHighCaptain
0%
0%
 
Posts: 4
Joined: Sat Jun 20, 2009 10:34 pm

Re: [release] ITG Ogg Patch

Postby MdX MaxX on Thu Jul 01, 2010 9:31 pm

Aw, dang. Why didn't you release this 5 days ago?

Anyway, if I have some files to patch I'll check this out.
User avatar
MdX MaxX
40%
40%
 
Posts: 326
Joined: Sun Jan 24, 2010 9:52 pm
Location: Atlanta, GA

Re: [release] ITG Ogg Patch

Postby LordHighCaptain on Thu Jul 01, 2010 9:35 pm

I did, I just didn't bother posting it outside of stepmania.com until now.
LordHighCaptain
0%
0%
 
Posts: 4
Joined: Sat Jun 20, 2009 10:34 pm

Re: [release] ITG Ogg Patch

Postby Psychotik on Thu Jul 01, 2010 9:35 pm

This is very interesting. I don't need it, since I don't have to patch anything on the machine I play on, but this is very useful others, I assume.
sonicfan0 wrote:i look left at 1 car and manage to find 2 REALLY gorgeous brunettes goin to town (making out pulling their tops off and the whole bit.) I only managed to see them pull off their tops before i walked off and decided to Beast 3 13's back to back
User avatar
Psychotik
102%
102%
Mr. Green
Mr. Green
Site Admin
Site Admin
 
Posts: 5578
Joined: Fri Jun 06, 2008 12:50 am
Location: Montreal

Re: [release] ITG Ogg Patch

Postby Lexuname on Thu Jul 01, 2010 10:18 pm

I'm very thankful about this! =D
I really hated using the original patch on Vista
-drags a song to patch-
Vista: Would you like to proceed?
Me: -clicks yes-
Patch: -patches-
Me: -does it again with another song-
Lexuname
0%
0%
 
Posts: 5
Joined: Mon Jun 07, 2010 11:18 pm

Re: [release] ITG Ogg Patch

Postby Kyzentun on Thu Jul 01, 2010 10:58 pm

Sweet, I'll check this out and probably use it later.
mute wrote:contender for saddest post ever
Psychotik wrote:Every time I hear the vocalist, I want to punch a baby in the face.
Jayce wrote:TAKE THAT KYZENTUN
User avatar
Kyzentun
100%
100%
 
Posts: 2597
Joined: Thu Dec 25, 2008 1:53 pm
Location: SL,UT (Salt Lake, Utah)

Re: [release] ITG Ogg Patch

Postby Kytsune on Thu Jul 01, 2010 11:36 pm

Un-patching things is going to be ungodly useful for me while adding songs to our machine. Thanks for this, I'm gonna hang onto it.
User avatar
Kytsune
40%
40%
 
Posts: 207
Joined: Mon Mar 09, 2009 1:53 am

Re: [release] ITG Ogg Patch

Postby NIQ9 on Fri Jul 02, 2010 1:29 am

LordHighCaptain wrote:By default, only songs longer than 2:00 are patched when patching to 1:45

This is the only problem I see. Back before the local ITG had OITG on it, sometimes it wouldn't let me play unpatched songs at 118 or 119 seconds. (r21)
Image
Valex wrote:having opinions on things is bad because dance games
User avatar
NIQ9
102%
102%
Former Staff
Former Staff
Moderator
Moderator
 
Posts: 5329
Joined: Sun Mar 18, 2007 11:53 am
Location: MI

Re: [release] ITG Ogg Patch

Postby PUMA.Hamtaro on Fri Jul 02, 2010 3:05 am

Oh shit, nice dude. Can you change it so one could change the patch time to whatever they wanted also? Some machines have songs that just make the cut off for one round (3:30) and would rather count as two rounds.
Image
ImageImage
mute wrote:I regret buying my MacBook Pro. :oops: :cry:

Hah! A confession!
NEMO wrote:I like the uniboob girls.

<3 NEMO
User avatar
PUMA.Hamtaro
101%
101%
 
Posts: 3730
Joined: Sun Aug 05, 2007 3:32 pm

Re: [release] ITG Ogg Patch

Postby Kommisar on Fri Jul 02, 2010 7:46 am

This is pretty cool. Good also if i want to add a patched song to my ipod and not have it cut halfway lmao
User avatar
Kommisar
60%
60%
 
Posts: 763
Joined: Fri Oct 05, 2007 3:45 pm
Location: Monkeytown New-Brunswick, Canada

Re: [release] ITG Ogg Patch

Postby LordHighCaptain on Fri Jul 02, 2010 3:28 pm

NIQ9 wrote:
LordHighCaptain wrote:By default, only songs longer than 2:00 are patched when patching to 1:45

This is the only problem I see. Back before the local ITG had OITG on it, sometimes it wouldn't let me play unpatched songs at 118 or 119 seconds. (r21)

You can have it patch all files regardless of length by running it on the command line as

ITGOggPatch.exe --patchall [files or directories to patch]

Or open Notepad and paste

Code: Select all
@echo off
cd /d %~dp0
ITGOggPatch.exe --patchall %*


and save it as ITGOggPatchAll.bat - then you can drag files and folders onto it.

I did not know about the cutoff actually being slightly less than 2 minutes. I can change that for the next version.

Can you change it so one could change the patch time to whatever they wanted also? Some machines have songs that just make the cut off for one round (3:30) and would rather count as two rounds.

Yeah, I can do that. The code for changing to any time is already there, there just isn't any way to access it now.
LordHighCaptain
0%
0%
 
Posts: 4
Joined: Sat Jun 20, 2009 10:34 pm

Re: [release] ITG Ogg Patch

Postby Phaiyte on Fri Jul 02, 2010 5:16 pm

I think I just felt a lump in my throat from how excited I got from seeing this lol.
Sweet work, man.
Image
User avatar
Phaiyte
80%
80%
 
Posts: 1420
Joined: Sat Mar 20, 2010 1:21 pm
Location: Elf Tower, NM

Re: [release] ITG Ogg Patch

Postby ejg930 on Mon Jul 05, 2010 12:08 am

That is beyond sexy. Looking forward to Mac support.
ejg930
10%
10%
 
Posts: 14
Joined: Fri Jun 25, 2010 4:05 pm
Location: Ohio

Re: [release] ITG Ogg Patch

Postby MasterWok on Mon Jul 05, 2010 11:48 am

Yessssss

MAC SUPPORT WOULD BE EPIC.
Jayce wrote:MWOK joined a bible camp somewhere in Alaska and Mandodo spends too much time at the Gym.
User avatar
MasterWok
80%
80%
 
Posts: 1232
Joined: Thu Nov 08, 2007 2:21 pm
Location: Alaskan Bible Camp

Re: [release] ITG Ogg Patch

Postby Slayer³ on Tue Jul 06, 2010 2:57 pm

Awesome, great work!
Slayer³
40%
40%
 
Posts: 380
Joined: Wed Apr 07, 2010 11:20 am

Next

Return to ITG/r21 Discussion

Who is online

Users browsing this forum: No registered users and 2 guests