This document explains how to update Predator from one version to another.
After downloading the new version of Predator, you should check its documentation files to see if any dependencies have been changed since the version you're currently running. Predator's dependencies can typically be found in the docs/INSTALL.md
file, though older versions may have the dependencies listed in the DOCUMENTATION.md
file.
This is the most technical step in updating Predator. There are a few different ways to go about moving your configuration to a different version of Predator.
Predator versions 12.0 and later can automatically reconcile differences between the existing configuration file and the default configuration from the new version. To use this feature, simply update Predator, leaving your existing config.json
file in place. On first start-up, Predator will compare the active configuration file with the version's default, and reconcile differences. Values that only exist in the active configuration will be removed. Values that only exist in the default configuration file will be added to the active configuration.
The most reliable way to update your configuration is to simply replace it with the default assets/support/configdefault.json
file from the new version of Predator, and manually copy over the important values from your old configuration file. This method makes it much less likely that you'll accidentally use an incompatible configuration file.
If you've made extensive changes to your configuration file, and don't want to manually re-configure the new version, you can try directly copying your current config.json
file over the one from the new version. Predator's configuration file often changes dramatically from version to version, so this will almost certainly require some adjustments to your configuration file to make to make it compatible.
When you first run Predator using your original configuration file, you will likely see several errors about missing or invalid configuration values. You should take note of the invalid configuration values, and use the information found in the docs/CONFIGURE.md file to modify the config.json
file to correct the invalid values. It is likely that some values listed as invalid will be completely missing from your original configuration file. In this case, you may want to copy them from the default configuration file that came with the new version of Predator.
If you run into problems, and want to completely reset Predator and start fresh, you can do so with the following steps:
- Erase the contents of the working directory (as defined in
config.json
undergeneral>working_directory
). - Erase the contents of the interface directory (as defined in
config.json
undergeneral>interface_directory
). - Replace the
config.json
file with the defaultassets/support/configdefault.json
file that comes with the new version of Predator.