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

Discussion in 'Team Fortress 2 Talk' started by A Boojum Snark, Apr 13, 2010.

  1. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    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.

    [​IMG]

    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.
     
    • Thanks Thanks x 27
  2. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
  3. StickZer0

    aa StickZer0 💙💙💃💙💙

    Messages:
    664
    Positive Ratings:
    667
    That's great Booj
    Now I know why you wanted use to send you lists of our maps lol.

    I'll be using this then :3
     
  4. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,562
    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).
     
  5. Fraz

    aa Fraz Blu Hatte, Greyscale Backdrop.

    Messages:
    944
    Positive Ratings:
    564
    I think it's better here since anybody who plays TF2 might use this, and I wouldnt call it a mapping app either.
     
  6. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    wow, I wondered if something like this might come along. And just in time, I need to clear out some junk on my PC! thanks!
     
  7. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,842
    Positive Ratings:
    4,771
  8. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    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.
     
  9. Okrag

    aa Okrag Wall Staples

    Messages:
    1,029
    Positive Ratings:
    640
    Now all I need is a program that cleans all the bz2's out of my downloads folder.
     
  10. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,562
    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.

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

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    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: Apr 14, 2010
  12. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    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: Apr 14, 2010
  13. Sel

    Sel Banned

    Messages:
    1,241
    Positive Ratings:
    1,119
    Are there any real detrimental effects of having a lot of maps in your maps folder, aside from them using space?
     
  14. honorum646

    honorum646 L6: Sharp Member

    Messages:
    335
    Positive Ratings:
    66
    I wouldn't think so. >.>
     
  15. Tinker

    aa Tinker

    Messages:
    672
    Positive Ratings:
    333
    they might rebel and take over the /tf/ folder
     
  16. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    the 'maps *' would become all but unusable :O
     
  17. Sel

    Sel Banned

    Messages:
    1,241
    Positive Ratings:
    1,119
    what about

    RETRO NIGHTS

    :v
     
  18. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Has anyone had any issues?
     
  19. STrRedWolf

    STrRedWolf L1: Registered

    Messages:
    1
    Positive Ratings:
    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.
     
  20. Prop

    Prop L3: Member

    Messages:
    109
    Positive Ratings:
    6
    Very damn useful! Wow +1 unusual thanks to you!