Revadike Posted June 5, 2017 Report Posted June 5, 2017 (edited) So, I am trying to download all .manifest files of all my owned games.Here is the snippet that should do this: client.once("appOwnershipCached", function() { console.log("appOwnershipCached"); client.getProductInfo(client.getOwnedApps(), [], function(apps) { console.log("gotProductInfo"); apploop: for (appid in apps) { depotloop: for (depotid in apps[appid].appinfo.depots) { if (!isNaN(parseInt(depotid))) { //is key the depot id? manifestloop: for (type in apps[appid].appinfo.depots[depotid].manifests) { var manifestid = apps[appid].appinfo.depots[depotid].manifests[type]; client.getRawManifest(parseInt(appid), parseInt(depotid), manifestid, function(error, manifest) { if (!error) { //console.log(manifest); fs.writeFile(path.join(__dirname + "/" + depotid + "_" + manifestid + ".manifest"), manifest, "utf8", function(error) { console.log(error); }); } }); break apploop; //limit to 1 manifest for now } } } } }); }); But the .manifest file I get isn't quite the same as the original downloaded directly from Steam. I suspect because the filenames are encrypted with my .manifest file. The problem is though, there is no feature that decrypts the filenames without parsing the raw manifest into an JSON object. Is this the problem? Or is it something else? Should I do something differently? Thanks11_3149618157612033597.manifest.zip Edited June 5, 2017 by Royalgamer06 Quote
Dr. McKay Posted June 5, 2017 Report Posted June 5, 2017 That's correct. There's no way, using node-steam-user, to decrypt filenames without parsing the manifest. I don't have any plans to support this as I don't see a valid use-case for that. Quote
Revadike Posted June 9, 2017 Author Report Posted June 9, 2017 I'll tell you a valid use-case. If this gets implemented, it opens opportunities for games to download, install, update, and validate entire apps, like SteamCMD does with "app_update -validate". It will be very useful for dedicated server operators, but there are many other applications. Quote
Dr. McKay Posted June 10, 2017 Report Posted June 10, 2017 I'm not sure I follow. What does haven't a manifest enable that you couldn't already do? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.