Egoistically / ALAuto

Azur Lane bot based on azurlane-auto. Discord: https://discord.gg/vCFxDen.
Do What The F*ck You Want To Public License
106 stars 43 forks source link

KeyError: 'oil_limit' #15

Closed AchmadFathoni closed 5 years ago

AchmadFathoni commented 5 years ago
[2019-10-31 13:42:06] Initializing config module
[2019-10-31 13:42:06] Validating config
[2019-10-31 13:42:06] Starting ALAuto!
* daemon not running; starting now at tcp:5037
* daemon started successfully
[2019-10-31 13:42:12] Successfully connected to the service.
Traceback (most recent call last):
  File "ALAuto.py", line 188, in <module>
    if script.should_sortie():
  File "ALAuto.py", line 64, in should_sortie
    Utils.check_oil(self.config.combat['oil_limit'])
KeyError: 'oil_limit'1

KeyError is logic error means the oil_limit key doesn't exist. I already use Nox, 1920x1080 resolution, and ADB connection is fine.

My config.ini

[Network]
Service: 127.0.0.1:62001

[Updates]
Enabled: True
Channel: Development

[Combat]
Enabled: False
Map: 3-4
OilLimit: 1000
RetireCycle: 2

[Modules]
Commissions: False
Enhancement: False
Missions: False
Retirement: False

[Events]
Enabled: False
Event: Crosswave
Levels: EX,H,N,E
Egoistically commented 5 years ago

Every single module (including combat) is disabled on your config.

Egoistically commented 5 years ago

Added extra checks on the latest update so this doesn't happen again. Thanks.