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

Does LoadScene() interrupt creating alarm? #218

Open
yalov opened this issue Jan 18, 2019 · 0 comments
Open

Does LoadScene() interrupt creating alarm? #218

yalov opened this issue Jan 18, 2019 · 0 comments

Comments

@yalov
Copy link

yalov commented Jan 18, 2019

This code works as expected (alarm is created in the CreateNewAlarm function)

Log("Alarm Is Not Found, Creating");
CreateNewAlarm(EditorLogic.fetch.ship.shipName, CalcAlarmTime());
//HighLogic.LoadScene(GameScenes.SPACECENTER);

but after uncommenting LoadScene() for exit from the Editor to KSC, exiting works, but Alarm is not created.
Log:

[LOG 20:54:01.794] SKA: OnLoadClick: STA
[LOG 20:54:01.799] SKA: Alarm Is Not Found, Creating
[LOG 20:54:01.806] SKA: New Alarm: V1 Space Craft, 4.62962962962963 days, ID: fd3baf9907de42f5b345f5139c5481cb
[LOG 20:54:01.834] 1/18/2019 8:54:01 PM,KerbalAlarmClock,AppLauncher: Destroying Button-Button Count:9
[LOG 20:54:01.836] ScaleModList: listSize 164 maxListSize 722
[LOG 20:54:01.838] [UIMasterController]: HideUI
[LOG 20:54:01.848] QuickStart(QPersistent)[2.16]: OnDestroy
[LOG 20:54:02.195] [HighLogic]: =========================== Scene Change : From EDITOR to SPACECENTER =====================
[LOG 20:54:02.196] 1/18/2019 8:54:02 PM,KerbalAlarmClock,Scene Change from 'EDITOR' to 'SPACECENTER'
[LOG 20:54:02.740] 1/18/2019 8:54:02 PM,KerbalAlarmClock,Destroying the KerbalAlarmClock-KACEditor
[LOG 20:54:02.740] 1/18/2019 8:54:02 PM,KerbalAlarmClock,API Cleaned up
[LOG 20:54:02.936] [AddonLoader]: Instantiating addon 'KACSpaceCenter' from assembly 'KerbalAlarmClock'
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

1 participant