Jump to content

[0.90] TweakScale - Rescale Everything! (v1.50 - 2014-12-24 10:40 UTC)


Biotronic

Recommended Posts

The cfg for the KD25 SRB needs some adjusting. At the largest scale it can't lift its own weight off the pad and at one step down is barely capable of lifting itself. 'Course at the largest size it's nearly as tall as the inside of the VAB.

Link to comment
Share on other sites

Can it scale just diameter without scaling length? I'd like to see what Tweak Scale says the capacity and mass increase should be on the ThunderMaximus tanks scaled up just in diameter from the ThunderMax tanks.

Some of the ReStock parts could be replaced using Tweak Scale, but several are combined of two or more stock parts, usually rescaled and squished, and node positions adjusted.

Stretching a part often ruins its aesthetic, so I'm hesitant to add this feature.

Link to comment
Share on other sites

1.28 still gives me an instant crash without MFT present.

I tried to find the version of MFT that you must have referenced, but it is obsolete and unavailable. The same not found exception is thrown with the latest MFT installed, but the crash stops.

I then compiled TweakScale against the latest MFT and the exception stopped, and only appears again if MFT is uninstalled. Curiously my compilation against MFT 5.1.0 no longer crashes without MFT present.

I can reproduce the crash 100%

A fresh game, open the VAB, place a command module, and as soon as I click on any other part - Crash!

Removing TweakScale stops the crashing, but obviously IR is crippled.

Link to comment
Share on other sites

1.28 still gives me an instant crash without MFT present.

I tried to find the version of MFT that you must have referenced, but it is obsolete and unavailable. The same not found exception is thrown with the latest MFT installed, but the crash stops.

I then compiled TweakScale against the latest MFT and the exception stopped, and only appears again if MFT is uninstalled. Curiously my compilation against MFT 5.1.0 no longer crashes without MFT present.

I can reproduce the crash 100%

A fresh game, open the VAB, place a command module, and as soon as I click on any other part - Crash!

Removing TweakScale stops the crashing, but obviously IR is crippled.

32bit or 64bit? I'm using 32bit and I don't have MFT installed but TweakScale and IR are functioning just fine.

Link to comment
Share on other sites

I got this MOD as part of a differnt mod the kolonization MOD by USI. I cant get it to work what do I need to do?

I'm going to need some more information. How does it not work? It seems USI Kolonization Systems is bundling 1.22, after which many bugs have been fixed. An output_log.txt would be nice too.

Link to comment
Share on other sites

When I right click on whatever I want to tweak it does nothing there is no option to tweak the scale. There are 4 plugin's in the USI Kolonization KSPAPIExtensions.dll, Scale.dll, TweakScale_ModularFuelTanks.dll, TweakScale_RealFuels.dll. I put all 4 into plugin's folder.

Link to comment
Share on other sites

The same crash with 1.29.

At least this time the log shows where it happened. ie I clicked Girder XL


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.IO.FileNotFoundException: Could not load file or assembly 'modularFuelTanks, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.


File name: 'modularFuelTanks, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null'



[ModuleManager] compiling list of loaded mods...
Mod DLLs found:
Assembly-CSharp v1.0.0.0
aaa_Toolbar v1.0.0.0
InfernalRobotics v0.18.1.0
KSPAPIExtensions v1.6.0.0
Scale_Redist v1.0.0.0
ModuleManager v2.2.0.0
Scale v1.29.0.0
Non-DLL mods added:
Mods by directory (subdirs of GameData):
000_Toolbar
MagicSmokeIndustries
NASAmission
Squad
TweakScale


...

------------------- initializing editor mode... ------------------

editor started

Untitled Space Craft - Untitled Space Craft

[KAE] Registering field prefabs for version 1.6.0.0 (latest)

[TweakScale] Creating updaters for Modular Girder Segment XL

Crash!!!

Link to comment
Share on other sites

When I right click on whatever I want to tweak it does nothing there is no option to tweak the scale. There are 4 plugin's in the USI Kolonization KSPAPIExtensions.dll, Scale.dll, TweakScale_ModularFuelTanks.dll, TweakScale_RealFuels.dll. I put all 4 into plugin's folder.

USI Kolonization Systems has included a outdated version. Download the recent version from the OP and delete the outdated one and replace it with TS 1.29.

Link to comment
Share on other sites


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.IO.FileNotFoundException: Could not load file or assembly 'modularFuelTanks, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.


File name: 'modularFuelTanks, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null'

This is just complaining that you don't have Modular Fuel Tanks installed. Nothing to worry about.


------------------- initializing editor mode... ------------------

editor started

Untitled Space Craft - Untitled Space Craft

[KAE] Registering field prefabs for version 1.6.0.0 (latest)

[TweakScale] Creating updaters for Modular Girder Segment XL

Crash!!!

This looks more interesting, but a bit less detailed. Do you have an output_log.txt for this?

Link to comment
Share on other sites

This is just complaining that you don't have Modular Fuel Tanks installed. Nothing to worry about.

I believe it is relevant because the crashing stops if MFT is installed. I don't need or want MFT right now, and as there seems to be an underlying link to its absence. Perhaps there is more to it?

This looks more interesting, but a bit less detailed. Do you have an output_log.txt for this?

I have a macro that strips the "Line 49" debug lines out for easier reading and transport.

http://pastebin.com/x1NY1h84

Thanks for your attention to this btw.

Link to comment
Share on other sites

I believe it is relevant because the crashing stops if MFT is installed. I don't need or want MFT right now, and as there seems to be an underlying link to its absence. Perhaps there is more to it?

I have a macro that strips the "Line 49" debug lines out for easier reading and transport.

http://pastebin.com/x1NY1h84

Thanks for your attention to this btw.

Interesting. Would you mind running it once with this Scale.dll? It's got some extra debug statements which should help me locate the exact line on which the crash happens.

Other things to try:

  • Delete TweakScale_ModularFuelTanks.dll from TweakScale\plugins.
  • Run a game with only stock and TweakScale.
  • Run a binary search for interfering mods: Remove half the mods and see if the problem disappears. If it doesn't, repeat with the remaining ones. If it does, add them again and repeat with that half.

Edited by Biotronic
Link to comment
Share on other sites

Do you need the whole log again, or just what I believe to be the salient part?

------------------- initializing editor mode... ------------------ 
editor started

Untitled Space Craft - Untitled Space Craft

[KAE] Registering field prefabs for version 1.6.0.0 (latest)

[TweakScale] a

[TweakScale] b

[TweakScale] Creating updaters for Modular Girder Segment XL

Crash!!!
...


========== OUTPUTING STACK TRACE ==================


(0x0000000103C70890) ((module-name not available)): (filename not available): (function-name not available) + 0x0
(0x0000000079CFFF2A) (Mono JIT code): (filename not available): System.Linq.Enumerable:Cast<object> (System.Collections.IEnumerable) + 0x9a (0000000079CFFE90 0000000079CFFF36) [0000000000574D48 - Unity Root Domain] + 0x0
(0x00000000040DFDB0) (Mono JIT code): (filename not available): TweakScale.TweakScaleUpdater/<createUpdaters>d__0:MoveNext () + 0xf0 (00000000040DFCC0 00000000040DFF86) [0000000000574D48 - Unity Root Domain] + 0x0
(0x0000000004061A2B) (Mono JIT code): (filename not available): System.Collections.Generic.List`1<object>:AddEnumerable (System.Collections.Generic.IEnumerable`1<object>) + 0xdb (0000000004061950 0000000004061A84) [0000000000574D48 - Unity Root Domain] + 0x0
(0x0000000004019CC6) (Mono JIT code): (filename not available): System.Collections.Generic.List`1<object>:.ctor (System.Collections.Generic.IEnumerable`1<object>) + 0xe6 (0000000004019BE0 0000000004019D74) [0000000000574D48 - Unity Root Domain] + 0x0
(0x00000000040D0CCA) (Mono JIT code): (filename not available): System.Linq.Enumerable:ToArray<object> (System.Collections.Generic.IEnumerable`1<object>) + 0x16a (00000000040D0B60 00000000040D0D28) [0000000000574D48 - Unity Root Domain] + 0x0
(0x000000002AF49905) (Mono JIT code): (filename not available): TweakScale.TweakScale:Setup () + 0x105 (000000002AF49800 000000002AF49E29) [0000000000574D48 - Unity Root Domain] + 0x0
(0x0000000079CFFBDC) (Mono JIT code): (filename not available): TweakScale.TweakScale:OnStart (PartModule/StartState) + 0x1c (0000000079CFFBC0 0000000079CFFBE6) [0000000000574D48 - Unity Root Domain] + 0x0
(0x0000000079CEA31B) (Mono JIT code): (filename not available): Part:ModulesOnStart () + 0x17b (0000000079CEA1A0 0000000079CEA352) [0000000000574D48 - Unity Root Domain] + 0x0
(0x0000000079CE80C2) (Mono JIT code): (filename not available): Part/:MoveNext () + 0x3e2 (0000000079CE7CE0 0000000079CE9B14) [0000000000574D48 - Unity Root Domain] + 0x0
(0x000000000404D36B) (Mono JIT code): (filename not available): (wrapper runtime-invoke) <Module>:runtime_invoke_bool__this__ (object,intptr,intptr,intptr) + 0x6b (000000000404D300 000000000404D3FC) [0000000000574D48 - Unity Root Domain] + 0x0
(0x000007FED3FC36CA) (mono): (filename not available): mono_set_defaults + 0x2b8e
(0x0000000079CCAF5A) (Mono JIT code): (filename not available): EditorPartIcon:Update () + 0x4a (0000000079CCAF10 0000000079CCB120) [0000000000574D48 - Unity Root Domain] + 0x0
(0x00000000FFFFFFFF) ((module-name not available)): (filename not available): (function-name not available) + 0x0
(0x0000000000574D48) ((module-name not available)): (filename not available): (function-name not available) + 0x0


========== END OF STACKTRACE ===========


**** Crash! ****

At least it seems consistent in the log since 1.29, but exactly why is the question.

I just spotted your change to the "SCALETYPE with name default" which was spamming the log before, and it seems coincidental that now the log shows the last operation consistently. Race condition?

Link to comment
Share on other sites

And for completeness, here is the same section with MFT installed - ie exactly the same steps were performed but no crash.

------------------- initializing editor mode... -----------------

editor started


Untitled Space Craft - Untitled Space Craft


[KAE] Registering field prefabs for version 1.6.0.0 (latest)


[TweakScale] a


[TweakScale] b


[TweakScale] Creating updaters for Modular Girder Segment XL


[TweakScale] c


[TweakScale] d


[TweakScale] e


[TweakScale] j


[TweakScale] k 0 TweakScale.TSGenericUpdater


[TweakScale] l


trussPiece3x(Clone) added to ship - part count: 2


stage count is: 0


Game State Saved as persistent


[HighLogic]: =========================== Scene Change : From EDITOR to SPACECENTER =====================

Please excuse sequential posts.

Edited by Squelch
Forgot to strip
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...