QUOTE(node21 @ Feb 5 2010, 03:07 PM)

Unfortunately, I can't remember exactly what changed between 05 and 06. But I remember a massive re-write...so anything could have happened.
What's most troubling is that you are reporting the title as coming up as garbage in .06. That shouldn't happen, but is probably related to the oddness that I've noticed with seekg on the 360. Sometimes it doesn't go where you would expect it to go before doing a read. However, I would expect all titles to be screwed up then... *sigh*
During the initial scan, it does this:
CODE
getContentType(F); // is this XBLA, or DLC?
getTitleID(F); // read the titleID at offset 0x360
getWTitleString(F); // get the embedded Title at offset 0x411
if ContentType == ARCADE
check if it is unlocked (the old way, confirming my earlier suspicion that I got this part wrong)
if ContentType == DLC
getWTitleStringFor(F); // get the embedded Title that this DLC is "for" at offset 0x1691
check if it is unlocked (the right way)
There is no other place to read the titleid from...it is only in one place.
- if you're using seekg with offsets, and something is indeed wrong (or at least non-standard) in SC, this might explain both the garbage title and the wrong unlock status detection. Or not?
- isn't the title string at offset 0x412? I mean, 411 is blank and 412 is where the fist character is.
- I have found that in SC, the hex sequence "584181A" appears two times; sequence "584108" four times in total. In other games, the full titleid sequence appears several times.
That's why I asked if you only ever read 0x360. Still can't figure why it won't match the CSV file. I am 100% that at 0x360, SC reads "5841081A".
QUOTE
2) I'm starting to believe that "Collection Management" for DLC will never really work. [...]
About this issue, what do you think of a complete change of approach? I mean, instead of relying on a scrape of xbox.com, using that as a basis and building a cooperative database where internal labels from DLC items and scrape results are correctly matched? Something like this:
DLC item parse:
- titleid 12345678
- title label "Rock Band - Guns And Roses - Sweet Child O' Mine"
xbox.com scrape:
- title name "Rock Band: Guns & Roses - Sweet Child Of Mine"
Not an exact match -> need for a manual association. Which - in theory - could happen either locally and individually, through a fuzzy search by XM360 showing similar matches, or cooperatively on a database/wiki website. What do you think?