Upvote Upvoted 3 Downvote Downvoted
prec_delete_useless_demo 1 doesn't work?
posted in Customization
1
#1
1 Frags +

Is anyone else experiencing this issue?

P-REC seems to be saving every single demo, as I have it set to that. However, it doesn't delete the demos automatically, even if they don't contain a killstreak or a bookmark.I realized today that there are now hundreds of demos in my tf folder, all recorded by me, even though I have prec_delete_useless_demo on. Many of them don't even contain killstreaks or marks. I like to have P-REC on to save funny moments in pubs, etc, but I don't want to have to clean out my tf folder every week.

Is anyone else experiencing this issue?

P-REC seems to be saving every single demo, as I have it set to that. However, it doesn't delete the demos automatically, even if they don't contain a killstreak or a bookmark.I realized today that there are now hundreds of demos in my tf folder, all recorded by me, even though I have prec_delete_useless_demo on. Many of them don't even contain killstreaks or marks. I like to have P-REC on to save funny moments in pubs, etc, but I don't want to have to clean out my tf folder every week.
2
#2
0 Frags +

I'm not sure if it ever worked.

I'm not sure if it ever worked.
3
#3
0 Frags +

It works for me, but i cant turn off killstreak thing :(, try putting it in the prec folder and typ it in console.

It works for me, but i cant turn off killstreak thing :(, try putting it in the prec folder and typ it in console.
4
#4
-5 Frags +

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

I created a patch here: https://github.com/joelamos/prec_delete_useless_demo
5
#5
0 Frags +

That cvar works for me and Ive been using it since forever

That cvar works for me and Ive been using it since forever
6
#6
2 Frags +
joelamosI 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.

[quote=joelamos]I created a patch here: https://github.com/joelamos/prec_delete_useless_demo[/quote]

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.
7
#7
6 Frags +

Don't use it if you play in a league

Don't use it if you play in a league
8
#8
-1 Frags +
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).

[quote=Friendly_Protist][quote=joelamos]I created a patch here: https://github.com/joelamos/prec_delete_useless_demo[/quote]

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.[/quote]

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).
9
#9
0 Frags +
joelamosFriendly_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).

You 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

[quote=joelamos][quote=Friendly_Protist][quote=joelamos]I created a patch here: https://github.com/joelamos/prec_delete_useless_demo[/quote]

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.[/quote]

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).[/quote]

You 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
10
#10
0 Frags +
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?

[quote=deetr]
You 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[/quote]

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?
11
#11
Momentum Mod
0 Frags +
DamnEasyi cant turn off killstreak thing :(

you could set your prec_min_streak to a high value

[quote=DamnEasy]i cant turn off killstreak thing :([/quote]

you could set your prec_min_streak to a high value
12
#12
0 Frags +
joelamosdeetrYou 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?

Most 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

[quote=joelamos][quote=deetr]
You 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[/quote]

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?[/quote]

Most 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
13
#13
1 Frags +
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

[quote=deetr]Most 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[/quote]

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
14
#14
0 Frags +

 

 
Please sign in through STEAM to post a comment.