Skip to main content

TF2 demo file management tool written in Python and Tcl, using tkinter.

Project description

Demomgr

Demomgr is a python program designed to keep track of, cleanup and play demo files from the Source video game Team Fortress 2, released by Valve Corporation in 2007.

Main program window
Main program view, directory filtered to only display demos with a killstreak >= 10 not taking place on training or mvm maps, sorted by creation time.

Current features:

  • List Demos, their filesize, creation date and the amount of Killstreaks/Bookmarks
  • Read Killstreak/Bookmark information from both .json files and the _events.txt file
  • View and edit bookmark information of individual demos
  • View header information of individual demos
  • Sort and filter demos by multiple criteria
  • Cleanup entire folders by multiple criteria
    • Removes unneccessary entries from _events.txt and also deletes useless .json files
  • Launch TF2 with a playdemo command attached
    • Optionally with HLAE
  • Play a demo into an already running instance of TF2 using RCON

Start Instructions:

If you don't have python, get it from the official website.

Demomgr is in python's package index (PyPI), you can install it using pip install demomgr. This should create an entry point script in your python installations's Scripts directory. If that is on your system's path, you should now be able to run demomgr pretty much anywhere.

If that does not work out for you, try py -m demomgr, or in a very extravagant case create a python script that runs
from demomgr.main_app import MainApp; MainApp().

After accepting the disclaimer (I have no idea how to set up tests for deletion/file management logic), you will be presented an empty UI. In order to view your demos, click "Add demo path" and select the directory containing your demos.
You can switch between directories using the selection box at the top of the window.

Filter instructions:

The filter criteria must be entered as follows:
<keyname>:<parameter>, seperated by commas.
You can negate all key-parameter pairs by prefixing the key with !.
Do not use the same filtering key (Even if negated) in a filter request, as one will replace the other.
You can enter multiple criteria by seperating them with ,.

Example: !map:(mvm_,plr_,tr_), killstreaks:2.., beststreak:5..
This will display all demos where: The user has gotten at least two killstreaks, at least one of those streaks was 5 or more and the game does not take place on maps containing the substrings mvm_, plr_ or tr_.

You can currently filter the directory you are in by the following keys:

  • map : Name of the map the demo is playing on. (String)
  • name : Filename of the demo. (String)
  • killstreaks : (Inclusive) Minimum amount of present killstreaks. (Range/Integer)
  • bookmarks : (Inclusive) Minimum amount of bookmarks recorded. (Range/Integer)
  • beststreak : (Inclusive) Minimum value of the best streak recorded in demo (Range/Integer)
    • May produce erratic results at values out of normal ranges
  • bookmark_contains : Bookmarks containing this String (String)
  • hostname : Name of the server the demo took place on. (String) (Usually in IPv4 format)
  • clientid : Steam community name of the player. (String)
  • moddate : Modified at this date. (UNIX Timestamp) (Range/Integer)
  • filesize : Filesize in bytes (Integer)

Possible parameters are:

  • Quoteless string: foo
    • Quoteless strings may consist out of A-Z, a-z, _, -
  • Quoteless string tuple: (foo, bar, baz)
  • String: "foo", 'b\u0061r'
  • String tuple: ("foo", 'b\u0061r', "b\u0061z", )
  • Range: 1..2, 10.., ..50

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Demomgr-1.8.1-py3-none-any.whl (106.5 kB view details)

Uploaded Python 3

File details

Details for the file Demomgr-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: Demomgr-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 106.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.6

File hashes

Hashes for Demomgr-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22ca979549d414220e17778f8a82c2b5446b9cc9ad14cc742a1c0fcb55cb62ce
MD5 09340873990d87cc03108809c6ccfcbb
BLAKE2b-256 0374ea76271065db5e0bbb70943f3b59414c1559e08443968d04a691310e9b28

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page