{"action":"created","issue":{"url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/102","labels_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/102/comments","events_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/102/events","html_url":"https://github.com/mrmin123/kancolle-auto/issues/102","id":127082687,"number":102,"title":"Troubleshooting error","user":{"login":"Aftersky","id":15979245,"avatar_url":"https://avatars.githubusercontent.com/u/15979245?v=3","gravatar_id":"","url":"https://api.github.com/users/Aftersky","html_url":"https://github.com/Aftersky","followers_url":"https://api.github.com/users/Aftersky/followers","following_url":"https://api.github.com/users/Aftersky/following{/other_user}","gists_url":"https://api.github.com/users/Aftersky/gists{/gist_id}","starred_url":"https://api.github.com/users/Aftersky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aftersky/subscriptions","organizations_url":"https://api.github.com/users/Aftersky/orgs","repos_url":"https://api.github.com/users/Aftersky/repos","events_url":"https://api.github.com/users/Aftersky/events{/privacy}","received_events_url":"https://api.github.com/users/Aftersky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-17T08:55:28Z","updated_at":"2016-01-17T11:13:51Z","closed_at":null,"body":"The script crash every time an expedition fleet returns and I'm not sure what the cause is. \r\n\r\n```\r\n\u001B[94m[2016-01-17 17:28:15] Focus on KanColle!\u001B[0m\r\n[log] App.focus Google Chrome(0) #0\r\n\u001B[92m[2016-01-17 17:28:26] At Home!\u001B[0m\r\n\u001B[94m[2016-01-17 17:28:26] Checking for returning expeditions!\u001B[0m\r\n\u001B[94m[2016-01-17 17:28:26] Are there returning expeditions to receive?\u001B[0m\r\n[log] CLICK on L(775,368)@S(0)[0,0 1366x768]\r\n[log] CLICK on L(721,502)@S(0)[0,0 1366x768]\r\n[error] script stopped with error in line 375\r\n[error] UnboundLocalError ( local variable 'fleet_id' referenced before assignme\r\nnt )\r\n[error] --- Traceback --- error source first\r\nline: module ( function ) statement\r\n95: main (  check_expedition )     log_success(\"Yes, fleet %s has returned!\" % f\r\nleet_id)\r\n66: main (  go_home )     if check_expedition():\r\n194: main (  sortie_action )     go_home()\r\n367: main (  init )     sortie_action()\r\n367: main (  init )     sortie_action()\r\n[error] --- Traceback --- end --------------\r\n```\r\n\r\nI've tried the script on 2 different machines with Win10/Jre8 and XP/Jre7, both get this error. The connection is stable and sleep time is default value. Any help would be appreciated!"},"comment":{"url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/comments/172314753","html_url":"https://github.com/mrmin123/kancolle-auto/issues/102#issuecomment-172314753","issue_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/102","id":172314753,"user":{"login":"mrmin123","id":4326866,"avatar_url":"https://avatars.githubusercontent.com/u/4326866?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmin123","html_url":"https://github.com/mrmin123","followers_url":"https://api.github.com/users/mrmin123/followers","following_url":"https://api.github.com/users/mrmin123/following{/other_user}","gists_url":"https://api.github.com/users/mrmin123/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmin123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmin123/subscriptions","organizations_url":"https://api.github.com/users/mrmin123/orgs","repos_url":"https://api.github.com/users/mrmin123/repos","events_url":"https://api.github.com/users/mrmin123/events{/privacy}","received_events_url":"https://api.github.com/users/mrmin123/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T11:13:51Z","updated_at":"2016-01-17T11:13:51Z","body":"@Aftersky My guess is that you don't have the default names for your expedition fleets (第2艦隊, 第3艦隊, and 第4艦隊). If this is the case, you have two choices:\r\n\r\n1. Rename your expedition fleets back to what's listed above\r\n2. Update and replace `returned_fleet2.png`, `returned_fleet3.png`, and `returned_fleet4.png` in the base `kancolle_auto.sikuli` folder with updated screenshots from your own kancolle game. The region I recommend are here, outlined in red (you can use the existing images as a guide, if you're unsure):\r\n![image](https://cloud.githubusercontent.com/assets/4326866/12377163/e6e79b02-bcc7-11e5-96fc-ef37300afa54.png)\r\n(random google image searched image...)\r\n\r\nIf your expedition fleets have the default names and kancolle auto is still crashing, please let me know."}}