Jump to content

[KSP >= 1.3.0] TweakScale - Under Lisias' Management - 2.4.8.8 - 2024-1117


Lisias

Recommended Posts

Dammit I'm getting AssemblyLoader fails again. I've identified the mod at fault, removing it fixes all the AssemblyLoader fails, but when I went to the mod causing the fail, well, I saw a familiar name... ;)

DOE isn't playing nice suddenly.

Spoiler


************************************************************************

[LOG 11:24:28.185] [AddonLoader]: Instantiating addon 'ModuleManager' from assembly 'ModuleManager'
[LOG 11:24:28.206] [ModuleManager] Adding post patch to the loading screen 4
[LOG 11:24:28.208] [ModuleManager] Patching started on a new thread, all output will be directed to E:\Steam\steamapps\common\Kerbal Space Program\Logs\ModuleManager\ModuleManager.log
[LOG 11:24:28.211] [AddonLoader]: Instantiating addon 'UnBlur' from assembly 'unBlur'
[LOG 11:24:28.215] [unBlur] Adding self to loading screen
[LOG 11:24:28.216] [AddonLoader]: Instantiating addon 'DialogController' from assembly 'AT_Utils'
[LOG 11:24:28.217] [AddonLoader]: Instantiating addon 'PartUpdatereRegister' from assembly 'AnisotropicPartResizer'
[LOG 11:24:28.219] [AddonLoader]: Instantiating addon 'Startup' from assembly 'ClickThroughBlocker'
[LOG 11:24:28.220] [AddonLoader]: Instantiating addon 'Startup' from assembly 'Filter Extensions'
[LOG 11:24:28.221] [AddonLoader]: Instantiating addon 'HarmonyInstallChecker' from assembly 'HarmonyInstallChecker'
[LOG 11:24:28.222] [AddonLoader]: Instantiating addon 'TexturesUnlimitedLoader' from assembly 'TexturesUnlimited'
[LOG 11:24:28.223] [AddonLoader]: Instantiating addon 'Startup' from assembly 'Toolbar'
[LOG 11:24:28.223] [AddonLoader]: Instantiating addon 'ToolbarManager' from assembly 'Toolbar'
[LOG 11:24:28.256] [AddonLoader]: Instantiating addon 'ConfigInfo' from assembly 'ToolbarController'
[LOG 11:24:28.257] [AddonLoader]: Instantiating addon 'Startup' from assembly 'ToolbarController'
[LOG 11:24:28.258] [AddonLoader]: Instantiating addon 'RegisterToolbarBlizzyOptions' from assembly 'ToolbarController'
[LOG 11:24:28.258] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSPe.Light.Recall'
[LOG 11:24:28.259] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSP-Recall'
[LOG 11:24:28.259] [AddonLoader]: Instantiating addon 'LoadingScreenSettings' from assembly 'Sigma88LoadingScreens'
[LOG 11:24:28.263] [SigmaLog] Version Check:   Sigma LoadingScreens v0.5.0
[LOG 11:24:28.263] [AddonLoader]: Instantiating addon 'UserSettings' from assembly 'SigmaReplacementsSkyBox'
[LOG 11:24:28.264] [SigmaLog SR] WARNING: Incorrect plugin location => E:\Steam\steamapps\common\Kerbal Space Program\GameData\AstronomersVisualPack\AVP_Skybox\SigmaReplacementsSkyBox.dll
[LOG 11:24:28.265] [AddonLoader]: Instantiating addon 'DebugLoader' from assembly 'SigmaReplacementsSkyBox'
[LOG 11:24:28.265] [AddonLoader]: Instantiating addon 'NyanSkyBox' from assembly 'SigmaReplacementsSkyBox'
[LOG 11:24:28.265] [AddonLoader]: Instantiating addon 'Version' from assembly 'SigmaReplacementsSkyBox'
[LOG 11:24:28.266] [SigmaLog] Version Check:   Sigma Replacements: SkyBox v0.5.1
[LOG 11:24:28.266] [AddonLoader]: Instantiating addon 'NyanSettings' from assembly 'SigmaReplacementsSkyBox'
[LOG 11:24:28.267] [AddonLoader]: Instantiating addon 'PrefabManagerInstant' from assembly 'B9PartSwitch'
[LOG 11:24:28.269] [B9PartSwitch.UI.TooltipHelper] created subtype info tooltip prefab
[LOG 11:24:28.269] [AddonLoader]: Instantiating addon 'SplashScreen' from assembly 'BetterBurnTime'
[LOG 11:24:28.271] [AddonLoader]: Instantiating addon 'SplashScreen' from assembly 'BetterCrewAssignment'
[LOG 11:24:28.274] [AddonLoader]: Instantiating addon 'TipLoader' from assembly 'ContractConfigurator'
[LOG 11:24:28.274] [AddonLoader]: Instantiating addon 'TitleTrackerHelper' from assembly 'ContractConfigurator'
[LOG 11:24:28.277] [AddonLoader]: Instantiating addon 'KerbalXAPIHelper' from assembly 'KXAPI'
[LOG 11:24:28.280] [AddonLoader]: Instantiating addon 'Startup' from assembly 'Crew Light'
[LOG 11:24:28.280] [AddonLoader]: Instantiating addon 'CustomPreLaunchChecks' from assembly 'CustomPreLaunchChecks'
[LOG 11:24:28.281] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSP_Log'
[LOG 11:24:28.281] [AddonLoader]: Instantiating addon 'Startup' from assembly 'DeployableBatteries'
[LOG 11:24:28.282] [AddonLoader]: Instantiating addon 'SettingsGui' from assembly 'DistantObject'
[LOG 11:24:28.285] [KSPe.Globals] INFO: KSPe.cfg does not exists. Using defaults.
[LOG 11:24:28.289] [AddonLoader]: Instantiating addon 'Startup' from assembly 'DistantObject'
[EXC 11:24:29.384] ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
    System.Reflection.Assembly.GetTypes () (at <9577ac7a62ef43179789031239ba8798>:0)
    KSPe.IO.Hierarchy`1+<>c[T].<calculateTypeRoot>b__10_0 (System.Reflection.Assembly assembly) (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    System.Linq.Enumerable+<SelectManyIterator>d__167`3[TSource,TCollection,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    KSPe.IO.Hierarchy`1[T].calculateTypeRoot () (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    KSPe.IO.Hierarchy`1[T].CalculateTypeRoot () (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    KSPe.IO.Hierarchy`1[T]..ctor (KSPe.IO.Hierarchy hierarchy) (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    KSPe.IO.Hierarchy`1[T]..cctor () (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    Rethrow as TypeInitializationException: The type initializer for 'KSPe.IO.Hierarchy`1' threw an exception.
    KSPe.Util.SystemTools+Assembly+Loader`1[T].TryPath (System.String path, System.String[] subdirs) (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    KSPe.Util.SystemTools+Assembly+Loader`1[T]..ctor (System.String[] subdirs) (at <9f7cd9a529194dc4a60f3cf218f8503b>:0)
    DistantObject.Startup.Awake () (at <e30ec9083ad44f3d8c362bd51ed054ea>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.GameObject:AddComponent(Type)
    AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
    AddonLoader:StartAddons(Startup)
    <LoadObjects>d__90:MoveNext()
    UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
    <CreateDatabase>d__71:MoveNext()
    UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
    GameDatabase:StartLoad()
    <LoadSystems>d__11:MoveNext()
    UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
    LoadingScreen:Start()
[LOG 11:24:29.384] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSPe.Light.DOE'
[LOG 11:24:29.387] [AddonLoader]: Instantiating addon 'DynamicBatteryStorage' from assembly 'DynamicBatteryStorage'
[LOG 11:24:29.388] [AddonLoader]: Instantiating addon 'LibraryLoader' from assembly 'KSPDev_Utils.2.6-EVS'
[LOG 11:24:29.404] Loading KSPDevUtils: EasyVesselSwitch/Plugins/KSPDev_Utils.2.6-EVS.dll (v2.6.0.0)
[LOG 11:24:29.405] [AddonLoader]: Instantiating addon 'Startup' from assembly 'EditorExtensionsRedux'
[LOG 11:24:29.406] [AddonLoader]: Instantiating addon 'Startup' from assembly 'Engine Lighting Relit'
[LOG 11:24:29.407] [AddonLoader]: Instantiating addon 'GlobalEVEManager' from assembly 'EVEManager'
[LOG 11:24:29.463] EVEManagerBase.GetManagers(): Unable to load assembly: 
[LOG 11:24:29.473] [AddonLoader]: Instantiating addon 'ShaderLoaderClass' from assembly 'ShaderLoader'
[LOG 11:24:29.474] [AddonLoader]: Instantiating addon 'ShaderProperties' from assembly 'Utils'
[LOG 11:24:29.475] [AddonLoader]: Instantiating addon '_BuildManager' from assembly '_BuildManager'
[LOG 11:24:29.480] [BLACKRACK_EVE_REDUX] Version Info:
Atmosphere, 1.11.6.1
EVEManager, 1.11.6.1
Utils, 1.11.6.1
CelestialShadows, 1.11.6.1
CityLights, 1.11.6.1
PartFX, 1.11.6.1
PQSManager, 1.11.6.1
ShaderLoader, 1.11.6.1
Terrain, 1.11.6.1
TextureConfig, 1.11.6.1
_BuildManager, 1.11.6.1

 

Edited by Frostiken
Link to comment
Share on other sites

6 minutes ago, Frostiken said:

Dammit I'm getting AssemblyLoader fails again. I've identified the mod at fault, removing it fixes all the AssemblyLoader fails, but when I went to the mod causing the fail, well, I saw a familiar name... ;)

DOE isn't playing nice suddenly.

 

Hi! I need the full KSP.log.  Hints about what's inducing  KSPe to Bork are there.

Last time I got a log like yours, it was due KSP being installed inside the Steam's convoluted directory hierarchy- by some reason above my imagination they soft-linked the EFIBoot system folder into the game's hierarchy.  And this broke KSPe code that expects all files under KSP root to be available for reading at least.

If I'm right (what is uncertain without checking the KSP.log), this is a known bug: https://github.com/net-lisias-ksp/KSPAPIExtensions/issues/21

Anyone has the slightest idea WHY IN HELL Steam is linking a freaking EFI file system into a user directory? 

Link to comment
Share on other sites

I'm building a new ksp.log right now, but it was KSPe.Light. I didn't think to mention it because the AssemblyLoader cascades down so I figured the root fail was the problem. Another log coming in in a few minutes.

EDIT: Okay so... I'm trying to troubleshoot why my graphics mods all have been broken since the last KSP update, and was removing a ton of stuff and reinstalling it and DOE was one, as well as Kopernicus and some other stuff. 

Somehow, something somewhere fixed this and now it's not flipping.

Please understand I didn't post that error because it was a one-off thing, I reinstalled DOE and Tweakscale a couple times and it flagged constantly, now it's not doing it at all.

What the hell, technology.

Edited by Frostiken
Link to comment
Share on other sites

11 hours ago, Frostiken said:

Please understand I didn't post that error because it was a one-off thing, I reinstalled DOE and Tweakscale a couple times and it flagged constantly, now it's not doing it at all

Hey, relax. KSP has bugs, KSPe.Light has bugs, TweakScale still have some annoyances. DOE still has some technical debits, and so on.

And sometimes something else borks and triggers a bug somewhere that will blow up under my nose - and sometimes there's no other way but to follow the breadcrumbs trail.

And since I purposely made KSPe a hell of a big mouth (you can't fart while coding that the damned thing logs something! :sticktongue: ) , it's almost sure the breadcrumb trail will start on something that uses it - essentially, everything I do. :)

It's the reason it's so important to always provide KSP.log even with the (apparently) most prosaic errors. We just can't be sure without checking the log!

 

11 hours ago, Frostiken said:

What the hell, technology.

You can say it again. I'm being mercilessly bashed by it since yesterday's dusk... Dude., what a day...

Edited by Lisias
I hate autocompletes. Seriously.
Link to comment
Share on other sites

Hi Lisias... I'll add another little one on the "pain train"... stackable cargo parts are not stackable in flight scene. They stack correctly in the editor. I know you worked on this before. Maybe regression. Using TS  2.4.6.8 on KSP 1.12.3. I tried it in stock and it works correctly.  I've got about 50 mods but TS it's highly likely.

Update: Actually it's OK with a new ship. I'm seeing this on old ships so I guess that old TS issue is now embedded in the ships/ parts in flight. Well, at least it's not a regression.

Edited by Krazy1
update
Link to comment
Share on other sites

55 minutes ago, Krazy1 said:

Update: Actually it's OK with a new ship. I'm seeing this on old ships so I guess that old TS issue is now embedded in the ships/ parts in flight. Well, at least it's not a regression.

It's not the old TS issue, it's the KSP-Recall fix that wasn't injected on the older crafts.

I didn't managed to cook a way to automatically upgrade SubAssemblies - so you will need to load them and them save them again.

Link to comment
Share on other sites

Just now, Lisias said:

I didn't managed to cook a way to automatically upgrade SubAssemblies - so you will need to load them and them save them again.

It's doing it in flight, in my save game with ships that were launched many months ago. Load and save in the editor wouldn't help I think. It's not too bad though.

Link to comment
Share on other sites

23 hours ago, Krazy1 said:

It's doing it in flight, in my save game with ships that were launched many months ago. Load and save in the editor wouldn't help I think. It's not too bad though.

That's the funny thing: in Flight, there's no Attachment Bug! It's the reason you could launch a craft directly into runway or launchpad without problems - only Editor screws up, and so only Editor had the kludge to mask the problem that ended up screwing up TS.

So the workaround is able to safely initialise itself using the current values on Flight - what is a bless, because I will need this to fix the AutoStruts Deformation on Undock problem.

What's screwing me up on Editor is that the Attachment Points (and the Rotation as it appears) are simply not initialised under certain conditions on the Parts's Life Cycle - the kludge is made (I'm guessing) after loading the craft by brute forcing prefab-values on the parts.

So anything that complies with the life cycle is screwed (as TweakScale), and the only way to have these values is by using yet another kludge outside the Parts' Life Cycle. Things are getting uglier and uglier. :(

think I can workaround this one by writing a handler to be run post-loading the craft that will populate the AttachedOnEditor data correctly on this borderline situation. But I'm unsure if I will manage to do that after the Editor's kludge (otherwise it will override me) and before the first craft's Unity Update cycle, that it's where TweakScale do its magic (TweakScale postpone all scaling for the first Unity's Update of each Part Module to allow everybody to initialise itself correctly on the normal Part's Life Cycle).

(Sometimes I think I should move this to the First FixedUpdate instead - I have no real guarantee that the First Update happens before the First FixedUpdate - I only empirically demonstrate it's usual this happens, so there's the theoretical situation in which the First Update will happen after the First FixedUpdate, and this can stress a bit the physics engine).

And if I can't initialise everything correctly after the Editor's kludge and before the Unity's First Update, there's no need to do it at first place.

I'm considering that the best way out of this mess is to write an external tool to do such first time initialisations directly into the craft file, outside KSP...

Edited by Lisias
Better explaining of the problem
Link to comment
Share on other sites

4 hours ago, Ymmit34 said:

I just got an error message from TweakScale saying it found some error messages after I installed some extra mods and to go to the forums and ask for help; posted below.  Can anyone help? My KSP.log file is posted here: https://www.dropbox.com/s/f8xuiquilgan2mr/KSP.log?dl=0

Sure thing!

Let's check this:

[LOG 22:19:01.873] [TweakScale] INFO: WriteDryCost Concluded : 2821 parts found ; 0 checks failed ; 0 parts with hotfixes ; 0 parts with issues overruled ; 17 Show Stoppers found; 0 Sanity Check failed; 1929 unscalable parts.
[LOG 22:19:01.875] [TweakScale] "Houston, we have a Problem!" about show stoppers on patching was displayed

17 FATALities indeed. This is what I found on KSP.log:

[LOG 22:19:01.747] [TweakScale] ERROR: **FATAL** Part mediumbow (#autoLOC_SMIndustries_2000038) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.747] [TweakScale] ERROR: **FATAL** Part mediumhullshort (#autoLOC_SMIndustries_2000046) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.750] [TweakScale] ERROR: **FATAL** Part vetteHangar (#autoLOC_SMIndustries_2000112) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.752] [TweakScale] ERROR: **FATAL** Part waterjet (#autoLOC_SMIndustries_3000030) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.785] [TweakScale] ERROR: **FATAL** Part smallCtrlSrf (Elevon 4) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.786] [TweakScale] ERROR: **FATAL** Part smallCargoContainer (SEQ-3 Cargo Storage Unit) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.797] [TweakScale] ERROR: **FATAL** Part smallRadialEngine (24-77 "Twitch" Liquid Fuel Engine) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.797] [TweakScale] ERROR: **FATAL** Part smallRadialEngine.v2 (24-77 "Twitch" Liquid Fuel Engine) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.820] [TweakScale] ERROR: **FATAL** Part smallHardpoint (Small Hardpoint) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.822] [TweakScale] ERROR: **FATAL** Part mediumDishAntenna (Communotron DTS-M1) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.829] [TweakScale] ERROR: **FATAL** Part smallClaw (Advanced Grabbing Unit Jr.) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.845] [TweakScale] ERROR: **FATAL** Part mediumFanBlade (R-12 Ducted Fan Blade) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.845] [TweakScale] ERROR: **FATAL** Part mediumHeliBlade (Helicopter Blade Type B) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.846] [TweakScale] ERROR: **FATAL** Part mediumPropeller (Propeller Blade Type B) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.846] [TweakScale] ERROR: **FATAL** Part smallFanBlade (R-062 Ducted Fan Blade) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.846] [TweakScale] ERROR: **FATAL** Part smallHeliBlade (Helicopter Blade Type A) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
[LOG 22:19:01.846] [TweakScale] ERROR: **FATAL** Part smallPropeller (Propeller Blade Type A) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0

Hey, this is SPMCE's Large Ship Parts! Neat! :) And I already know what's happing:

[LOG 22:13:58.808] Config(@PART[mediumbow]:NEEDS[TweakScale]) LShipParts/LShipPartsRequired/LBP_tweakableComplete/@PART[mediumbow]:NEEDS[TweakScale]
[LOG 22:13:58.808] Config(@PART[mediumbow]:NEEDS[TweakScale]) LShipParts/LShipPartsRequired/LBP_tweakableComplete/@PART[mediumbow]:NEEDS[TweakScale]

There're some mishaps on the LShipParts' patches. I never bothered to try to fix them because I wrote a TweakScale Companion for them, where I have a very nicer (IMHO at least! :P) patch set for it.

Download and install the TweakScale Companion for SMCE. You will need to overwrite a file called LBP_tweakableComplete.cfg on the original LShipParts because I didn't managed to workaround the bugs I found there.

This will not only fix the double patching problems, but will also give to you a way more convenient way to scale Ship parts!

Cheers!

Link to comment
Share on other sites

6 hours ago, xD-FireStriker said:

Anytips on finding the copy cat. i have checked and there is only one "999_Scale_Redist.dll" in gamedata so where ever it is, its not called "999_Scale_Redist.dll"
Heres the log: https://www.dropbox.com/s/efgu44pmbp8b2l4/KSP.log?dl=0

Found it!

[LOG 03:10:51.950] Load(Assembly): /999_Scale_Redist
[LOG 03:10:51.950] AssemblyLoader: Loading assembly at C:\Kerbal Space Program\KSP 1.12.3 Modded\GameData\999_Scale_Redist.dll
[LOG 03:10:52.027] Load(Assembly): MagicSmokeIndustries/Plugins/Scale_Redist
[LOG 03:10:52.028] AssemblyLoader: Loading assembly at C:\Kerbal Space Program\KSP 1.12.3 Modded\GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll

Remove the GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll file. 

Cheers!

Link to comment
Share on other sites

2 hours ago, Lisias said:

Found it!

[LOG 03:10:51.950] Load(Assembly): /999_Scale_Redist
[LOG 03:10:51.950] AssemblyLoader: Loading assembly at C:\Kerbal Space Program\KSP 1.12.3 Modded\GameData\999_Scale_Redist.dll
[LOG 03:10:52.027] Load(Assembly): MagicSmokeIndustries/Plugins/Scale_Redist
[LOG 03:10:52.028] AssemblyLoader: Loading assembly at C:\Kerbal Space Program\KSP 1.12.3 Modded\GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll

Remove the GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll file. 

Cheers!

thanks, removing it now 

Link to comment
Share on other sites

Hello @Lisias,

first let me thank you for all the work you have done on TweakScale.

I hope you could provide me with some advice and information, that would help me to solve my rather specific issue.

 

Here is the context (optional):

I'm trying to setup a KSP multiplayer server (based on lunamultiplayer.com) with mods, TweakScale being one of them.

For reasons (not relevant imo, but I can explain if needed) I need to keep *.craft files under certain size (700KB).

I need to decrease the amount of MODULE (and other) entries in the *.craft files. ( In order to stay under the size limit, but still allow for complex crafts with many parts. )

 

Now to my issue:

My KSP version is 1.12.3 but TweakScale for that have KSP Recall as a dependency, which adds AttachedOnEditor and Refunding modules.

Can I get rid of these two modules? Because I do not think I need them.

( Surface attached parts should not be a problem since Im running higher version than 1.9.1. Refunding is not an issue in Sandbox mode. )

How I see it I have 5 options:

  • 1) Ditch TweakScale completely. ( I would like to avoid that, because it is damn useful. )
  • 2) Use older version of TweakScale 2.4.3.21 (KSP 1.4.1-1.10.1) which is not compatible with KSP 1.12.3 ( But does not depend on KSP Recall and seems to be working on 1.12.3 )
  • 3) Somehow disable AttachedOnEditor and Refunding functions in KSP Recall. ( There don't seem to be any options for that in the settings or in the .cfg files. )
  • 4) Remove AttachedOnEditor and Refunding modules from parts using ModuleManager. ( This should remove the modules from *.craft files but still keep TweakScale intact and with dependencies satisfied. )
  • 5) Delete attached-on-editor.cfg and refunding.cfg patches from KSP Recall folder. ( This should remove the modules from *.craft files but still keep TweakScale intact and with dependencies satisfied. )

 

So finally the question. Are my assumptions about 4) and 5) correct? Which solution do You think I should pursue? Anything I missed?

Thanks in advance for your time. Cheers

Link to comment
Share on other sites

10 hours ago, ronillon said:

For reasons (not relevant imo, but I can explain if needed) I need to keep *.craft files under certain size (700KB).

<cut>

My KSP version is 1.12.3 but TweakScale for that have KSP Recall as a dependency, which adds AttachedOnEditor and Refunding modules.

Can I get rid of these two modules? Because I do not think I need them.

Well, you will loose the modules' features.

Since you are playing luna multiplayer, I think you don't mind Funds. So you can remove Refunding for sure.

The "cleanest" way is to to add this patch somewhere in your GameData:

@PART[*]:HAS[@MODULE[Refunding]]:FINAL
{
  !MODULE[Refunding],* {}
}

@KSP-Recall
{
  @INSTALLED
  {
    @Refunding = false
  }
}

And the quickest&dirtiest is to plain delete the Refunding.dll (or the respective CFG file) .:)

However,  AttachedOnEditor is needed while Editing the crafts. Removing this Module will render your Edit Scene experience a hell. You can't even load a craft on Editor without risking this kind of crap when AttachedOnEditor is not installed (see the red arrows)

153337520-07675b66-f401-4747-b64e-e99261

However, if you are not going to use the Editor on your gaming, you can get rid of AttachedOnEditor the same way:

@PART[*]:HAS[@MODULE[AttachedOnEditor]]:FINAL
{
  !MODULE[AttachedOnEditor],* {}
}

@KSP-Recall
{
  @INSTALLED
  {
    @AttachedOnEditor = false
  }
}

Or bluntly deleting AttachedOnEditor.dll (or the respective CFG file) .

You can try to avoid triggering the Editor problem by avoiding starting any subtree with a part without variants, or by adding a part with variants immediately after the part without on the subtree (including the part you use for an Alt+Click). For craft files, use that rule for the root part - always start the craft with a part with variant, or add one immediately after the root.

Note the on Flight scene this problem just doesn't happens, it's a very bad mishap on Editor only.

There's yet another craft file size saving mechanism that it's going to be useful for you: the "Stealth" save. It will remove the TweakScale config section from every part not using TweakScale while saving the Craft file - the Upgrade Pipeline thingy will add it back when loading the craft into memory. (it doesn't affects SFS files, just .craft files).

To activate the "Stealth" save feature, add the following patch to your GameData:

@TWEAKSCALE:NEEDS[TWEAKSCALE]
{
  @FEATURES
  {
    @AllowStealthSave = True
  }
}

Someone once reported that this may screw up some less than ideally coded Add'Ons that blindly relies on the module's position on an internal KSP data structure for working - the KSP Upgrade Pipeline will inject TweakScale back into the craft, and this (allegedly) may reorder the index of the module on the config file, changing its index on memory once loaded.

I never managed to reproduce the problem myself, but since the report made sense, I choose to deactivate the Stealth Save by default.

Since you have a very compelling reason to have it activated, I think it worths a try. It may reduce considerably the size of your craft file.

 

10 hours ago, ronillon said:

For reasons (not relevant imo, but I can explain if needed) I need to keep *.craft files under certain size (700KB).

Can you explain the reason? With a bit of luck, I may think on a stunt or two for further pursue the goal!

 

Cheers!

Edited by Lisias
red arrows.
Link to comment
Share on other sites

On 3/11/2022 at 7:12 PM, PyjackMeat said:

Getting a KSPe.IO.Hierarchy`1" error
 https://www.dropbox.com/s/wgoex7u63ituimr/KSP.log?dl=0

Yep, you got hit by a annoying KSP bug, yada yada yada:P

TL;DR: LaunchPad is missing a dependency:

[ERR 21:26:37.864] AssemblyLoader: Exception loading 'ELHelper': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoa
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0

Additional information about this exception:

 System.IO.FileNotFoundException: Could not load file or assembly 'Launchpad, Version=6.99.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'Launchpad, Version=6.99.0.0, Culture=neutral, PublicKeyToken=null'

Reach LaunchPad's maintainer for further help. Since I don't play with it, I don't know where to find ELHelper. Alternatively you can remove LaunchPad from your rig - what probably it's something you don't want to do, otherwise you wouldn't had installed it at first place. But it's a viable workaround to keep playing until you fix LaunchPad.

I understand these pesky errors can be annoying, but please consider that if I would allow you to load your savegames nevertheless, TweakScale would not be able to work as intended and the net result would be all your flying crafts on the loaded savegame being descaled on the spot, completely ruining them.

Attention! Strong images on the spoiler, user discretion is advised! :sticktongue:

Spoiler

Please also consider that TweakScale is not the only add'on that would had problems on a badly initialised KSP - it only happens that TweakScale is the one detecting problems and warning you, instead of burying its head on the sand and letting you be screwed by the problem! ;) 

Edited by Lisias
Grammars… Don't you hate this thing???
Link to comment
Share on other sites

  • 2 weeks later...
1 hour ago, Dioso said:

hallo its me again i need help again 

here is ksp.log 

https://www.dropbox.com/s/6fhk1q1tqdkh30a/KSP.log?dl=0 

Hi again!! :D 

It's BDArmory this time:

[ERR 13:20:15.517] AssemblyLoader: Exception loading 'ATW': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0

Additional information about this exception:

 System.TypeLoadException: Could not resolve type with token 01000010 (from typeref, class/assembly BDArmory.Modules.RocketLauncher, BDArmory, Version=1.2.4.0, Culture=neutral, PublicKeyToken=null)

The ATW thingy is there, but it's an older (or newer) version than the BDArmory.Modules.RocketLauncher is expecting. That "token 01000010" thingy happens when the code tries to link to an unnamed symbol (something private or not exported that was there when the code was compiled, but now it's not).

You will need to reach the BDArmory guys to see how to fix it. It's probably something silly (something someone forgot to update - are you using CKAN?).

Cheers!

Link to comment
Share on other sites

2 hours ago, Lisias said:

Hi again!! :D 

It's BDArmory this time:

[ERR 13:20:15.517] AssemblyLoader: Exception loading 'ATW': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0

Additional information about this exception:

 System.TypeLoadException: Could not resolve type with token 01000010 (from typeref, class/assembly BDArmory.Modules.RocketLauncher, BDArmory, Version=1.2.4.0, Culture=neutral, PublicKeyToken=null)

The ATW thingy is there, but it's an older (or newer) version than the BDArmory.Modules.RocketLauncher is expecting. That "token 01000010" thingy happens when the code tries to link to an unnamed symbol (something private or not exported that was there when the code was compiled, but now it's not).

You will need to reach the BDArmory guys to see how to fix it. It's probably something silly (something someone forgot to update - are you using CKAN?).

Cheers!

Iam using ckan

 

2 hours ago, Lisias said:

Hi again!! :D 

It's BDArmory this time:

[ERR 13:20:15.517] AssemblyLoader: Exception loading 'ATW': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0

Additional information about this exception:

 System.TypeLoadException: Could not resolve type with token 01000010 (from typeref, class/assembly BDArmory.Modules.RocketLauncher, BDArmory, Version=1.2.4.0, Culture=neutral, PublicKeyToken=null)

The ATW thingy is there, but it's an older (or newer) version than the BDArmory.Modules.RocketLauncher is expecting. That "token 01000010" thingy happens when the code tries to link to an unnamed symbol (something private or not exported that was there when the code was compiled, but now it's not).

You will need to reach the BDArmory guys to see how to fix it. It's probably something silly (something someone forgot to update - are you using CKAN?).

Cheers!

do i have to delete BDArmory.Modules.RocketLauncher

Link to comment
Share on other sites

1 hour ago, Dioso said:

do i have to delete BDArmory.Modules.RocketLauncher

Well, it will solve the problem for TS but you will loose the feature - probably the hability to launch rockets.

It's best to reach the BDA guys and ask for help on the ATW thingy. It should be simple, they will probably tell you a link for downloading whatever has this Assembly with the right version.

Link to comment
Share on other sites

42 minutes ago, Lisias said:

Well, it will solve the problem for TS but you will loose the feature - probably the hability to launch rockets.

It's best to reach the BDA guys and ask for help on the ATW thingy. It should be simple, they will probably tell you a link for downloading whatever has this Assembly with the right version.

where can i find the BDArmory.Modules.RocketLauncher i dont see it also idm im more on warbirds

 

Link to comment
Share on other sites

2 hours ago, Dioso said:

where can i find the BDArmory.Modules.RocketLauncher i dont see it also idm im more on warbirds

It's not a file, it's an Assembly. If you really want to delete the thing, you need to find the DLL file where this Assembly is. Since I don't know BDArmory, I can't further help.

You really need to talk to the guys that compiled the BDArmory you are using and show them that LOG snipped I gave to you above.

Link to comment
Share on other sites

10 hours ago, Lisias said:

It's not a file, it's an Assembly. If you really want to delete the thing, you need to find the DLL file where this Assembly is. Since I don't know BDArmory, I can't further help.

You really need to talk to the guys that compiled the BDArmory you are using and show them that LOG snipped I gave to you above.

I got it fixed

thank you 

 

 

Edited by Dioso
Link to comment
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.

×
×
  • Create New...