Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expedition only task fails to resupply or resupply module doesn't get called #24

Closed
kevin01523 opened this issue Mar 30, 2023 · 5 comments
Assignees

Comments

@kevin01523
Copy link

Environment details

  • kcauto version (version on first line of CHANGELOG.md):
  • Operating system and/or VM:linux mint

Issue variability

Is the issue consistent (can be reproduced consistently) or is it intermittent (only happens sometimes)?:
consistent

Issue

expedition tasks fails to ressuply

Log

[2023-03-30 17:30:08] Connected to Chrome
[2023-03-30 17:30:08] Initializing kcauto vv1.0.0-beta in command-line mode with the '/home/kevin/Desktop/kcauto_custom-master/configs/config.json' config file.
[2023-03-30 17:30:08] Finding DMM.
[2023-03-30 17:30:10] Loading data from 'data/temp/get_data_ship.json'.
[2023-03-30 17:30:10] Updating ship library data.
[2023-03-30 17:30:10] Finding kancolle.
[2023-03-30 17:30:11] Using UI 1 or 2
[2023-03-30 17:30:11] Game X:33, Y:201
[2023-03-30 17:30:11] Game found. Initializing regions.
[2023-03-30 17:30:11] Updating regions.
[2023-03-30 17:30:11] New kca_loop started
[2023-03-30 17:30:11] kcauto is initializing.
[2023-03-30 17:30:11] Start receive expedetion
[2023-03-30 17:30:13] At home
[2023-03-30 17:30:13] Refreshing home.
[2023-03-30 17:30:17] Begin waiting for API payload(s).
[2023-03-30 17:30:18] Waiting for request 8615.524 (http://125.6.189.103/kcsapi/api_port/port)
[2023-03-30 17:30:18] Request 8615.524 received
[2023-03-30 17:30:18] Updating resource data from API.
[2023-03-30 17:30:18] Updating ship data from API.
[2023-03-30 17:30:18] Updating Repair data from API.
[2023-03-30 17:30:18] Updating fleet data from API.
[2023-03-30 17:30:18] Fleet 2 activated.
[2023-03-30 17:30:18] Fleet 2 is away on assignment.
[2023-03-30 17:30:18] Fleet 2 returns at 2023-03-30 17:52:32.
[2023-03-30 17:30:18] Fleet 3 activated.
[2023-03-30 17:30:18] Fleet 4 activated.
[2023-03-30 17:30:20] Start receive expedetion
[2023-03-30 17:30:20] Fleets 3 and 4 ready for expedition.
[2023-03-30 17:30:20] Start receive expedetion
[2023-03-30 17:30:23] At home
[2023-03-30 17:30:23] Navigating to expedition screen.
[2023-03-30 17:30:28] Begin waiting for API payload(s).
[2023-03-30 17:30:29] Waiting for request 8615.556 (http://125.6.189.103/kcsapi/api_get_member/mission)
[2023-03-30 17:30:29] Request 8615.556 received
[2023-03-30 17:30:30] Sending fleet 3 to expedition 5.
[2023-03-30 17:30:35] Selecting fleet 3.
[2023-03-30 17:30:38] Fleet 3 needs resupply.
[2023-03-30 17:30:40] Sending fleet 4 to expedition 6.
[2023-03-30 17:30:45] Selecting fleet 4.
[2023-03-30 17:30:49] Fleet 4 needs resupply.
[2023-03-30 17:30:52] kcauto has been running for 0d 0h 0m 43s (loop 1).
[2023-03-30 17:30:52] 0 Expeditions sent (0.00/hr) / 0 Expeditions received (0.00/hr)
[2023-03-30 17:30:52] Fleet 2 / On expedition / Returning at 2023-03-30 17:52:32
[2023-03-30 17:30:52] Fleet 3 / At base
[2023-03-30 17:30:52] Fleet 4 / At base
[2023-03-30 17:30:52] Active Scheduler rules:
[2023-03-30 17:30:52] Fuel:51027 (Δ0 : 0.00/hr) / Ammo:173181 (Δ0 : 0.00/hr) / Steel:2045 (Δ0 : 0.00/hr) / Bauxite:9563 (Δ0 : 0.00/hr) / Bucket:44 (Δ0 : 0.00/hr)
[2023-03-30 17:31:12] New kca_loop started
[2023-03-30 17:31:12] Fleets 3 and 4 ready for expedition.
[2023-03-30 17:31:14] At side menu
[2023-03-30 17:31:14] Going home.
[2023-03-30 17:31:15] Begin waiting for API payload(s).
[2023-03-30 17:31:16] Waiting for request 8615.571 (http://125.6.189.103/kcsapi/api_port/port)
[2023-03-30 17:31:16] Request 8615.571 received
[2023-03-30 17:31:16] Updating resource data from API.
[2023-03-30 17:31:16] Updating ship data from API.
[2023-03-30 17:31:16] Updating Repair data from API.
[2023-03-30 17:31:16] Updating fleet data from API.
[2023-03-30 17:31:17] Start receive expedetion
[2023-03-30 17:31:18] Start receive expedetion
[2023-03-30 17:31:20] At home
[2023-03-30 17:31:20] Navigating to expedition screen.
[2023-03-30 17:31:25] Begin waiting for API payload(s).
[2023-03-30 17:31:26] Waiting for request 8615.603 (http://125.6.189.103/kcsapi/api_get_member/mission)
[2023-03-30 17:31:26] Request 8615.603 received
[2023-03-30 17:31:27] Sending fleet 3 to expedition 5.
[2023-03-30 17:31:32] Selecting fleet 3.
[2023-03-30 17:31:35] Fleet 3 needs resupply.
[2023-03-30 17:31:37] Sending fleet 4 to expedition 6.
[2023-03-30 17:31:42] Selecting fleet 4.
[2023-03-30 17:31:45] Fleet 4 needs resupply.
[2023-03-30 17:31:47] kcauto has been running for 0d 0h 1m 39s (loop 2).
[2023-03-30 17:31:47] 0 Expeditions sent (0.00/hr) / 0 Expeditions received (0.00/hr)
[2023-03-30 17:31:47] Fleet 2 / On expedition / Returning at 2023-03-30 17:52:32
[2023-03-30 17:31:47] Fleet 3 / At base
[2023-03-30 17:31:47] Fleet 4 / At base
[2023-03-30 17:31:47] Active Scheduler rules:
[2023-03-30 17:31:47] Fuel:51027 (Δ0 : 0.00/hr) / Ammo:173181 (Δ0 : 0.00/hr) / Steel:2045 (Δ0 : 0.00/hr) / Bauxite:9563 (Δ0 : 0.00/hr) / Bucket:44 (Δ0 : 0.00/hr)
[2023-03-30 17:32:07] New kca_loop started
[2023-03-30 17:32:07] Fleets 3 and 4 ready for expedition.
[2023-03-30 17:32:09] At side menu
[2023-03-30 17:32:09] Going home.
[2023-03-30 17:32:10] Begin waiting for API payload(s).
[2023-03-30 17:32:11] Waiting for request 8615.619 (http://125.6.189.103/kcsapi/api_port/port)
[2023-03-30 17:32:11] Request 8615.619 received
[2023-03-30 17:32:11] Updating resource data from API.
[2023-03-30 17:32:11] Updating ship data from API.
[2023-03-30 17:32:11] Updating Repair data from API.
[2023-03-30 17:32:11] Updating fleet data from API.
[2023-03-30 17:32:13] Start receive expedetion
[2023-03-30 17:32:13] Start receive expedetion
[2023-03-30 17:32:15] At home
[2023-03-30 17:32:15] Navigating to expedition screen.
[2023-03-30 17:32:20] Begin waiting for API payload(s).
[2023-03-30 17:32:20] Waiting for request 8615.652 (http://125.6.189.103/kcsapi/api_get_member/mission)
[2023-03-30 17:32:20] Request 8615.652 received
[2023-03-30 17:32:22] Sending fleet 3 to expedition 5.
[2023-03-30 17:32:27] Selecting fleet 3.
[2023-03-30 17:32:30] Fleet 3 needs resupply.
[2023-03-30 17:32:32] Sending fleet 4 to expedition 6.
[2023-03-30 17:32:38] Selecting fleet 4.
[2023-03-30 17:32:40] Fleet 4 needs resupply.
[2023-03-30 17:32:43] kcauto has been running for 0d 0h 2m 34s (loop 3).
[2023-03-30 17:32:43] 0 Expeditions sent (0.00/hr) / 0 Expeditions received (0.00/hr)
[2023-03-30 17:32:43] Fleet 2 / On expedition / Returning at 2023-03-30 17:52:32
[2023-03-30 17:32:43] Fleet 3 / At base
[2023-03-30 17:32:43] Fleet 4 / At base
[2023-03-30 17:32:43] Active Scheduler rules:
[2023-03-30 17:32:43] Fuel:51027 (Δ0 : 0.00/hr) / Ammo:173181 (Δ0 : 0.00/hr) / Steel:2045 (Δ0 : 0.00/hr) / Bauxite:9563 (Δ0 : 0.00/hr) / Bucket:44 (Δ0 : 0.00/hr)
[2023-03-30 17:33:03] New kca_loop started
[2023-03-30 17:33:03] Fleets 3 and 4 ready for expedition.
[2023-03-30 17:33:05] At side menu
[2023-03-30 17:33:05] Going home.
[2023-03-30 17:33:06] Begin waiting for API payload(s).
[2023-03-30 17:33:07] Waiting for request 8615.667 (http://125.6.189.103/kcsapi/api_port/port)
[2023-03-30 17:33:07] Request 8615.667 received
[2023-03-30 17:33:07] Updating resource data from API.
[2023-03-30 17:33:07] Updating ship data from API.
[2023-03-30 17:33:07] Updating Repair data from API.
[2023-03-30 17:33:07] Updating fleet data from API.
[2023-03-30 17:33:08] Start receive expedetion
[2023-03-30 17:33:08] Start receive expedetion
[2023-03-30 17:33:11] At home
[2023-03-30 17:33:11] Navigating to expedition screen.
[2023-03-30 17:33:16] Begin waiting for API payload(s).
[2023-03-30 17:33:17] Waiting for request 8615.700 (http://125.6.189.103/kcsapi/api_get_member/mission)
[2023-03-30 17:33:17] Request 8615.700 received
[2023-03-30 17:33:18] Sending fleet 3 to expedition 5.
[2023-03-30 17:33:25] Selecting fleet 3.
[2023-03-30 17:33:27] Fleet 3 needs resupply.
[2023-03-30 17:33:30] Sending fleet 4 to expedition 6.
[2023-03-30 17:33:35] Selecting fleet 4.
[2023-03-30 17:33:38] Fleet 4 needs resupply.
[2023-03-30 17:33:40] kcauto has been running for 0d 0h 3m 32s (loop 4).
[2023-03-30 17:33:40] 0 Expeditions sent (0.00/hr) / 0 Expeditions received (0.00/hr)
[2023-03-30 17:33:40] Fleet 2 / On expedition / Returning at 2023-03-30 17:52:32
[2023-03-30 17:33:40] Fleet 3 / At base
[2023-03-30 17:33:40] Fleet 4 / At base
[2023-03-30 17:33:40] Active Scheduler rules:
[2023-03-30 17:33:40] Fuel:51027 (Δ0 : 0.00/hr) / Ammo:173181 (Δ0 : 0.00/hr) / Steel:2048 (Δ3 : 3.00/hr) / Bauxite:9564 (Δ1 : 1.00/hr) / Bucket:44 (Δ0 : 0.00/hr)
[2023-03-30 17:33:56] Terminated kcauto subprocess via GUI.

Config

{
	"general.jst_offset":	0,
	"general.interaction_mode":	"direct_control",
	"general.chrome_dev_port":	9222,
	"general.paused":	false,
	"passive_repair.enabled":	true,
	"passive_repair.repair_threshold":	1,
	"event_reset.enabled":	true,
	"event_reset.frequency":	3,
	"event_reset.reset_difficulty":	3,
	"event_reset.farm_difficulty":	2,
	"factory.enabled":	false,
	"factory.develop_recipe":	[10, 10, 10, 10],
	"factory.build_recipe":	[30, 30, 30, 30],
	"expedition.enabled":	true,
	"expedition.fleet_2":	[2],
	"expedition.fleet_3":	[5],
	"expedition.fleet_4":	[6],
	"pvp.enabled":	false,
	"pvp.fleet_preset":	1,
	"passive_repair.slots_to_reserve":	2,
	"combat.enabled":	false,
	"combat.sortie_map":	"1-1",
	"combat.fleet_mode":	"standard",
	"combat.node_selects":	[],
	"combat.retreat_points":	[],
	"combat.push_nodes":	[],
	"combat.node_formations":	[],
	"combat.node_night_battles":	[],
	"combat.retreat_limit":	4,
	"combat.repair_limit":	2,
	"combat.repair_timelimit_hours":	2,
	"combat.repair_timelimit_minutes":	0,
	"combat.check_fatigue":	true,
	"combat.lbas_groups":	[],
	"combat.lbas_group_1_nodes":	[],
	"combat.lbas_group_2_nodes":	[],
	"combat.lbas_group_3_nodes":	[],
	"combat.check_lbas_fatigue":	false,
	"combat.port_check":	false,
	"combat.clear_stop":	false,
	"combat.reserve_repair_dock":	true,
	"combat.fleet_presets":	[],
	"ship_switcher.enabled":	false,
	"ship_switcher.slots":	{
	},
	"scheduler.enabled":	true,
	"scheduler.rules":	[],
	"quest.enabled":	false,
	"quest.quests":	[]
}
@XVs32
Copy link
Owner

XVs32 commented Mar 30, 2023

Hi kevin,

The expedition module does not rely on resupply module,
instead, it resupply the fleet in expedition screen.

Although... you will have to finish a quest in order to do this.
I do agree it is not friendly enough for new players, I will give it a fix.

Edit: In the mean time, adding self.run_resupply_logic() in kcauto.py should help.
Like the following:

    def run_expedition_logic(self):
        if not exp.expedition.enabled:
            return False
/*
 Some code
*/
        if exp.expedition.fleets_are_ready:
            self.run_resupply_logic()                  /* Add This Line */
            nav.navigate.to('home')
            self.fast_check_for_expedition()
            exp.expedition.goto()
            exp.expedition.send_expeditions()
            sts.stats.set_print_loop_end_stats()

temp_resupply

@XVs32 XVs32 self-assigned this Mar 30, 2023
@kevin01523
Copy link
Author

ok works for now I'm getting another issue related to quests ill make a new issue for it later after i collect some logs.
well I'm not technically a new player i haven't played since they moved to html5 from flash soo...
well I'm still relearning stuff.

@XVs32 XVs32 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2024
@kevin01523
Copy link
Author

damn

@XVs32
Copy link
Owner

XVs32 commented Jan 22, 2024

Lol, I built the issue at #42, it is still on and I will finish it.
The priority of this thing is not that high so I keep putting it away, I am sorry about that T.T
But I will get it done, you have my word

@kevin01523
Copy link
Author

lol yeah saw that after i did reply here after poking a bit on the issues lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants