Skip to content

6. Trackers

rafa97sam edited this page Nov 30, 2020 · 6 revisions

Please make sure that you have Trackers enabled in the settings before trying to use them!

Tracker Configuration

A Tracker Configuration script will appear in your settings tab when Trackers are enabled. This script reflects what is currently being tracked.

  • You are free to edit/remove this script, but keep in mind that all changes are irreversible.
  • By deleting/editing a tracker you will also delete all stored values for that tracker
  • If you are using lazy loading, it might take a while to update

Behavior

  • Trackers automatically update when new files are added (or script is changed)
  • Keep in mind that trackers will always pick the earliest file that fulfills the condition.
    If you don't have enough files then don't expect the data to be accurate
    (Trying to figure out when you cleared Tower with single file from level 500 definitely won't work)
  • Trackers will also update if you are trying to use settings that use trackers that you aren't tracking yet.
    These trackers will be automatically added to your script and updated.
    Be wary that non-matching trackers with same name won't be updated and the resulting values will be wrong.

Examples

Settings file:

# Will save the Level the player had when clearing tower 100
track Level at tower 100 as Level when Tower == 100

# Will save the date when player reached level 200+
track Reached level 200 when Level >= 200

category
header Cleared tower at Level
expr tracker(Level at tower 100)

header Reached 200
expr tracker(Reached level 200)
format datetime

header Fortress Maxed
expr tracker(Fortress Building Maxed)
format datetime

Tracker Configuration file:

# Tracker set manually directly in the configuration file
# Will save the date when Fortress reached level 20
track Fortress Building Maxed when Fortress == 20 

# Trackers set automatically when you applied a given Settings file containing them
track Level at tower 100 as Level when Tower == 100 # Automatic entry from 29.11.2020 23:41
track Reached level 200 when Level >= 200 # Automatic entry from 29.11.2020 23:41

⚠️ Trackers in the Configuration file won't be overwritten! You must delete them manually before applying an update via the Settings file (or edit it in both sides otherwise)