Kerbal Attachment System (KAS)

Kerbal Attachment System (KAS)

2M Downloads

KAS + IR menus not working

GokouZWAR opened this issue · 9 comments

commented

When you attach Infernal Robotics parts to ships the Mod parts are not able to be manipulated through the IR menus. They do not appear. Either they don't attach properly for the system to detect them or the mod doesn't understand that they are attached to the part i'm in.

Also when the part is detached it immediately snaps back to the ship (sometimes quite violently, causing explosions). This only appears to occur with IR parts as well as the IR enchanced models and rework parts.

I'm attempting to assemble a working robotic arm on a space station and a minmus base but without the ability for those parts to work post-launch it kinda defeats the purpose of KAS entirely. I want to be able to build the arm from scratch so i don't have to put a ferring on a launcher to bring the arm into space.

commented

InfernalRobotics module crash when the part is created.
Here is the log :

[LOG 21:54:39.943] [KIS] Create part & attach
[LOG 21:54:39.954] Parsing rect
[LOG 21:54:39.954] Parsing rect
[LOG 21:54:39.955] Parsing rect
[LOG 21:54:39.955] Parsing bool
[LOG 21:54:39.955] Parsing bool
[ERR 21:54:39.963] Actor::setLinearVelocity: Actor must be (non-kinematic) dynamic!

[ERR 21:54:39.963] Actor::setAngularVelocity: Actor must be (non-kinematic) dynamic!

[LOG 21:54:39.968] [KIS] CreatePart - Waiting initialization of the part...
[LOG 21:54:39.968] [KIS] StopPointer(pointer)
[LOG 21:54:39.971] IR: Loading sounds : MagicSmokeIndustries/Sounds/infernalRoboticMotor
[LOG 21:54:39.972] IR: Sound successfully loaded.
[EXC 21:54:39.972] NullReferenceException: Object reference not set to an instance of an object
InfernalRobotics.Module.MuMechToggle.BuildAttachments ()
InfernalRobotics.Module.MuMechToggle.OnStart (StartState state)
Part.ModulesOnStart ()
Part+��.MoveNext ()
[EXC 21:54:39.983] ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[FlightIntegrator+OcclusionData].get_Item (Int32 index)
FlightIntegrator.UpdateOcclusionSolar ()
FlightIntegrator.UpdateOcclusion ()
FlightIntegrator.FixedUpdate ()
...repeated in loop...

commented

Seem related to InfernalRobotics.
Don't know what I can do on my side.
I sent a PM to Sirkut to take a look on this.

commented

FYI: I've added some null checks, but ship still requires reloading after IR parts are attached for them to work properly. It is because we initialize transforms in OnStart method of our Modulue, but when the IR part is spawned by KIS it has no parent, so we cannot do this properly until the part is attached to the ship. Although once it is attached and you do switch from the ship to space centre and then back again everything seem to work properly.

commented

Update: Zodius proposed a good solution and I've implemented it in the latest build: the IR part that is not properly initialized (which happens when it is KIS attached) will start in Locked state and will try to re-initialize on unlock. I've tested with a couple test cases and it seems to work fine.

commented

Ok I'll give that a shot on my stream tonight and I'll see if that works. I've had some parts get offset from IR with some weird time warping so I'll move them and then try a reload to the space center to see if it'll work.

I think the biggest problem will be that mid flight the grouping doesn't get saved. On complex builds that could be an issue.

-GokouZWAR

On Jun 2, 2015, at 04:44, Stepan Andreev [email protected] wrote:

FYI: I've added some null checks, but ship still requires reloading after IR parts are attached for them to work properly. It is because we initialize transforms in OnStart method of our Modulue, but when the IR part is spawned by KIS it has no parent, so we cannot do this properly until the part is attached to the ship. Although once it is attached and you do switch from the ship to space centre and then back again everything seem to work properly.


Reply to this email directly or view it on GitHub.

commented

You'll need a fixed IR build to try, so you'll have to wait until 1.03 comes out (it is when we plan to release the update). You can edit IR groups in flight and they are saved.

commented

Ok will you let me know on this thread when it's officially out?

-GokouZWAR

On Jun 2, 2015, at 06:47, Stepan Andreev [email protected] wrote:

You'll need a fixed IR build to try, so you'll have to wait until 1.03 comes out (it is when we plan to release the update)


Reply to this email directly or view it on GitHub.

commented

Yes, no problem

commented

In the current state of KIS/KAS and IR they are incompatible. Making them work together is a dedicated huge task.