Jump to content

Science problem


Recommended Posts

I am looking to make a modification to science using remote tech that will disallow the sending of research of you are not in contact with KSC (for now) and later if you dont have a relay.

I am not very experienced in coding, but can stumble my way around some code. The advice I am looking for is this.

Where would I look to find the bit of code that handles transmitting research, and, (this part I am pretty sure of) would it possble to interrupt it with a "if (relay_available == false) { do_nothing}"?

I can figure out how to go about it, I think, but I mostly need help in finding where I would want to make changes.

Any help would be appreciated, thank you!

Link to comment
Share on other sites

Well, ModuleDataTransmitter is responsible for transmitting data, so you either are able to work with it (might work via StopTransmission, but shouldn't looks that awesome) or have to implement such a PartModule yourself... nope, it doesn't look easy.

Link to comment
Share on other sites

Well, ModuleDataTransmitter is responsible for transmitting data, so you either are able to work with it (might work via StopTransmission, but shouldn't looks that awesome) or have to implement such a PartModule yourself... nope, it doesn't look easy.

Yeah not even a bit. I might have to find some help for this :P I did however get all of the RT parts to be tech tree friendly, so I got one part of my goal down... but thats the easy part.

Someone mentioned a method CanTransmit(), that may or may not be of use, but I have no idea where to find it. Anyone know?

Link to comment
Share on other sites

ModuleDataTransmitter implements IScienceDataTransmitter, where we have a CanTransmit(). You could re-implement that interface... but since ModuleDataTransmitter's CanTransmit implementation isn't virtual, so all ModuleDataTransmitter internal calls to this function would still use these original implementation. Sure you can try it, but you better expect some weird issues. IScienceDataTransmitter.TransmitData might be worth a try as well. But that still does not necessarily interrupt an ongoing transmission.

Link to comment
Share on other sites

  • 2 weeks later...
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...