{"action":"created","issue":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1325","labels_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1325/labels{/name}","comments_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1325/comments","events_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1325/events","html_url":"https://github.com/KSP-KOS/KOS/issues/1325","id":123214702,"number":1325,"title":"boot script loading fails when not starting on archive.","user":{"login":"Dunbaratu","id":5216848,"avatar_url":"https://avatars.githubusercontent.com/u/5216848?v=3","gravatar_id":"","url":"https://api.github.com/users/Dunbaratu","html_url":"https://github.com/Dunbaratu","followers_url":"https://api.github.com/users/Dunbaratu/followers","following_url":"https://api.github.com/users/Dunbaratu/following{/other_user}","gists_url":"https://api.github.com/users/Dunbaratu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dunbaratu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dunbaratu/subscriptions","organizations_url":"https://api.github.com/users/Dunbaratu/orgs","repos_url":"https://api.github.com/users/Dunbaratu/repos","events_url":"https://api.github.com/users/Dunbaratu/events{/privacy}","received_events_url":"https://api.github.com/users/Dunbaratu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KSP-KOS/KOS/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-21T05:39:30Z","updated_at":"2015-12-21T20:10:44Z","closed_at":null,"body":"Once again I tried using the boot feature that never works.   I think it's because I'm running without START_ON_ARCHIVE set to true.  I'm using the default of starting on volume 1.  Are any of the people testing booting doing that?\r\n\r\nI have this in my archive:  `boot_std_launch.ks`.\r\n\r\nThe contents of boot_std_launch.ks is this:\r\n```\r\nwait until ship:unpacked.\r\nprint \"Unpacked. Now loading launch software.\".\r\ncopy launch.ks from 0.\r\ncopy launch_lib.ks from 0.\r\nrun launch.\r\n```\r\n\r\nNothing ever happens when I launch, and I get this message in the output_log:\r\n```\r\nkOS: Boot file \"boot_std_launch.ks\" is missing, skipping boot script\r\n```\r\nWhich is false.  It's there in the archive.\r\n\r\nIt's coming from this line in the mod, CPU.cs, line 116:\r\n```\r\nelse if (shared.VolumeMgr.CurrentVolume.GetByName(filename) == null) { SafeHouse.Logger.Log(string.Format(\"Boot file \\\"{0}\\\" is missing, skipping boot script\", filename)); }\r\n```\r\nIt's looking on CurrentVolume.  CurrentVolume is 1, not archive.  It's present on the archive, but it's not looking there, and never copies it from the archive to the local volume.\r\n"},"comment":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/comments/166405844","html_url":"https://github.com/KSP-KOS/KOS/issues/1325#issuecomment-166405844","issue_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1325","id":166405844,"user":{"login":"hvacengi","id":2975036,"avatar_url":"https://avatars.githubusercontent.com/u/2975036?v=3","gravatar_id":"","url":"https://api.github.com/users/hvacengi","html_url":"https://github.com/hvacengi","followers_url":"https://api.github.com/users/hvacengi/followers","following_url":"https://api.github.com/users/hvacengi/following{/other_user}","gists_url":"https://api.github.com/users/hvacengi/gists{/gist_id}","starred_url":"https://api.github.com/users/hvacengi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvacengi/subscriptions","organizations_url":"https://api.github.com/users/hvacengi/orgs","repos_url":"https://api.github.com/users/hvacengi/repos","events_url":"https://api.github.com/users/hvacengi/events{/privacy}","received_events_url":"https://api.github.com/users/hvacengi/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T20:10:44Z","updated_at":"2015-12-21T20:10:44Z","body":"Do you mean that you're launching by clicking on the launch pad instead of going through the VAB?  I have not tried that specific scenario myself, I've only tried it from the VAB.\r\n\r\nIt is possible that the InitObjects is being called too early, though it seems like it would be a more widespread issue in that instance.  We call that method from inside `OnStart`.  Do we know if `OnStart occurs before or after `OnLoad`?"}}