blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

"Serious Warning" on startup - "Subtype has no name: PartSubtype" #113

Closed AndersDotExe closed 5 years ago

AndersDotExe commented 5 years ago

When launching the game, I get this warning:

b9 serious warning

The game does seem to function fine after loading, however.

Relevant portion of the log file:

PartLoader: Compiling Part 'NearFutureConstruction/Parts/Truss/truss-spinal/truss-spinal-01/truss-spinal-01'

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

DontDestroyOnLoad only work for root GameObjects or components on root GameObjects.

(Filename: Line: 481)

Warning on PartSubtype: Subtype has no name

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Warning on PartSubtype: Subtype has no name

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Warning on PartSubtype: Subtype has no name

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

DontDestroyOnLoad only work for root GameObjects or components on root GameObjects.

(Filename: Line: 481)

[ERROR] [Part truss-spinal-01] [ModuleB9PartSwitch 'meshSwitch3'] Duplicate subtype names detected: System.String[]

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Warning on PartSubtype: Subtype has no name

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Warning on PartSubtype: Subtype has no name

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Warning on PartSubtype: Subtype has no name

I can provide the full log if you want it, should I also bring this up with NearFutureConstuction?

blowfishpro commented 5 years ago

This is intended. It's bad data that should be fixed and could potentially break something (even if it's not apparent that something is broken). As far as I know it's already being fixed in Near Future.

TangentFoxy commented 9 months ago

My install of CKAN just reinstalled Near Future Construction and now this bug is appearing, except it doesn't specify a part. I've narrowed it down to that mod afaik by uninstalling and reinstalling it - this only appears with Near Future Construction installed - but that mod hasn't been updated since December 2020, so I don't understand how it just broke on an install that was only created less than a week ago.

I have no idea how to work out what's going on.

The log has [ERR 01:33:03.858] [ERROR] [Part truss-spinal-01] [ModuleB9PartSwitch 'meshSwitch3'] Duplicate subtype names detected: with a blank line following it, so it seems similar.

Edit: Unfortunately, I do not remember how I fixed this, but after uninstalling and reinstalling mods and restarting a handful of times, it disappeared. No idea how or why.