cs-demo-manager icon indicating copy to clipboard operation
cs-demo-manager copied to clipboard

Suggestion: Allow .dem files to be deleted while preserving statistics

Open lilgandhi1199 opened this issue 5 years ago • 4 comments

Currently I think you are storing all statistics about every match in your local cache. dust2_xxxxxxxxxxxxxxxxxxxxx.json dust2_xxxxxxxxxxxxxxxxxxxxx_flashed players.json dust2_xxxxxxxxxxxxxxxxxxxxx_banned players.json

or whatever those 2 extras are that go with every analyzed demo... Then you reference the demo file location in those files and also the demos.json file

I've been editing these trying to point them all at a single demo file so that I can delete all my demo files after your program has analyzed them and then it can go and look and find the file and be happy. But you must be storing the name of the demo file somewhere else too. If I kept all my demo files from my accounts history of 4500 comp games I'd have 300gb drive filled at minimum. Can you add an option to always list game stats but if you go to play it that's the only time it fails and gives you the error that the file is missing?

If you don't want to work all that in can you atleast tell me where you're hiding the demo names!! lol

lilgandhi1199 avatar Sep 08 '19 12:09 lilgandhi1199

oooh just found this export json button which is much bigger then the jsons I found and more readable too!

Now if I do that first export the json, delete the demo from my hdd (I wouldn't mind keeping the demo info file if needed) then edit the 10mb json file and change the path every time to point to a single demo file....Can I re-import it now and the program will let me see all the stats?

lilgandhi1199 avatar Sep 11 '19 00:09 lilgandhi1199

If you delete a demo from your fs, it will not appears in the application. The application read the .dem on the fs then grab data from the "cache" not the opposite.

If you delete your demos and a new app version includes a new feature that requires new data or fixes an analyze bug, all demos will need a new analyze to have accurate data. This is why I recommend keeping your demos, they are the source of truth, not the json files.

akiver avatar Oct 13 '19 19:10 akiver

lol yeah I suppose so. But how do I get around the complicated validity check you run. It checks size or runs a checksum on it or something insane right?

Here's my profile where I've made a better metric then ADR which is ADD (Average damage per death) Damage dealt/Damage Received which is like K/D ratio but much more useful. ADR tells you how much you've helped the team but ADD tells you (like K/D) how well you're actually playing when you get in fights.

You should look at my profile. I've written a 3000 line code to parse your json data for all my teammates and enemies to see after the game is over with 4 mvps Leader/Committer/Knock-Out(ADD)/Handler(ADD vs Enemy K/O) https://steamcommunity.com/profiles/76561197997327350/

lilgandhi1199 avatar Oct 13 '19 23:10 lilgandhi1199

I would also like some method to allow deleting the demo even if that meant new features wouldn't be available.

Pheil avatar Jan 26 '21 21:01 Pheil

A new major version has been released, closing the issue 🧹

akiver avatar Dec 02 '23 16:12 akiver