blackheart612

[1.4.x-1.6.x] Airplane Plus - R26.0 (A lot of fixes) (Mar 21, 2019)

Recommended Posts

5 minutes ago, AccidentalDisassembly said:

Small note - in these two files, a curly brace is either missing or there's one or more too many:

AirplanePlus\Parts\Command\cessnacockpit\partcabin.cfg
AirplanePlus\Parts\Structure and Fuel\r22set\mk3s1.cfg

What I get for not using notepad++. I mean I have it but I can't resist the beauty of notepad. Rest assured I'll fix it, if I don't upload a wrong dev version. For the next update whenever that is.

Share this post


Link to post
Share on other sites
Just now, blackheart612 said:

What I get for not using notepad++. I mean I have it but I can't resist the beauty of notepad. Rest assured I'll fix it, if I don't upload a wrong dev version. For the next update whenever that is.

I use this handy dandy python script to find stuff in every folder in my GameData, if that helps. Disclaimer: not a coder, don't really know Python, just got curious:

import os
import fnmatch
import sys
import codecs

folderpath = "C:\\Games\\Kerbal Space Program\\GameData\\"

configFileList = [os.path.join(dirpath, f)
    for dirpath, dirnames, files in os.walk(folderpath)
    for f in fnmatch.filter(files, '*.cfg')]

print('\nThere were ' + str(len(configFileList)) + ' config files in that folder.')

def checkConfigs():
    for elem in configFileList:
        char1 = '{'
        char2 = '}'
        filePathName = elem
        fileContent = open(elem, 'r', encoding='utf8', errors='ignore').read()
        numOpenBraces = fileContent.count(char1)
        numCloseBraces = fileContent.count(char2)   
        if numOpenBraces != numCloseBraces:
            print('Check ' + str(filePathName))
        
checkConfigs()

 

Share this post


Link to post
Share on other sites

So, I'm getting these errors in the log.

If I put a copy the <named>.dds (or even just a link it) the "not found", obviously, goes away, but there is no obvious change in the rendered part. 

Yet, if I insert a ' texture = AerjetKerbodyne , AirplanePlus/Parts/Command/airbuscockpit/<named>' the problem still exists.

181013T210317.180 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/airbuscockpit/AerojetKerbodyne' not found!
181013T210317.222 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/b29cockpit/placeholder' not found!
181013T210317.222 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/b29cockpit/airbuscockpittex' not found!
181013T210317.308 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/fighterinlinecockpit/AerojetKerbodyne' not found!
181013T210317.365 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/oh6cockpit/AerojetKerbodyne' not found!
181013T210317.373 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/oldfightercockpit/AerojetKerbodyne' not found!
181013T210317.433 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/x1cockpit/AerojetKerbodyne' not found!
181013T210318.300 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Engine/Rotorwing/powerprop/default' not found!
181013T210318.326 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Payload/Mk1Door/AerojetKerbodyne' not found!

A quick grep reveals that there are references to it in the model.mu for the respective parts.


~/Games/KSP_test/GameData/AirplanePlus$ egrep -rnw 'AerojetKerbodyne'
Parts/Command/airbuscockpit/part.cfg:2://    [ERR 21:03:17.180] Texture 'AirplanePlus/Parts/Command/airbuscockpit/AerojetKerbodyne' not found!Binary file Parts/Payload/Mk1Door/model.mu matches
Binary file Parts/Payload/Mk1DroneDoor/model.mu matches
Binary file Parts/Command/airbuscockpit/model.mu matches
Binary file Parts/Command/oldfightercockpit/model.mu matches
Binary file Parts/Command/oh6cockpit/model.mu matches
Binary file Parts/Command/fighterinlinecockpit/model.mu matches
Binary file Parts/Command/x1cockpit/model.mu matches

Is this an artifact of previous iterations?

Share this post


Link to post
Share on other sites
7 hours ago, Vaga said:

Sounds like one of the mods by Angel125 (Pathfinder, Buffalo, DSEV, MOLE, Flying Saucers, and Heisenberg)

Turns out it was his KerbalActuators mod, which I got bundled with Near Future Aeronautics. Thanks for the tip.

Share this post


Link to post
Share on other sites
On 10/14/2018 at 2:44 PM, TranceaddicT said:

So, I'm getting these errors in the log.

If I put a copy the <named>.dds (or even just a link it) the "not found", obviously, goes away, but there is no obvious change in the rendered part. 

Yet, if I insert a ' texture = AerjetKerbodyne , AirplanePlus/Parts/Command/airbuscockpit/<named>' the problem still exists.


181013T210317.180 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/airbuscockpit/AerojetKerbodyne' not found!
181013T210317.222 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/b29cockpit/placeholder' not found!
181013T210317.222 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/b29cockpit/airbuscockpittex' not found!
181013T210317.308 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/fighterinlinecockpit/AerojetKerbodyne' not found!
181013T210317.365 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/oh6cockpit/AerojetKerbodyne' not found!
181013T210317.373 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/oldfightercockpit/AerojetKerbodyne' not found!
181013T210317.433 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Command/x1cockpit/AerojetKerbodyne' not found!
181013T210318.300 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Engine/Rotorwing/powerprop/default' not found!
181013T210318.326 [ERROR] [PartReader.ReadTextures] Texture 'AirplanePlus/Parts/Payload/Mk1Door/AerojetKerbodyne' not found!

A quick grep reveals that there are references to it in the model.mu for the respective parts.


~/Games/KSP_test/GameData/AirplanePlus$ egrep -rnw 'AerojetKerbodyne'
Parts/Command/airbuscockpit/part.cfg:2://    [ERR 21:03:17.180] Texture 'AirplanePlus/Parts/Command/airbuscockpit/AerojetKerbodyne' not found!Binary file Parts/Payload/Mk1Door/model.mu matches
Binary file Parts/Payload/Mk1DroneDoor/model.mu matches
Binary file Parts/Command/airbuscockpit/model.mu matches
Binary file Parts/Command/oldfightercockpit/model.mu matches
Binary file Parts/Command/oh6cockpit/model.mu matches
Binary file Parts/Command/fighterinlinecockpit/model.mu matches
Binary file Parts/Command/x1cockpit/model.mu matches

Is this an artifact of previous iterations?

It's an issue reported to me already not very recently. It's an old habit of mine to use the file before, so it's an artifact of my unity exporting behavior :P I gotta fix that when I remember. Is what I said before too.

@AccidentalDisassembly Sounds useful. But I have no idea what to do...

@theonegalen For an airplane based mods, I seem blissfully unaware about part aerodynamics. Do they really not? I believe I used a standard config for it.

>>>Also, breaking news, I'm from 1.5!

And surprisingly, very surprisingly, so far, everything works. Even firespitter. Even other mods in my install. So... wow. Alright, then. 

Share this post


Link to post
Share on other sites
38 minutes ago, blackheart612 said:

@theonegalen For an airplane based mods, I seem blissfully unaware about part aerodynamics. Do they really not? I believe I used a standard config for it.

 the code to make it work is included in your config files, but it has been commented out. I removed the comment marks, and it seemed to work properly. I haven't checked to see see which other landing gears that might also be true about.

Share this post


Link to post
Share on other sites
1 hour ago, blackheart612 said:

>>>Also, breaking news, I'm from 1.5!

And surprisingly, very surprisingly, so far, everything works. Even firespitter. Even other mods in my install. So... wow. Alright, then. 

Yeah, I don't think they really changed all that much under the hood. This was much more of a graphical update.

Share this post


Link to post
Share on other sites
Just now, MaverickSawyer said:

Yeah, I don't think they really changed all that much under the hood. This was much more of a graphical update.

There were wheel changes, they are much more stable so far, less super bounces. Now it's only half their fault and half my fault. But it's still a KSP problem too :P I think they fixed the wheels on my tests so far. I might need to make tweaks but I am unsure how as of yet. There are new shaders which I am so tempted to use. I want to redo everything though Im not sure how, but that will stop all the new part updates.

Share this post


Link to post
Share on other sites
12 minutes ago, blackheart612 said:

There were wheel changes, they are much more stable so far, less super bounces. Now it's only half their fault and half my fault. But it's still a KSP problem too :P I think they fixed the wheels on my tests so far. I might need to make tweaks but I am unsure how as of yet. There are new shaders which I am so tempted to use. I want to redo everything though Im not sure how, but that will stop all the new part updates.

They did? Hmmm... So there's a chance that using the X-1 gear won't result in my plane being catapulted several meters into the air? Nice. That gear has always looked cool, but it's never been nice to fly with.

 

And to confirm the post above about the P-51 gear and the airliner gear... yeah, it's draggy af, even when retracted.

Share this post


Link to post
Share on other sites

Hi everyone,

first of all thanks for this great mod. I have some serious problems thou creating a working and flyable (!) helicopter. Is there a tutorial of some sorts on how to build and fly the "Kuey" from the OP, for instance? Or anything that may help?

Thanks.

Share this post


Link to post
Share on other sites
21 minutes ago, williamhall531@gmail.com said:

how do you install craft files? I can't open the .craft files and put them into my KSP folder. as you can tell, im not great at computers. thanks

They go into either the "SPH" subfolder of the "Ships" folder, which makes them "stock" ships, or into a specific save folder, under the same approach as above: .../KSP/Saves/*save name*/Ships/SPH

Share this post


Link to post
Share on other sites
1 minute ago, MaverickSawyer said:

They go into either the "SPH" subfolder of the "Ships" folder, which makes them "stock" ships, or into a specific save folder, under the same approach as above: .../KSP/Saves/*save name*/Ships/SPH

Also, SPH is the Spaceplane Hangar, VAB is the Vehicle Assembly Building (i.e. rockets). It affects the default building for the craft, and whether you launch from the runway or the launchpad, but beyond that the files are the same.

Share this post


Link to post
Share on other sites

Hi, did on this latest update we got this floatplane part for landing on water? :)

Because I try to search on SPH, but can't found it

Wro4px1.png

Share this post


Link to post
Share on other sites
21 minutes ago, SancthuaryID said:

Hi, did on this latest update we got this floatplane part for landing on water? :)

Because I try to search on SPH, but can't found it

Because it's not there.  If you click on any of the pics where it says "Craft Files (Click Image):" in the OP it will take you to the KerbalX repository.

If you click on that pic it will redirect you to https://kerbalx.com/blackheart612/Kingfisher-Mk2

Share this post


Link to post
Share on other sites
8 minutes ago, TranceaddicT said:

Because it's not there.  If you click on any of the pics where it says "Craft Files (Click Image):" in the OP it will take you to the KerbalX repository.

If you click on that pic it will redirect you to https://kerbalx.com/blackheart612/Kingfisher-Mk2

So, for the pontoon part not in this update, ya?

Share this post


Link to post
Share on other sites
Just now, SancthuaryID said:

So, for the pontoon part not in this update, ya?

It is, it's in the changelog on the OP and all download mirrors:

Added Pontoon and Pontoon-Mk3S options for*
*Mk3S1 Liquid Fuel Fuselage
*Mk3S0 Liquid Fuel Fuselage
*Mk3S1 Liquid Fuel Fuselage Junior
*Mk3S0 Liquid Fuel Fuselage Junior

Share this post


Link to post
Share on other sites

So, I saw these and  ...

181019T183224.802 [ERROR] [PartLoader.CompileModel] PartCompiler: Cannot replace texture 'herculesgeartex' as cannot find texture 'AirplanePlus/Parts/Wheel/sharedgeartex/herculesgeartex' to replace with
181019T183224.896 [ERROR] [PartLoader.CompileModel] PartCompiler: Cannot replace texture 'herculesgeartex' as cannot find texture 'AirplanePlus/Parts/Wheel/sharedgeartex/herculesgeartex' to replace with

figured,oh, that's an easy fix.

you have ../sharedgeartex/..

shoudl be ../sharedgear./..

Which in turn open this can of worms ...

 [PartLoader+<CompileParts>c__Iterator1.MoveNext] PartLoader: Encountered exception during compilation. System.NullReferenceException: Object reference not set to an instance of an object
  at PartLoader.ReplaceTextures (UnityEngine.GameObject model, System.Collections.Generic.List`1 textureNames, System.Collections.Generic.List`1 newTextures) [0x00000] in <filename unknown>:0 
  at PartLoader.CompileModel (.UrlConfig cfg, .ConfigNode partCfg, Single scaleFactor, .AvailablePart partInfo) [0x00000] in <filename unknown>:0 
  at PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node) [0x00000] in <filename unknown>:0 
  at PartLoader+<CompileParts>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 
 [PartLoader+<CompileParts>c__Iterator1.MoveNext] PartCompiler: Cannot compile part

 

I've tried resaving the files. I've tried generating new files.  I've even tried dabbling with the .mu.

Nothing.

Ideas?

 

Until then i've commented out the Model{texture}.

Edited by TranceaddicT

Share this post


Link to post
Share on other sites
Just now, TranceaddicT said:

So, I saw these and  ...

181019T183224.802 [ERROR] [PartLoader.CompileModel] PartCompiler: Cannot replace texture 'herculesgeartex' as cannot find texture 'AirplanePlus/Parts/Wheel/sharedgeartex/herculesgeartex' to replace with
181019T183224.896 [ERROR] [PartLoader.CompileModel] PartCompiler: Cannot replace texture 'herculesgeartex' as cannot find texture 'AirplanePlus/Parts/Wheel/sharedgeartex/herculesgeartex' to replace with

figured,oh, that's an easy fix.

you have ../sharedgeartex/..

shoudl be ../sharedgear./..

Which in turn open this can of worms ...

 [PartLoader+<CompileParts>c__Iterator1.MoveNext] PartLoader: Encountered exception during compilation. System.NullReferenceException: Object reference not set to an instance of an object
  at PartLoader.ReplaceTextures (UnityEngine.GameObject model, System.Collections.Generic.List`1 textureNames, System.Collections.Generic.List`1 newTextures) [0x00000] in <filename unknown>:0 
  at PartLoader.CompileModel (.UrlConfig cfg, .ConfigNode partCfg, Single scaleFactor, .AvailablePart partInfo) [0x00000] in <filename unknown>:0 
  at PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node) [0x00000] in <filename unknown>:0 
  at PartLoader+<CompileParts>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 
 [PartLoader+<CompileParts>c__Iterator1.MoveNext] PartCompiler: Cannot compile part

 

I've tried resaving the files. I've tried generating new files.  I've even tried dabbling with the .mu.

Nothing.

Ideas?

 

Until then i've commented out the Model{texture}.

Which part is this? I don't understand the error, isn't herculesgeartex in AirplanePlus\Parts\Wheel\sharedgear?

Share this post


Link to post
Share on other sites
45 minutes ago, blackheart612 said:

It is, it's in the changelog on the OP and all download mirrors:

Added Pontoon and Pontoon-Mk3S options for*
*Mk3S1 Liquid Fuel Fuselage
*Mk3S0 Liquid Fuel Fuselage
*Mk3S1 Liquid Fuel Fuselage Junior
*Mk3S0 Liquid Fuel Fuselage Junior

Ah, the Mk3S0 is pontoon right :)

I will check on my sph again

Finally I can build seaplane again on my KSP :)

Share this post


Link to post
Share on other sites
11 minutes ago, blackheart612 said:

Which part is this? I don't understand the error, isn't herculesgeartex in AirplanePlus\Parts\Wheel\sharedgear?

So, first, ALL the gear configs have ..\sharedgeartex\.. not ..\sharedgear\..

When that line is uncommented and fixed, the PartLoader NREs are generated.

Share this post


Link to post
Share on other sites
Just now, TranceaddicT said:

So, first, ALL the gear configs have ..\sharedgeartex\.. not ..\sharedgear\..

When that line is uncommented and fixed, the PartLoader NREs are generated.

Got it. I'll check it. Thank you.

Share this post


Link to post
Share on other sites
1 minute ago, blackheart612 said:

Got it. I'll check it. Thank you.

NP,  I'm just hammering my way through mods with errors in the log.

Share this post


Link to post
Share on other sites

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.