Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible misbehaviour on a still unknown Add'On with KSP-Recall #44

Open
Lisias opened this issue May 18, 2022 · 13 comments
Open

Possible misbehaviour on a still unknown Add'On with KSP-Recall #44

Lisias opened this issue May 18, 2022 · 13 comments
Assignees
Labels
support support (no bug)

Comments

@Lisias
Copy link
Contributor

Lisias commented May 18, 2022

Fellow Kerbonaut hugoraider is being screwed by what appears to be a misbehaviour triggered by an unholy interaction between KSP-Recall and (probably) B9PS.

The problems happens only when merging an existent craft into the current one. The misbehaviour is remarkably similar to what happens when AttachedOnEditor is needed but it's absent:

rf2dkER

Craft file: Vega 3.craft.zip

This craft needs:

  • Bluedog DB
  • Conformal Decals
  • New Tantares
  • Tantares
  • Tantares LV
  • Tantares SAF
  • Tantares SP
  • Gemstone LV (not sure)

Most dependencies weren't installed (on purpose). Only Shabby (and 0Harmony), due Conformal Decals, were installed while reproducing the problem as below:

screenshot59

What more or less matches the screen shot provided by the user.

Mission: Search and Destroy (the bug)

@Lisias Lisias added Not My Fault Not my Fault! I'm innocent! :) support support (no bug) labels May 18, 2022
@Lisias Lisias self-assigned this May 18, 2022
@Lisias Lisias removed the Not My Fault Not my Fault! I'm innocent! :) label May 18, 2022
@Lisias
Copy link
Contributor Author

Lisias commented May 18, 2022

Removing Not My Fault as it's too soon to be sure about. (added it by accident)

@Lisias
Copy link
Contributor Author

Lisias commented May 18, 2022

It worths to be mentioned that the Attaching Nodes are completely missing on the merging craft - what apparently suggests that B9PS was the one initialising them - what suggests we have a problem similar to the one on Procedural Parts ( #41 ).

@Lisias
Copy link
Contributor Author

Lisias commented May 19, 2022

Found something weird. With all the mentioned add'ons installed (with all the dependencies), I found that the problem I detected on my rig was due this exception:

[LOG 09:32:53.539] [KSP-Recall.AttachedOnEditor] TRACE: RestoreCurrentAttachmentPoints for <NO VESSEL>-HeatShield0:FFE5DB88
[EXC 09:32:53.541] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
        System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef4317
        System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <9577ac7a62ef43179789031239ba8798>:0)
        KSP_Recall.AttachedOnEditor.AttachedOnEditor.RestoreCurrentAttachmentNodes () (at <4fcb81485a754384981c83d6e7a0fc8d>:0)
        KSP_Recall.AttachedOnEditor.AttachedOnEditor.RestoreAttachments () (at <4fcb81485a754384981c83d6e7a0fc8d>:0)
        KSP_Recall.AttachedOnEditor.AttachedOnEditor.Update () (at <4fcb81485a754384981c83d6e7a0fc8d>:0)
        UnityEngine.DebugLogHandler:LogException(Exception, Object)
        KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
        UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Happening where AttachedOnEditor was working on the HeatShield0. But this part is a Stock one, and once I removed all that add'ons, this part behave while merging a craft with it.

So we have someone screwing up things here. And it's not me.

@Lisias
Copy link
Contributor Author

Lisias commented May 19, 2022

It's weird and almost surely unrelated.

I edited the craft file to replace HeatShield0 with HeatShield1 (this last part doens't borks), but the problem remains. So this NRE is not causing neither affecting the problem.

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

On the other hand…. A huge crapload of Exceptions are being thrown by the Part Loader:

KSP.log.zip

Let's remove the affected parts and see what happens...

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

So, I removed the following directories

  • GameData/Tantares/parts/z_deprecated_3
  • GameData/Tantares/parts/z_deprecated_4
  • GameData/Tantares/parts/z_deprecated_5
  • GameData/Tantares/parts/z_deprecated_6
  • GameData/Tantares/parts/z_deprecated_7
  • GameData/Tantares/parts/z_deprecated_8
  • GameData/Tantares/parts/z_deprecated_9

as well also:

  • Tantares/parts/core_pirs/_mira_crew_s1_1.cfg
  • Tantares/parts/core_polyus/_rotanev_aeroshell_s2_1.cfg
  • TantaresSP/parts/core_ye8/_ye8_solar_s1_1/ye8_solar_s1_1

Not all z_deprecated parts were at fault, but a huge load of them were, so I took some shortcuts in order to hush the diagnosis. I removed them all. :)

But yet, nothing changes. The problem is still there. :(

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

Oukey, with the KSP.log clean from Exceptions, now I gone to the good and old Trial and Error.

And found that Tantares/parts/code_almaz/_grus_crew_s2_s1p5_1/grus_crew_s2_s1p5_1, Grus Size 1.5 Fuselafe, is the one borking on me.

screenshot60

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

Found another one that causes problems: Tantares/parts/code_almaz/_grus_adapter_s2_s1p5_1/grus_adapter_s2_s1p5_1, Grus Size 2 to Size 1 Adapter.

screenshot61

Interesting enough, these two parts has fairings by ModuleProceduralFairing. I may had find a pattern.

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

Oukey. So I removed SimpleAdjustableFairings and B9PartSwitch (as it complained about SAF) to see what happens.

Unsurprisingly, same problem. Whatever is happening, apparently is related to ModuleProceduralFairing.

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

So, it's related somehow to ModuleProceduralFairing, and now I need to check if it's something related to AttachedOnEditor interacting with it, or if it's something wrong with the "Grus" parts on Tantares.

So I made this craft :

screenshot64

Using a Fairing as root. merge test.craft.zip

And it was merged all right:

screenshot62

Variations of the merge test craft worked as well, as long all the parts involved were stock.

screenshot65

So, no. There's no conflict between AttachedOnEditor and ModuleProceduralFairing.

So whatever is happening, is on Tantares for sure.

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

Temporary workaround: [EDIT: DIDN'T WORKED]

GameData/__LOCAL/KSP-Recall/Tantares.cfg

@PART[grus*]:HAS[@MODULE[ModuleProceduralFairing]]:FINAL
{
	-MODULE[AttachedOnEditor],* { }
	-MODULE[TweakScale],* { }
}

@Lisias
Copy link
Contributor Author

Lisias commented May 20, 2022

I bluntly removed every part that was throwing an Exception on KSP.log, no matter how silly was the Exception or where.

I removed AttachedOnEditor and TweakScale from the affected parts (the Grus thingies with ModuleProceduralFairing.

Tailored a simplified version of the test craft. Vega 3 kpado.craft.zip

And got this:
screenshot66

Conclusion: The AttachedOnEditor is needed on the affected parts, otherwise we see the parts scattered around as demonstrated by the screenshot. But something broken on some Tantares parts (and there are a lot of broken parts, as it appears) is screwing up with KSP-Recall.

Exactly what I'm unsure if I should purse, because it's not up to me to fix every single broken AddOn on the face of Kerbin.

@Lisias
Copy link
Contributor Author

Lisias commented Mar 23, 2024

I think this may be related to #66 too (crafts appears to be rerooted before being merged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support support (no bug)
Projects
None yet
Development

No branches or pull requests

1 participant