01010101lzy

[Plugin][See active fork] B9 Procedural Parts Modified

Recommended Posts

5 hours ago, Crzyrndm said:

@01010101lzy I have only a single mention of EditorLogic.SortedShipList, and it's not anywhere near onload so I don't know why this would surface from a merge. If it's neccesary for something, just add a scene check (HighLogic.LoadedSceneIsEditor) so it oesn't run outside the editor

Got it, I'll try to fix this.

 

11 hours ago, Tanit said:

Hello everyone. I Installed the mod and it doesn't seem to work properly in 1.1.2 (i have 1.1.2.1260). The 3 parts do show up in the SPH, but no J menu, no B9 toolbar, etc.

By the way it works perfectly in 1.1 :P

Here's a screenshot :

  Reveal hidden contents

Do you need/want the log file?

I can't make it working in 1.1.2 either. I'm trying to fix it, but bugs appear at all times. If some errors do appear in the debug log, you can post it here.

Share this post


Link to post
Share on other sites

Oh i forgot to tell you, I use the 2.6 version (and i manually fixed the control surface thing), because version 3.0 files look kind of weird when I open them in notepad to edit them :P This works well in 1.1 as I said.

Here's the log, i removed all the parts that seemed normal :

Spoiler

AssemblyLoader: Loading assemblies
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Non platform assembly: C:\Users\Tanit\Desktop\Jeux\Kerbal Space Program v1.1.2.1260\GameData

\ModuleManager.2.6.25.dll (this message is harmless)
Non platform assembly: C:\Users\Tanit\Desktop\Jeux\Kerbal Space Program v1.1.2.1260\GameData

\B9_Aerospace_ProceduralWings\Plugins\B9_Aerospace_WingStuff.dll (this message is harmless)
AssemblyLoader: Exception loading 'B9_Aerospace_WingStuff': System.Reflection.ReflectionTypeLoadException: The

classes in the module cannot be loaded.  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) 

at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0   at AssemblyLoader.LoadAssemblies ()

[0x00000] in <filename unknown>:0

Additional information about this exception:

 System.TypeLoadException: Could not load type 'WingProcedural.WingProcedural' from assembly

'B9_Aerospace_WingStuff, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

 System.TypeLoadException: Could not load type '<>c' from assembly 'B9_Aerospace_WingStuff, Version=1.0.0.0,

Culture=neutral, PublicKeyToken=null'.

 System.TypeLoadException: Could not load type '<SetupReorderedForFlight>d__246' from assembly

'B9_Aerospace_WingStuff, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

 System.TypeLoadException: Could not load type '<updateAeroDelayed>d__294' from assembly 'B9_Aerospace_WingStuff,

Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)


===============================================================


Resource RESOURCE_DEFINITION added to database
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

[ModuleManager] Post run call threw an exception in loading B9_Aerospace_WingStuff, Version=1.0.0.0,

Culture=neutral, PublicKeyToken=null: System.Reflection.ReflectionTypeLoadException: The classes in the module

cannot be loaded.  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)  at

System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0   at ModuleManager.MMPatchLoader

+<ProcessPatch>d__45.MoveNext () [0x00000] in <filename unknown>:0
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

[ModuleManager] Ran in 3.546s

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

PartLoader: Creating part database
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Compiling Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeA/B9_Aero_Wing_Procedural_TypeA'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

EffectList: Created 11 effect types
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'WingProcedural'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'ModuleCrossFeed'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeA/B9_Aero_Wing_Procedural_TypeA' has

no database record. Creating.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

DragCubeSystem: Creating drag cubes for part 'B9.Aero.Wing.Procedural.TypeA'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Compiling Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeB/B9_Aero_Wing_Procedural_TypeB'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'WingProcedural'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeB/B9_Aero_Wing_Procedural_TypeB' has

no database record. Creating.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

DragCubeSystem: Creating drag cubes for part 'B9.Aero.Wing.Procedural.TypeB'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Compiling Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeC/B9_Aero_Wing_Procedural_TypeC'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'WingProcedural'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeC/B9_Aero_Wing_Procedural_TypeC' has

no database record. Creating.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

DragCubeSystem: Creating drag cubes for part 'B9.Aero.Wing.Procedural.TypeC'

 

Share this post


Link to post
Share on other sites

@CrzyrndmGot the bug fixed. I have placed the mirror check in the wrong place...

----

One more bug spotted: when clicking the Launch button, the plugin failed on vesselList.FirstOrDefaults(vs => vs.vessel == vessel).isUpdated = false and freezes the game. Any idea about it?

Edited by 01010101lzy

Share this post


Link to post
Share on other sites

That really should be blocked in the editor as well. It's only used for flight setup stuff

Share this post


Link to post
Share on other sites
On ‎2016‎年‎5‎月‎21‎日 at 3:49 PM, Tanit said:

Oh i forgot to tell you, I use the 2.6 version (and i manually fixed the control surface thing), because version 3.0 files look kind of weird when I open them in notepad to edit them :P This works well in 1.1 as I said.

Here's the log, i removed all the parts that seemed normal :

  Reveal hidden contents

AssemblyLoader: Loading assemblies
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Non platform assembly: C:\Users\Tanit\Desktop\Jeux\Kerbal Space Program v1.1.2.1260\GameData

\ModuleManager.2.6.25.dll (this message is harmless)
Non platform assembly: C:\Users\Tanit\Desktop\Jeux\Kerbal Space Program v1.1.2.1260\GameData

\B9_Aerospace_ProceduralWings\Plugins\B9_Aerospace_WingStuff.dll (this message is harmless)
AssemblyLoader: Exception loading 'B9_Aerospace_WingStuff': System.Reflection.ReflectionTypeLoadException: The

classes in the module cannot be loaded.  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) 

at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0   at AssemblyLoader.LoadAssemblies ()

[0x00000] in <filename unknown>:0

Additional information about this exception:

 System.TypeLoadException: Could not load type 'WingProcedural.WingProcedural' from assembly

'B9_Aerospace_WingStuff, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

 System.TypeLoadException: Could not load type '<>c' from assembly 'B9_Aerospace_WingStuff, Version=1.0.0.0,

Culture=neutral, PublicKeyToken=null'.

 System.TypeLoadException: Could not load type '<SetupReorderedForFlight>d__246' from assembly

'B9_Aerospace_WingStuff, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

 System.TypeLoadException: Could not load type '<updateAeroDelayed>d__294' from assembly 'B9_Aerospace_WingStuff,

Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)


===============================================================


Resource RESOURCE_DEFINITION added to database
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

[ModuleManager] Post run call threw an exception in loading B9_Aerospace_WingStuff, Version=1.0.0.0,

Culture=neutral, PublicKeyToken=null: System.Reflection.ReflectionTypeLoadException: The classes in the module

cannot be loaded.  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)  at

System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0   at ModuleManager.MMPatchLoader

+<ProcessPatch>d__45.MoveNext () [0x00000] in <filename unknown>:0
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

[ModuleManager] Ran in 3.546s

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

PartLoader: Creating part database
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Compiling Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeA/B9_Aero_Wing_Procedural_TypeA'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

EffectList: Created 11 effect types
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'WingProcedural'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'ModuleCrossFeed'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeA/B9_Aero_Wing_Procedural_TypeA' has

no database record. Creating.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

DragCubeSystem: Creating drag cubes for part 'B9.Aero.Wing.Procedural.TypeA'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Compiling Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeB/B9_Aero_Wing_Procedural_TypeB'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'WingProcedural'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeB/B9_Aero_Wing_Procedural_TypeB' has

no database record. Creating.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

DragCubeSystem: Creating drag cubes for part 'B9.Aero.Wing.Procedural.TypeB'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Compiling Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeC/B9_Aero_Wing_Procedural_TypeC'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

Cannot find a PartModule of typename 'WingProcedural'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

PartLoader: Part

'B9_Aerospace_ProceduralWings/Parts/Aero_Wing_Procedural/wing_procedural_typeC/B9_Aero_Wing_Procedural_TypeC' has

no database record. Creating.
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

DragCubeSystem: Creating drag cubes for part 'B9.Aero.Wing.Procedural.TypeC'

 

0.2.6 doesn't have 1.1 support, and that's the point. Please wait a few days until I release 0.3.2.

Share this post


Link to post
Share on other sites

Oh damn my save folder is blank....

Edited by 01010101lzy

Share this post


Link to post
Share on other sites

Hello it's me again :) I found some bugs.

The wing configuration (change fuel in wing) doesn't work. It seems to work, but it doesn't update the part. Also thanks to you, I could build my Yak-like fighter. Thank you for all that you do :wink:

Spoiler

8CDNN8D.png

Also another bug, the wing parameters didn't show up properly in the J menu. It happened on only two of the procedural wings (on the dozens on that aircraft) after I loaded it today. Replacing the two parts fixed it. Don't know if it's related, but the game had crashed just before that.

Spoiler

ff6SeVx.png

 

Share this post


Link to post
Share on other sites
22 minutes ago, Tanit said:

Hello it's me again :) I found some bugs.

The wing configuration (change fuel in wing) doesn't work. It seems to work, but it doesn't update the part. Also thanks to you, I could build my Yak-like fighter. Thank you for all that you do :wink:

  Hide contents

8CDNN8D.png

Also another bug, the wing parameters didn't show up properly in the J menu. It happened on only two of the procedural wings (on the dozens on that aircraft) after I loaded it today. Replacing the two parts fixed it. Don't know if it's related, but the game had crashed just before that.

  Reveal hidden contents

ff6SeVx.png

 

Hotfixed the first bug just now, check it out in the 1st page.

For the second bug, I have no idea about how the two things are related, but if that fixing method works well, keep using it until I find a better way.

Share this post


Link to post
Share on other sites
4 hours ago, xD-FireStriker said:

Hey @01010101lzy i am a little confused is this a mod for b9 p-wings or a fork of b9 p-wing lol.

Thanks FireStriker

xD

 

This is a fork of B9 PWings, and also a modified version of it.

Share this post


Link to post
Share on other sites

I'd really like to see one feature, not sure if you know the airfoil maker for X-plane 10, but not only you can shape the wing like your awesome mod does, it can edit the airfoil's profile, so it doesn't look like a plank and looks more like a actual wing, that would be awesome.

BTW thanks for the awesome work.

Share this post


Link to post
Share on other sites
20 hours ago, Fox Loco said:

I'd really like to see one feature, not sure if you know the airfoil maker for X-plane 10, but not only you can shape the wing like your awesome mod does, it can edit the airfoil's profile, so it doesn't look like a plank and looks more like a actual wing, that would be awesome.

BTW thanks for the awesome work.

There's so much work involved in doing that that it'd be a new mod, aside from perhaps borrowing the texturing/shader. This one relies on the model being constructed in a particular way, and that's basically the heart of the mod. As you might gather I've looked at this already ( I've been wanting to actually do it since the original pWings arrived ) and if I get free time I'd quite like to actually build the mod, but I don't think it's something easily jammed into this one.

Edited by Van Disaster

Share this post


Link to post
Share on other sites
15 hours ago, Van Disaster said:

There's so much work involved in doing that that it'd be a new mod, aside from perhaps borrowing the texturing/shader. This one relies on the model being constructed in a particular way, and that's basically the heart of the mod. As you might gather I've looked at this already ( I've been wanting to actually do it since the original pWings arrived ) and if I get free time I'd quite like to actually build the mod, but I don't think it's something easily jammed into this one.

Thanks for the answer.

Yeah i tought so, it would be hard work, i imagine a mod doing that as a third part program, so you create the wing and import it to the game, not sure if that would ease things...

i'd really like to help in anyway i can, when you get a free time for it.

 

 

Share this post


Link to post
Share on other sites
On 2016/5/31 at 1:07 PM, xD-FireStriker said:

Hey @01010101lzy i have chosen to try out your fork, what version would i download if i want to instal it into a 1.0.5 save.

Thanks FireStriker

xD

0.2.5.1 should do, but there's plenty of bugs in that version. Try to use KSP 1.1 if you can.

Share this post


Link to post
Share on other sites

I have version 3.2 and the wings go from .125 to 16 length nothing in between. Is this intended? I have been using B9 procedural wings for awhile, just grabbed your fork to check it out. Is there a way you can have all of the sizes in the original fork, or rename the parts so they can be used along side the originals?

Share this post


Link to post
Share on other sites
On 29/05/2016 at 6:51 AM, Fox Loco said:

Thanks for the answer.

Yeah i tought so, it would be hard work, i imagine a mod doing that as a third part program, so you create the wing and import it to the game, not sure if that would ease things...

i'd really like to help in anyway i can, when you get a free time for it.

It's doable in game like this one is - I'm imagining it as setting wing edge sizes & then greatest thickness and longditudinal/vertical offset which would let you have interesting curvy profiles- then either loft the wing from the curves you just made ( proc parts does something similar to make tanks )  or probably easier just to shift some existing vertices around. You have to find all the right verts of your base model in the first place... I know how I'd do it in a modelling package, I just have to work out how to do it in code :)

Share this post


Link to post
Share on other sites
On 2016/6/2 at 4:05 AM, Mr_Breeze said:

I have version 3.2 and the wings go from .125 to 16 length nothing in between. Is this intended? I have been using B9 procedural wings for awhile, just grabbed your fork to check it out. Is there a way you can have all of the sizes in the original fork, or rename the parts so they can be used along side the originals?

Well... Are you clicking the button next to the slider? That's for changing the length range. Click on the slider to change lengths like that in the original mod.

 

Share this post


Link to post
Share on other sites

I had tried right and left clicking and sliding the slider with my mouse sensitivity turned way down. It jumped from .125 to 16 no matter what I did.

Share this post


Link to post
Share on other sites
13 hours ago, Mr_Breeze said:

I had tried right and left clicking and sliding the slider with my mouse sensitivity turned way down. It jumped from .125 to 16 no matter what I did.

Does the debug log show anything or have you got some strange mods installed? This doesn't make sense.

Also, try re-installing the mod.

Share this post


Link to post
Share on other sites

Hello I just notice that whatever is the length or the surface of a wing, only the fuel quantity is varying, but the dry mass is unchanged to 50kg. It's not normal, the greater the wing the heavier it should be. Is there a mod i am missing with B9 Aerospace Pwings?

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.