headshotbox icon indicating copy to clipboard operation
headshotbox copied to clipboard

Save Demo Info

Open tiimk opened this issue 8 years ago • 6 comments

I made another issue regarding this without any response. Not sure if was overlooked but just curious if there would be a way to save the stats from demos so that the demos may be removed.

tiimk avatar Jul 11 '16 02:07 tiimk

I don't think there is but I would be interested if this was a feature. Save and manage stats with a database.

Rsslone avatar Jul 11 '16 06:07 Rsslone

The problem is I keep changing the format of the stats as the code evolves. And keeping backwards compatibility with the old stats formats means more work. Also new features won't work with the deleted demos since parsing is usually needed. Same for bugfixes.

bugdone avatar Jul 11 '16 08:07 bugdone

I see. Well its not a huge problem for me yet but I can imagine a day when the demo folder gets so large I have to start deleting them, which will be sad.

Rsslone avatar Jul 11 '16 08:07 Rsslone

As HSBox is using a sqlite database, maybe you could save a copy of the file before upgrading to a newer version. Will be unusable if DDL changes but at least you saved the data. The community could then create scripts to convert/dump it to newer version of the database. You'll lost new data implemented in new version of the parser but it's better than nothing :)

0BuRner avatar Jul 11 '16 10:07 0BuRner

I must change the DDL myself whenever I change the format as re-parsing the demos is expensive. But the code that works with the data is the problem.

In the end it might not be too much work since I didn't really changed the format much, I mostly added stuff.

bugdone avatar Jul 11 '16 10:07 bugdone

I think it'd be really great because as Rsslone said storage isn't an issue yet but I plan on opening up my copy of hsb to my friends and between all of us we will be growing in size fairly fast.

tiimk avatar Jul 11 '16 17:07 tiimk