Giter VIP home page Giter VIP logo

Comments (6)

Genhis avatar Genhis commented on August 22, 2024

Can you access other kRPC services in C-nano/SerialIO, such as SpaceCenter? If so, please post a log file and a time (HH:MM) when you tried to access the MechJeb service. You can find the log file KSP.txt in KerbalSpaceProgram directory.

from krpc.mechjeb.

green-codes avatar green-codes commented on August 22, 2024

Now this is strange, I just managed to connect to MechJeb via C-nano in one game scene, but now I lost it again. I'm still trying to find out the exact sequence that reproduces the successful connection.

Also sorry for not including the logs before, got some bad pointers on where the log file is (EDIT: pardon the pun). Here are the errors:

[LOG 10:07:58.177] [KRPC.MechJeb] Initializing MechJeb instance...
[ERR 10:07:58.179] [KRPC.MechJeb] No instance of ManeuverPlanner found

[EXC 10:07:58.179] TargetException: Non-static field requires a target
System.Reflection.MonoField.GetValue (System.Object obj)
KRPC.MechJeb.Maneuver.Operation.InitInstance (System.Type t)
KRPC.MechJeb.MechJeb+<>c.b__6_0 (System.Type t)
AssemblyLoader+LoadedAssembly.TypeOperation (System.Action1 action) AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action1 action)
KRPC.MechJeb.MechJeb.InitInstance ()
KRPC.MechJeb.InitInstance.Start ()

And thanks for your time!

from krpc.mechjeb.

green-codes avatar green-codes commented on August 22, 2024

Okay, interesting thing, I can connect to KRPC.MechJeb as long as I have a MechJeb (AR202) control module on the ship, but not when I'm using the "MechJeb and Engineer for all!" mod. I'm guessing this is not something you can help with?

from krpc.mechjeb.

Genhis avatar Genhis commented on August 22, 2024

Isn't MechJeb included in all command modules (manned and unmanned) by default? I mean, I don't need any mod to use MechJeb without AR202 case.

from krpc.mechjeb.

green-codes avatar green-codes commented on August 22, 2024

I removed the old mod and the problem seems to persist.

(MAJOR EDIT: was inaccurate) This is how to reproduce the error: restart game, then load a ship straight from stock. I get the following error in the meantime:

[EXC 11:01:28.288] NullReferenceException: Object reference not set to an instance of an object
KRPC.Server.SerialIO.ByteServer.Update ()
KRPC.Server.Message.RPCServer.Update ()
KRPC.Core.RPCServerUpdate ()
KRPC.Core.Update ()
KRPC.Addon.FixedUpdate ()

If I revert and load the same ship again, the error goes away.

from krpc.mechjeb.

green-codes avatar green-codes commented on August 22, 2024

Well, in all honesty you don't really need to look into this anymore, as I now know exactly how to circumvent the problem. Sorry for all the fuss and have a good day!

from krpc.mechjeb.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.