Jump to content

Can lab copies or result transmissions be stopped mid way?


Recommended Posts

Here we are, and I'm days away from releasing an alpha...and of course one final, snarly problem comes up.  Two parts:

Is it possible to stop a lab copy that is mid-progress?  I've tried using

IEnumerator x = someLab.ProcessData(...);  myMonoBehaviour.StartCoroutine(x);

or

Coroutine x = myMonoBehaviour.StartCoroutine( someLab.ProcessData(...) );

either way, sometime later

myMonoBehaviour.StopCoroutine( x ) //doesn't stop it :-(

Neither seem to stop the lab process - progress prints keep streaming.  I can't use the string versions as I have to pass parameters to the coroutine itself function.

 

Is it possible to stop a result transmission?  I call ModuleDataTransmitter.StopTransmisison(), which does stop the transmit, but seems to leave the antenna in an unusable state afterward.  Further calls to ModuleDataTransmitter.TransmitData(...) do nothing.

 

PS - you folks have been really great, I wouldn't be about to release without you!  I literally have learned Unity and KSP from scratch via the hundreds of pages of guidance I've found here.  Grateful hugs for all!:)

Edited by SixHourDays
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...