Jump to content

how can you send this data directly to the server-krpc with a client?


funkheld

Recommended Posts

Hi good afternoon.
how can you send this data directly to the server-krpc with a client?

start this python program :

-------------------------------------------------

import time
import krpc

conn = krpc.connect(name='Sub-orbital flight',
       address='127.0.0.1',
       rpc_port=1000, stream_port=1001)
       
vessel = conn.space_center.active_vessel
ref_frame = conn.space_center.ReferenceFrame.create_hybrid(
    position=vessel.orbit.body.reference_frame,
    rotation=vessel.surface_reference_frame)

time.sleep(1)

while True:
    data =' '
    time.sleep(0.1)
    
conn.close()
 

---------------------------------------------------

then whis one client to send :

vessel.control.activate_next_stage ()

Thank you.
greeting

Edited by funkheld
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...