Sweepy - Testing lots of maps? Clean out wasted space with this!

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,776
7,674
Tired of having to go through your maps folder and clean out all the old stuff that piles up from testing? Sweepy provides an easy way to remove it in one go. It will work for any Source engine game.

screenshot.png


As you can see in the screenshot, many options are provided for you to choose from, but the primary advantage of Sweepy is the "old versions" auto-detection algorithm.

This works by examining the contents of the filename following the LAST underscore, except if the filename ends with "_old" in which case that part is ignored.
The process looks for typical methods of versioning a map: _final, _rc, _test, and any single letter (_a, _b, _r, _z). If none of these are found then it is assumed non-versioned and is the root name of a map. Files with matching "roots" are grouped together.
The "standard" versions are taken from the group, then ranked in the following order from newest to oldest: _v, _final, no suffix, _rc, _b, _a, with any sub-versions (_b2, _b3) taken into consideration. All but the newest are then marked for deletion.
Any "non-standard" (_test, _z, _bob, _stage) versions remaining have their timestamps compared to the newest "standard" version. Older ones are marked for deletion and newer ones are are flagged in yellow for the user to decide on.

A whitelist is also provided so you can easily preserve all versions of your own maps, or anything else you never want auto-selected.

Full info on the rest of the features can be found in the packaged readme. (also accessible here)

Download!
Disclaimer: I am not responsible for wrongly deleted files due to incorrect use of this application.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Nice, although i'm a little surprised it was put in 'TF2 talk' rather than the resource section along with all the other useful mapping apps such as the soundscape editor etc. (even though it's not necasserily a mapping tool).
 

Fraz

Blu Hatte, Greyscale Backdrop.
aa
Dec 28, 2008
944
1,152
I think it's better here since anybody who plays TF2 might use this, and I wouldnt call it a mapping app either.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,776
7,674
grazr: midget pretty much has it. Tuts & Res is meant for stuff that helps in the creation of a map, this is quite the opposite :p Plus this is useful for people who don't actually map too.
 

Okrag

Wall Staples
aa
Jun 10, 2009
1,029
655
Now all I need is a program that cleans all the bz2's out of my downloads folder.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Yea, i figured as much, i'd just be worried that people would be less likely to find it here than with all the other apps over "there", where people are used to finding useful things.

Have you posted this on other sites? This could deffinately do with being on the TF2 wiki.

Now all I need is a program that cleans all the bz2's out of my downloads folder.

I'm pretty sure Booj could just add in that function in his next version.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Interesting. Is the "number of times loaded" bit determined by looking for some cache files somewhere?

BTW, for revision numbering I've been using:
  • mapname_b2
  • mapname_b3_x01
  • mapname_b3_x02
  • mapname_b3_x03
  • mapname_b3_x04
  • mapname_b3

Where the x## values are zero-padded so it's easier to sort.
 
Last edited:

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,776
7,674
I might post it elsewhere once I have no reports of bugs. I don't expect any/many, but I never really had extensive external testing.

Download folder... ehh. That's more than I care to bother with. Would mean another folder selection button (I don't feel like messing with the layout anymore) and determining which bz2/7z/zip/rar are maps and which aren't. Plus it's relatively easy to just nuke them all yourself, this program arose from the bother of nuking specific maps.

The load counts are in media\viewed.res, it says this in the program.

Your versioning, what about it? It won't properly detect those since they have an additional underscore, and I tried a few things to make such cases work but none were reliable. The only method that I think would work would require way more additional code than I cared to write, because those kinds of versions are a rarity.
 
Last edited:

Sel

Banned
Feb 18, 2009
1,239
2,570
Are there any real detrimental effects of having a lot of maps in your maps folder, aside from them using space?
 

STrRedWolf

L1: Registered
Jul 23, 2011
1
0
One bug on my Win7 laptop: When it starts, it gives a .NET exception error:

"Unhandled exception has occurred in your application... Object reference not set to an instance of an object."

Details say it's in oldmapcleaner.Form1.Form1_Load()

Clicking ignore lets it continue up and works OK for what I see.