I've downloaded the mod yesterday to create a custum controler but i get stuck on connecting to ksp.
Gameversion 1.3.0.1804 since mod is not for 1.3.1 on curse
Python krpc version 0.4.0
Python version 3.6.3
If I run the following python code:
import krpc
conn = krpc.connect(
name='My Example Program',
address='127.0.0.1',
rpc_port=50000, stream_port=50001)
print(conn.krpc.get_status().version)
The script keeps on running and wont ever make a connection, when i interrupt the program I get the following traceback:
Traceback (most recent call last):
File "krpcTest.py", line 5, in <module>
rpc_port=50000, stream_port=50001)
File "C:\Users\Robin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\krpc\__init__.py", line 31, in connect
response = rpc_connection.receive_message(ConnectionResponse)
File "C:\Users\Robin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\krpc\connection.py", line 35, in receive_message
data += self.partial_receive(1)
"C:\Users\Robin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\krpc\connection.py", line 78, in partial_receive
return self._socket.recv(length)
KeyboardInterrupt
If the server is not running when i try to connect it returns right away so it knows what the server is. From testing I found that changing the ip ingame and in the script does not matter. Also connecting without parameters does not make a difference.
Eny tutorial or forum post that i could find assumes the step above just works...
I hope there is a simple solution or something obvious I am missing.
Thanks in advance!
Ps. the image of krcp is broken on my version, does that have to do something with it?