Author Topic: WIP: Old Demo Playback Info  (Read 31644 times)

ProdigySim

  • *
  • Posts: 1000
    • View Profile
WIP: Old Demo Playback Info
« on: February 06, 2012, 11:49:07 am »
I spent the last weekend working on writing patches for DepotDownloader and messing around with it in hopes of giving players a simple and legal way of getting old versions of L4D2.


List of old updates:
http://store.steampowered.com/news/?feed=steam_updates&appids=550

Game version mapping:

http://pastie.org/private/pnmm0nugimwvppawmuna
TODO: Map this to dates and update notes.

Recommended DepotDownloader build:
http://kc.prodigysim.net:1337/indexed/DepotDownloader/DepotDownloader-r705.7z
TODO: Replace with official build

DepotDownloader CellIDs:
https://bitbucket.org/VoiDeD/steamre/wiki/Networking/Steam2/CellID.wiki

Use depotdownloader to "update" your l4d2 directory to a given version:
DepotDownloader was built with dedicated servers in mind, so the -dir (install dir) commandline option doesn't match up with steam's. I'll probably correct this/add a new option to DepotDownloader, but for now you can work around this by using mklink to make a symbolic link to a directory.

Code: [Select]
mklink /D "C:\Path\To\Steam\SteamApps\common\left4dead2" "C:\Path\To\Steam\SteamApps\common\left 4 dead 2"
DepotDownloader -cellid <fromwiki> -depot 551 -version <depotversion> -dir "C:\Program Files\Steam\steamapps\common"
Also possibly necessary:
DepotDownloader -cellid <fromwiki> -depot 552 -username <steamusername> -version <depotversion> -dir "C:\Program Files\Steam\steamapps\common"
Note that the version numbers for depot 552 are different from the ones for 551. For most recent game changes (post-sacrifice) you shouldn't need to use depot 552 to get old content.
Note! Do not put a trailing slash after common!

Identify .DEM game version:
Unfortunately valve started using NetworkVersion after the sacrifice update, so it's hard to tell what version a demo came from. Normally you can use a hex editor and inspect the 4 bytes from offset 0XC like so: http://i.imgur.com/L2BQJ.png
However this data isn't useful for any demos post sacrifice (or maybe it was passing? hmm).
Your best bet for identifying correct demo versions is to use the "Date Modified" field on the file. Hopefully you won't have mangled these yet!
Once you have the date of the demo, you should be able to consult the game version mapping (TODO: Map DepotDownloader versions to PatchVersion, NetworkVersion, Store update news, and date). Note that DepotDownloader versions are completely different from other version numbers.

Once you've managed to get DepotDownloader to grab the correct version, you should be able to launch the game and play the demo. You may have to bypass steam to get it to launch without updating (Directly run C:\...\Steamapps\common\left 4 dead 2\left4dead2.exe)

Also, if any of this sounds interesting to you, you can add me on steam and either help me out or test some of this stuff.
« Last Edit: June 07, 2012, 01:47:31 pm by ProdigySim »

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #1 on: February 06, 2012, 12:54:39 pm »

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #2 on: February 11, 2012, 01:39:14 pm »
Updated DepotDownloader usage info for downdating your l4d2 directory. I just used this method to rollback my client to play some eFPS round 1 demos.

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #3 on: February 11, 2012, 10:40:57 pm »
Updated DepotDownloader to r702.

TODO: Get steam3 hashing and credentials caching.

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #4 on: February 14, 2012, 08:18:52 pm »

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #5 on: February 15, 2012, 11:29:21 am »
r705.

Now with the correct DLLs!

Bravo

  • *****
  • Posts: 663
  • Hi
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #6 on: February 15, 2012, 12:05:18 pm »
hey, stop talking to yourself.  8)

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #7 on: February 15, 2012, 12:52:23 pm »
There's been at least 3 people adding me on steam to get help doing this, so I'm going to keep updating it here with more useful info.

Check

  • *
  • Posts: 6
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #8 on: February 15, 2012, 07:09:18 pm »
Stuff working very well for me, i'm now able to play demos dated from 10/20/2011.
Great job from ProdigySim, thank you a lot !  ;)

BRBBOWFLEXIN

  • *
  • Posts: 319
  • The Canadian Badboy
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #9 on: February 19, 2012, 01:49:32 pm »
Mot really understanding this but i would like to try this out so i could get a crack at the royalty demos :3

erza

  • **
  • Posts: 56
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #10 on: February 20, 2012, 09:32:13 pm »
was messing around and downloaded files from version 52 (2.0.3.6) from depot 551

Ended up with these files

http://img845.imageshack.us/img845/9092/captureyyw.jpg

not sure what i'm supposed to do next (tried copying it over to my other game but it didn't run) :<

ProdigySim

  • *
  • Posts: 1000
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #11 on: February 21, 2012, 01:34:49 pm »
@erza: If you're going to use a version that old, you'll probably have to download the client depot from the same update in order to get it to run...
Unfortunately, the client depots don't use the same version numbers as the common depot...

Which brings me to this:

http://www.l4dnation.com/wiki/L4D2_Updates

Attempt to list all L4D2 updates and correlate version numbers with depot versions, dates, and links.

If you think you can solve the version-correlation conundrum feel free to help.

erza

  • **
  • Posts: 56
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #12 on: February 21, 2012, 01:53:42 pm »
ooo...didn't know that the two depots were different, should have read closer rofl

yeah anything i figure out, i'll post here :>

erza

  • **
  • Posts: 56
    • View Profile
Re: WIP: Old Demo Playback Info
« Reply #13 on: February 21, 2012, 10:52:51 pm »
Been downloading versions from 552.

Randomly started at 20 and then copied folder and renamed it to 21 and noted changes when downloading.

20-22 are the same size except the client.dll is redownloaded
23-26 has the same amount of files, except the folder size increased a few MB (client.dll redownloaded as well)
27 actually downloaded another 400ish MB...(20-26 were around 2.97...27 is 3.4), might be a good checkpoint
28 redownloaded client.dll, the exe and icon (changing it from the old school red to the new orange one), folder size is only 15ish MB different from version 50

still not sure if having the right stuff will be enough to run super old versions (which isn't a big deal because I think everyone deleted those already), i'm just doing this out of curiosity.

I was wondering if you knew how many of the newer updates we needed a separate copy of. I know 89 and 90 were different, but I don't know anything beyond that.
« Last Edit: February 21, 2012, 10:58:35 pm by erza »

 

A dedicated community website to competitive L4D and L4D2, ran by the community, for the community. L4DNation supports all continents of play and focuses on bringing together the community as a whole to a central hub of information.