Jump to content

jarpy

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by jarpy

  1. Sounds like great advice. I like your split approach, with separation of concerns between "game things" (commands, telemetry) and "computer things", (UDP sockets). Thanks for taking the time to look at my code; this is a nice place.
  2. Thanks Crzyrndm. Looking at your code, I'm starting to get the feeling that mine would be better implemented as a MonoBehaviour rather than a PartModule. So double-thanks for that.
  3. Hi, I have a working prototype for a part that sends and receives over UDP sockets: https://github.com/jarpy/OpenSpaceKontrol My current challenge is that it only works for the first vessel/flight of a game session. After that, I'm still holding the UDP sockets, so the next vessel can't bind to them. 'Would love to hear any suggestions for closing the sockets when the vehicle is destroyed or switched away. Is there a simple "OnNotFocussed" kind of method I'm missing? Or do I need to pull back and make my sockets part of a broader (non-part, non-vessel) context. Thanks very much for any help you can offer.
×
×
  • Create New...