perryhuynh / kcauto

kcauto, the successor to kancolle-auto, a Kantai Collection (Kancolle) bot/automation tool
GNU General Public License v3.0
68 stars 22 forks source link

Resupply Issue #423

Closed aleksandercs closed 4 years ago

aleksandercs commented 4 years ago

I encountered the same problem with 3.7.5. Is there something I should do?

Traceback (most recent call last): File "C:\python\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\python\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "kcauto__main__.py", line 19, in kcauto_main() File "kcauto\kcauto_wrapper.py", line 32, in kcautomain .kcauto.run_resupply_logic(home_after=True) File "kcauto\kcauto.py", line 129, in run_resupply_logic if res.resupply.need_to_resupply: File "kcauto\resupply\resupply_core.py", line 19, in need_to_resupply fleets = [fleet.fleet_id for fleet in self._get_fleets_to_resupply()] File "kcauto\resupply\resupply_core.py", line 63, in _get_fleets_to_resupply if fleet.enabled and fleet.needs_resupply: File "kcauto\fleet\fleet.py", line 123, in needs_resupply if ship.needs_resupply: File "kcauto\ships\ship.py", line 90, in needs_resupply if self.fuel < self.fuel_max: TypeError: '<' not supported between instances of 'int' and 'NoneType' [2019-12-12 10:30:40] Terminated kcauto subprocess via GUI.

mrmin123 commented 4 years ago

Did you start kcauto with the game in the splash screen when you ran it the first time? It needs to be run from the splash screen to download all the necessary ship data.

aleksandercs commented 4 years ago

Everything works perfectly. Thank you.