View previous topic :: View next topic |
Author |
Message |
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Wed Apr 04, 2012 3:41 pm Post subject: |
|
|
raynebc wrote: | It's not that bad, I just search for the QB magic number and use the offset of the QB file header, just as you mention. I don't really want to go to all the effort of parsing everything formally, I just hunt and peck for what I'm interested in (ie. instrument tracks, star power sections, etc). | Well, out of the hotelcalifornia example, to get to the qs file, you could read in PAK headers that start with CD 45 25 36, those are always QS files, the next WORD is the offset (from the start of this header, not start of PAK file) to the start of the file, the next WORD is the length...and you could just read in all the QS files together, they are hash map text files...thats probably the closest thing you can do to accurately get this to work for all different types of PAK files _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Wed Apr 04, 2012 5:17 pm Post subject: |
|
|
That hex sequence occurs 3 times in the PAK file, does that mean there are 3 non contiguous sections with lyric text? |
|
Back to top |
|
|
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Wed Apr 04, 2012 5:53 pm Post subject: |
|
|
raynebc wrote: | That hex sequence occurs 3 times in the PAK file, does that mean there are 3 non contiguous sections with lyric text? |
Yes, one is lyric text, one is section names (Solo, Verse, Intro, etc) and the other one is something else, looks like the hotel california example shows a blank 3rd file...all three files will maintain the same file structure as CD 45 25 36 indicates the file type of .qs _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Wed Apr 04, 2012 9:21 pm Post subject: |
|
|
codemann8 wrote: | And the first record in the lyrics section is (at 0x248FC):
Code: | 00 00 01 00
00 02 49 04 --offset to data (next byte)
00 01 01 00
90 6B 67 BA --some checksum (looks same for every lyric)
00 00 D8 A4 --start of lyric (ms)
00 02 49 14 --offset to the next data (next byte)
00 01 1C 00
C4 74 58 38 --some checksum (looks same for every lyric)
D8 C7 02 4A --checksum of lyric text (qs file)
00 00 00 00 |
|
There's something else I must be doing wrong. I'd been trying to parse the lyric data from the "hotelcalifornia_lyrics" section. The checksum of this is 0x10C14E19 and it appears at QB offset 0x24254. Am I parsing that section incorrectly or are you referring to a different section above? |
|
Back to top |
|
|
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Wed Apr 04, 2012 9:30 pm Post subject: |
|
|
raynebc wrote: | There's something else I must be doing wrong. I'd been trying to parse the lyric data from the "hotelcalifornia_lyrics" section. The checksum of this is 0x10C14E19 and it appears at QB offset 0x24254. Am I parsing that section incorrectly or are you referring to a different section above? |
That's the right section, this section starts out with 00 01 0A 00 with 0x1A3 elements, with each of those element's offsets starting at 0x24270, each offset corresponds to a lyric record, the first one starts at 0x248FC _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Wed Apr 04, 2012 11:56 pm Post subject: |
|
|
My section parser wasn't handling "alternate" 2D array sections yet. It was messy getting to this point, but I got the lyric text to import. Thanks a ton! |
|
Back to top |
|
|
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Thu Apr 05, 2012 12:40 am Post subject: |
|
|
No problem...all these file structures are really confusing and could've been written so much cleaner, but my guess is that they are built in a generic fashion so it can be shared with many different games...glad you got it working _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Thu Apr 05, 2012 12:42 am Post subject: |
|
|
QB is so inefficient, I'm glad they moved away from it. |
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Wed Apr 18, 2012 11:35 pm Post subject: |
|
|
I'm grappling with trying to recognize ghost and accented (strong hit) notes, but I'm not making much sense of it yet. Are these notations in the normal instrument sections (ie. drumsexpertinstrument)? Does anybody have a summary of how the notation is supposed to work? |
|
Back to top |
|
|
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Mon Apr 23, 2012 8:02 pm Post subject: |
|
|
raynebc wrote: | I'm grappling with trying to recognize ghost and accented (strong hit) notes, but I'm not making much sense of it yet. Are these notations in the normal instrument sections (ie. drumsexpertinstrument)? Does anybody have a summary of how the notation is supposed to work? | The last 5 bits of a note notate the accent mask for all 5 notes (purple not included) _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Mon Apr 23, 2012 8:21 pm Post subject: |
|
|
That clears up the accent (strong hit?) notes. Do you happen to know about the ghosted notes though? I was looking at the chart file for the song "Graduate" by Third Eye Blind, and one of the snare notes is marked with a note bitmask of 0 and an accent bitmask of 0. |
|
Back to top |
|
|
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Mon Apr 23, 2012 10:18 pm Post subject: |
|
|
raynebc wrote: | That clears up the accent (strong hit?) notes. Do you happen to know about the ghosted notes though? I was looking at the chart file for the song "Graduate" by Third Eye Blind, and one of the snare notes is marked with a note bitmask of 0 and an accent bitmask of 0. | I'm not sure about those, are those Expert+ notes? _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Mon Apr 23, 2012 10:21 pm Post subject: |
|
|
Ghost notes, as far as I know about it, are displayed in Expert+ difficulty only. The example I gave doesn't resemble the double bass notation though, which is one bit in the note bitmask set while another is clear. |
|
Back to top |
|
|
codemann8
Joined: 10 Apr 2007 Posts: 1048 Location: Oshkosh, WI
|
Posted: Wed Apr 25, 2012 10:28 pm Post subject: |
|
|
raynebc wrote: | Ghost notes, as far as I know about it, are displayed in Expert+ difficulty only. The example I gave doesn't resemble the double bass notation though, which is one bit in the note bitmask set while another is clear. |
I never dug this far so I wouldn't know, I think the extra drum note section has something to do with it _________________
Frets and Fireworks GH:A Expert Tourney Winner
AAA-2 Season 5 Overall Points Champ & Playoff Runner-Up!!!
My FCs
|
|
Back to top |
|
|
raynebc
Joined: 16 Jun 2008 Posts: 992
|
Posted: Sat Jun 16, 2012 3:25 pm Post subject: |
|
|
I've been stuck trying to parse practice sections from QB files. I'm able to load the section names and their checksums, but I don't know where or how the timestamps are stored for them. Can anybody shed some light on this? Thanks in advance. |
|
Back to top |
|
|
|