headshotbox
headshotbox copied to clipboard
Save Demo Info
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.
I don't think there is but I would be interested if this was a feature. Save and manage stats with a database.
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.
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.
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 :)
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.
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.