joelamos
Account Details
SteamID64 76561198153552399
SteamID3 [U:1:193286671]
SteamID32 STEAM_0:1:96643335
Country United States
Signed Up September 5, 2015
Last Posted September 13, 2015 at 8:35 PM
Posts 4 (0 per day)
Game Settings
In-game Sensitivity
Windows Sensitivity
Raw Input  
DPI
 
Resolution
 
Refresh Rate
 
Hardware Peripherals
Mouse  
Keyboard  
Mousepad  
Headphones  
Monitor  
#13 prec_delete_useless_demo 1 doesn't work? in Customization
deetrMost users have a date in their prec file format and some sort of delimiter between the elements of the file format, it would probably be possible to regex it and get a pretty high accuracy. That would only work in most cases though and you want something that works in all cases from what I can see. Also you could probably not delete demos that start with esea_ imo because those will basically never be prec demos

I've added a simple checkbox and console command to allow users to only delete files containing the PREC's date var. Should be more useful now. If you rename files, you could get into the habit of saving these to a subdirectory.

Here's the new release: https://github.com/joelamos/prec_delete_useless_demo/releases/tag/v1.1

posted about 8 years ago
#10 prec_delete_useless_demo 1 doesn't work? in Customization
deetrYou could read P-REC's config file and then check if the filenames match the syntax of P-REC's config, but that would kind of fuck up if you changed your P-REC config

Now that I think of it, even using a user-defined pattern(s) could match false positives. For instance, %map%, %red%, and %blu% could literally be any text.

In my thinking, the only possible safeguarding would be to have an option to not delete files with P-REC's date format in their name. I'm guessing 99% of P-REC users include the date in the filename.

Thoughts?

posted about 8 years ago
#8 prec_delete_useless_demo 1 doesn't work? in Customization
Friendly_ProtistjoelamosI created a patch here: https://github.com/joelamos/prec_delete_useless_demo
Your script deletes EVERY demo in tf that isn't in killstreaks.txt. So if you have any demos renamed or from other sources DO NOT USE THIS unless you have those demos backed up in another folder.

You're correct. As P-REC allows you to customize file names, there's no real way to only delete P-REC demos (short of having the user specify a pattern).

posted about 8 years ago
#4 prec_delete_useless_demo 1 doesn't work? in Customization

I created a patch here: https://github.com/joelamos/prec_delete_useless_demo

posted about 8 years ago