Jump to content

Thazaarak

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Thazaarak

  1. Hello everybody ! I am working on a personal project using kRPC, and after the new KSP update, I tried to install kRPC 0.4 but it's not working properly so far... The thing, I don't really know what I am doing and I think I may have messed things up a bit. Before the new KSP update, I managed to make kRPC work but in fact I don't really know why, and I think that it may be the reasons I am not able to reproduce it now haha. So, as every mod, I unzipped it, and put the kRPC folder in the GameData folder of KSP, next to the Squad one. But what am I supposed to do with the client, schema and all these other files ? I tried different things with them, but I really didn't know what I was doing. I am using python 3.6.2 and I was already using it before the update. When I run this script in my python environment : import sys import krpc import google.protobuf print(sys.version_info) print(krpc.__version__) print(google.protobuf.__version__) I can read that in my shell : Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) on Windows (64 bits). This is the Pyzo interpreter with integrated event loop for TK. Type 'help' for help, type '?' for a list of *magic* commands. Running script: "C:\Users\Nico\Desktop\My KSP Project\test_config.py" sys.version_info(major=3, minor=6, micro=2, releaselevel='final', serial=0) 0.3.9 3.3.0 When I am trying to connect to the server using these two lines of code : import krpc conn = krpc.connect(name='Sub-orbital flight') I get : Traceback (most recent call last): File "<console>", line 1, in <module> File "c:\users\nico\appdata\local\programs\python\python36\lib\site-packages\krpc\__init__.py", line 36, in connect assert ok_message == Decoder.OK_MESSAGE AssertionError Of course I added a new server and started it before running these two lines in my python environment... What am I missing ? Do you have a more detailed tutorial somewhere ? I am a bit lost... Thanks for your time and for this awesome mod!
×
×
  • Create New...