Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Globals

Minyoung Choi edited this page Jun 22, 2018 · 3 revisions

kca_globals.py contains some additional settings meant for the advanced/power user of kcauto. The variables contained in this file vary in scope and consequences across kcauto's functionality. Some of the variables here should not be altered (the SIMILARITY and EXPAND variables, for example), but the others may be useful for tweaking kcauto to the user's needs.

SIKULI_SCANRATE

Specifies how many times per second the Sikuli image scan should be fired (a lower number results in less scans per second). If the machine running kcauto has a weaker CPU/VM and the Live Combat engine is causing issues, lowering this value might help alleviate the CPU load.

Default: 20

LOOP_SLEEP_LENGTH

Specifies how long to sleep between each kcauto cycle, in seconds. Modifying this value changes the length of time between kcauto printing its end-of-cycle stats and the next iteration where it begins to check for received expeditions, sorties, etc. If a more responsive kcauto is desired, consider lowering this value, but take care since it may invite catbombs.

Default: 15

QUEST_LOOP_CHECK_RATE

The default quest check frequency, assuming no other frequencies exist internally in the Quest module. Lower this value to have kcauto check quests more frequently, raise it to check less frequently.

Default: 5

SLEEP_MODIFIER

The sleep modifier is added to every internal sleep kcauto conducts. If the network kcauto is running on is slow/tends to have delays and the script frequently fails due to a laggy game, consider raising this little by little.

Default: 0

COMBAT_BUFFER_MINUTES

How many minutes to wait between sorties. Raising this allows for natural morale regeneration between automated sorties.

Default: 0

SPARKLING_RUN_COUNT

When using the Combat and ShipSwitcher module with the sparkle setting as a ShipSwitch criteria, the ShipSwitcher module will switch the ship out after this many combat sorties. Raise or lower according to how well your ships are being sparkled.

Default: 3

SIMILARITYs

It is not recommended that these values be modified. If they are, extreme care should be taken. Most of them have been tweaked specifically for their use case, and modifying them may result in damage or fatigue states being mis-identified, or the fleet position being mis-tracked, or instability in general.

Please use the debug and debugc command line arguments to validate custom similarity thresholds.