Page 1 of 1

virtual Ship class shows up in main menu

Posted: Thu Oct 17, 2013 12:16 am
by Aury
quite simply I was getting one of my modded virtual ships (used as a controller for some modded shields) showing up in the main menu

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 2:04 am
by george moromisato
Wolfy wrote:quite simply I was getting one of my modded virtual ships (used as a controller for some modded shields) showing up in the main menu
Looking at the code, the intro skips any ships with virtual="true". Not sure how it could happen.

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 4:42 am
by Aury
I figured it out - they were shield event controllers getting spawned. They have code to delete themselves if the parent ship dies, but theres a small window of time that that they can be selected

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 4:42 am
by Aury
Is there a way to simply prevent the intro screen from selecting them?

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 2:30 pm
by george moromisato
Wolfy wrote:Is there a way to simply prevent the intro screen from selecting them?
Can you suspend the ship?

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 2:33 pm
by Aury
How would that work? It just needs to be able to run timer events.

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 3:10 pm
by george moromisato
Wolfy wrote:How would that work? It just needs to be able to run timer events.
Try calls objSuspend when you create the object. I believe the timers will still work (but try it and see). The intro screen ignores suspended objects.

Re: virtual Ship class shows up in main menu

Posted: Tue Oct 22, 2013 4:39 pm
by Aury
Yes, the timers still seem to work - thanks!