Jump to content

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


Biotronic

Recommended Posts

I just installed the newest TweakScale and, uh, it doesn't seem to work at all. When I right-click on parts that should be tweakable, there's no option to rescale them. What logs or other information would you want to see to diagnose the issue?

Edit: my bad, looks like I had installed another mod incorrectly, and there was an older version of TweakScale in my GameData folder. Sorry for cluttering up the thread.

I have the same problem with some parts, for example Ram air intakes. This is the first time I've ever installed TweakScale so your fix doesn't help me...

Link to comment
Share on other sites

Just to make sure I got this right:

the part cost doesn't scale because cost is tied to the part prototype and not to an instance of that part? And that's why all the modders are on the fence so squad changes how prices are handled.

Link to comment
Share on other sites

Just to make sure I got this right:

the part cost doesn't scale because cost is tied to the part prototype and not to an instance of that part? And that's why all the modders are on the fence so squad changes how prices are handled.

That's correct. There are possible workarounds, but this should be easy to fix for squad, and a lot of work for us modders.

Link to comment
Share on other sites

Well fcuk. 1.24 and 1.25 had a typo in DefaultScales.cfg, which is what caused Smurfalot's ridiculously oversized illuminators.

So we try again. Version 1.26 has new cfgs for KW and NFT, as well as fixing above typo.

I'm playing around with a mod for creating cfgs in KSP - right-click a part, choose scaletype and default scale, and a new .cfg automagically appears with the values you've chosen. Might make it easier for modders to support TweakScale in their mods.

Link to comment
Share on other sites

Well fcuk. 1.24 and 1.25 had a typo in DefaultScales.cfg, which is what caused Smurfalot's ridiculously oversized illuminators.

So we try again. Version 1.26 has new cfgs for KW and NFT, as well as fixing above typo.

I'm playing around with a mod for creating cfgs in KSP - right-click a part, choose scaletype and default scale, and a new .cfg automagically appears with the values you've chosen. Might make it easier for modders to support TweakScale in their mods.

Thank you ever so much. I know you guys get an earful when there is a new version or something breaks, but I really do appreciate the work you do.

Link to comment
Share on other sites

@Biotronic:

just4info , your link https://www.dropbox.com/s/9kcslxvfu6jlg73/TweakScale_1.26.zip gets blocked in downloads in Firefox 34 nightly . IE and Chrome open them normal. If the .zip is moved to an other dropbox account it also works.

http://i17.imgup.net/blockesby8030.png

So seems something in that link lets firefox nightly think its bad. *edit* it seems if you give it free for others (so it gets /s/ ) then the error happens. if the file is in the folder "public" everything is fine.

Link to comment
Share on other sites

Thank you ever so much. I know you guys get an earful when there is a new version or something breaks, but I really do appreciate the work you do.

Thanks. It's comments like this that make me continue doing this.

Link to comment
Share on other sites

I want to publicly thank Biotronic for his patience in dealing with me to get a solution to the versioning issue. Can't thank you enough.

Hey, yours is one of the mods that got me hooked on this game. I'm doing this because it gives me shiny stuff. :P

Link to comment
Share on other sites

I'm getting the classic "engines firing in the VAB error" with TweakScale 1.24 and KSP 0.24 Mac 32 bit. I've triple-checked that TS is installed correctly in stock KSP, and the error does not occur with TS 1.23. Loading an engine in the VAB results in a UriFormatException. Here's the stack trace from my log for the UriFormatException:

UriFormatException: URI scheme must start with a letter and must  consist of one of alphabet, digits, '+', '-' or '.' character.
at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in <filename unknown>:0
at System.Uri.ParseUri (UriKind kind) [0x00000] in <filename unknown>:0
at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in <filename unknown>:0
at System.Uri..ctor (System.String uriString) [0x00000] in <filename unknown>:0
at TweakScale.PathEx.MakeRelativePath (System.String fromPath, System.String toPath) [0x00000] in <filename unknown>:0
at TweakScale.Tools.KSPRelativePath (System.String path) [0x00000] in <filename unknown>:0
at TweakScale.Tools.Logf (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at TweakScale.TweakScale.OnStart (StartState state) [0x00000] in <filename unknown>:0
at Part.ModulesOnStart () [0x00000] in <filename unknown>:0
at Part+.MoveNext () [0x00000] in <filename unknown>:0

https://dl.dropboxusercontent.com/u/14413819/KSP/screenshot0.jpg

I'm getting this one too on 1.26. Linux 64bit. Have tried reinstalling, removing Modularfueltanks, reinstalling and starting a new career. Anyone got any ideas?

My version of the error:

UriFormatException: URI scheme must start with a letter and must consist of one of alphabet, digits, '+', '-' or '.' character.  at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in <filename unknown>:0 
at System.Uri.ParseUri (UriKind kind) [0x00000] in <filename unknown>:0
at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in <filename unknown>:0
at System.Uri..ctor (System.String uriString) [0x00000] in <filename unknown>:0
at TweakScale.PathEx.MakeRelativePath (System.String fromPath, System.String toPath) [0x00000] in <filename unknown>:0
at TweakScale.Tools.KSPRelativePath (System.String path) [0x00000] in <filename unknown>:0
at TweakScale.Tools.Logf (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at TweakScale.TweakScaleUpdater+<createUpdaters>d__0.MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[TweakScale.IRescalable].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[TweakScale.IRescalable]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[IRescalable] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at TweakScale.TweakScale.Setup () [0x00000] in <filename unknown>:0
at TweakScale.TweakScale.OnStart (StartState state) [0x00000] in <filename unknown>:0
at Part.ModulesOnStart () [0x00000] in <filename unknown>:0
at Part+^R^F.MoveNext () [0x00000] in <filename unknown>:0

Link to comment
Share on other sites

I'm getting this one too on 1.26. Linux 64bit. Have tried reinstalling, removing Modularfueltanks, reinstalling and starting a new career. Anyone got any ideas?

My version of the error:

UriFormatException: URI scheme must start with a letter and must consist of one of alphabet, digits, '+', '-' or '.' character.  at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in <filename unknown>:0 
at System.Uri.ParseUri (UriKind kind) [0x00000] in <filename unknown>:0
at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in <filename unknown>:0
at System.Uri..ctor (System.String uriString) [0x00000] in <filename unknown>:0
at TweakScale.PathEx.MakeRelativePath (System.String fromPath, System.String toPath) [0x00000] in <filename unknown>:0
at TweakScale.Tools.KSPRelativePath (System.String path) [0x00000] in <filename unknown>:0
at TweakScale.Tools.Logf (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at TweakScale.TweakScaleUpdater+<createUpdaters>d__0.MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[TweakScale.IRescalable].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[TweakScale.IRescalable]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[IRescalable] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at TweakScale.TweakScale.Setup () [0x00000] in <filename unknown>:0
at TweakScale.TweakScale.OnStart (StartState state) [0x00000] in <filename unknown>:0
at Part.ModulesOnStart () [0x00000] in <filename unknown>:0
at Part+^R^F.MoveNext () [0x00000] in <filename unknown>:0

Damnit, I knew I'd forgotten a bug. I know where this is now, and I think I can just remove that functionality (it doesn't do anything interesting for the end user). Done.

Link to comment
Share on other sites

Damnit, I knew I'd forgotten a bug. I know where this is now, and I think I can just remove that functionality (it doesn't do anything interesting for the end user). Done.

Hmm... I still get a UriFormatException with 1.27 on my Mac in a stock install. I diffed it against peter.alfredsen's, and the only difference was the last line of the stack trace:


at Part+.MoveNext () [0x00000] in <filename unknown>:0

Link to comment
Share on other sites


at Part+.MoveNext () [0x00000] in <filename unknown>:0

That looks familar.. It could be to do with Squads brilliant and well-thought-out (:rolleyes:) new PartModule loading code. In short - crafts saved before installing mods that change part modules, such as TweakScale, will probably not work right e.g. engines firing/decouplers decoupling etc. in the VAB. To quote toadicus:

User has a .craft file from an older version, or without mods installed.

Mods use ModuleManager to replace a module on parts used in the .craft file.

When loading the craft file, KSP detects that the modules referenced in the .craft file (e.g. ModuleDecouple) are not present in the part's prefab (e.g. having been replaced by DecoupleForX64 with ModuleDecoupleX64).

KSP[s PartModule code] "fixes" the inconsistency

Edited by ObsessedWithKSP
Link to comment
Share on other sites

That looks familar.. It could be to do with Squads brilliant and well-thought-out (:rolleyes:) new PartModule loading code. In short - crafts saved before installing mods that change part modules, such as TweakScale, will probably not work right e.g. engines firing/decouplers decoupling etc. in the VAB. To quote toadicus:

I've seen that, too. It's not what's happening for me, though. I even tried a fresh save (in my stock install), and every time I've tested this, it's been with new crafts. Usually, I just pull out an RT-10 SRB, so it's not hard to replicate.

Also, I should reiterate a point I made in my initial post:

This is not a KSP 0.24 problem; TweakScale 0.21-0.23 do not have this issue, nor does IR_TweakScale from IR 0.17 and 0.18.

Thanks!

Link to comment
Share on other sites

I'm having a problem with TweakScale and Modular Fuel Tanks. TweakScale doesn't seem to change the available volume of tanks when the tanks are re-sized. TweakScale will change the default amount of fuel in the tank, but if you modify the tank in the Modular Fuels menu it reads the tank size as the original, un-tweaked size. I'm using the most recent version of TweakScale, 1.27, and the most recent version of Modular Fuel Tanks, 5.1.0a, using a clean install with only TweakScale, Modular Fuels and Module Manager 2.2.0 on .24 x64 Windows.

Also, want to say thank you for this great mod! It's one of my must have mods.

Edited by nebuchadnezzar
Link to comment
Share on other sites

Hi there,

I'm on Win x64 and I've been testing things out specifically to do with IR just recently, so only addons specific to that are loaded. Since the 1.26 update, I'm seeing a crash immediately I select any part after placing a command module.

It's looking like TweakScale is not only failing to load, but brings the whole thing down afterwards.

...

Launcher disabled? False
Launcher after checking file: False
Load(Assembly): 000_Toolbar/toolbar
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\000_Toolbar\toolbar.dll
AssemblyLoader: KSPAssembly 'Toolbar' V1.0
Load(Assembly): MagicSmokeIndustries/Plugins/InfernalRobotics
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\InfernalRobotics.dll
Load(Assembly): MagicSmokeIndustries/Plugins/KSPAPIExtensions
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\KSPAPIExtensions.dll
Load(Assembly): MagicSmokeIndustries/Plugins/Scale_Redist
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll
Load(Assembly): ModuleManager/ModuleManager.2.2.0
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\ModuleManager\ModuleManager.2.2.0.dll
Load(Assembly): TweakScale/plugins/KSPAPIExtensions
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\TweakScale\plugins\KSPAPIExtensions.dll
Load(Assembly): TweakScale/plugins/Scale
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\TweakScale\plugins\Scale.dll
Load(Assembly): TweakScale/plugins/Scale_Redist
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\TweakScale\plugins\Scale_Redist.dll
Load(Assembly): TweakScale/plugins/TweakScale_ModularFuelTanks
AssemblyLoader: Loading assembly at D:\Games\KSP_win64\GameData\TweakScale\plugins\TweakScale_ModularFuelTanks.dll
AssemblyLoader: Loading assemblies
Non platform assembly: D:\Games\KSP_win64\GameData\000_Toolbar\toolbar.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\InfernalRobotics.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\KSPAPIExtensions.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\ModuleManager\ModuleManager.2.2.0.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\KSPAPIExtensions.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\Scale.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\Scale_Redist.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\TweakScale_ModularFuelTanks.dll (this message is harmless)
AssemblyLoader: Exception loading 'TweakScale_ModularFuelTanks': 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.IO.FileNotFoundException: Could not load file or assembly 'modularFuelTanks, Version=5.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.


File name: 'modularFuelTanks, Version=5.0.1.0, Culture=neutral, PublicKeyToken=null'
AddonLoader: Instantiating addon 'ToolbarManager' from assembly 'Toolbar'
AddonLoader: Instantiating addon 'MuMechGUI' from assembly 'InfernalRobotics'
Parsing rect
Parsing rect
Parsing rect
Parsing rect
[IR GUI] awake
AddonLoader: Instantiating addon 'PartMessageServiceInitializer' from assembly 'KSPAPIExtensions'
[PartMessageService] version 1.6.0.0 at D:\Games\KSP_win64\GameData\MagicSmokeIndustries\Plugins\KSPAPIExtensions.dll won the election against
Version: 1.6.0.0 Location: D:\Games\KSP_win64\GameData\TweakScale\plugins\KSPAPIExtensions.dll
AddonLoader: Instantiating addon 'UIPartActionsExtendedRegistration' from assembly 'KSPAPIExtensions'
AddonLoader: Instantiating addon 'CompatibilityChecker' from assembly 'KSPAPIExtensions'
AddonLoader: Instantiating addon 'ConfigManager' from assembly 'ModuleManager.2.2.0'

[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.27.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)
Crash!!!


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


(0x0000000103AF0000) ((module-name not available)): (filename not available): (function-name not available) + 0x0
(0x000000006807FCF6) (Mono JIT code): (filename not available): TweakScale.Tools:KSPRelativePath (string) + 0x56 (000000006807FCA0 000000006807FCFC) [0000000002304D48 - Unity Root Domain] + 0x0
(0x000000006807FA80) (Mono JIT code): (filename not available): TweakScale.Tools:Logf (string,object[]) + 0x50 (000000006807FA30 000000006807FAE6) [0000000002304D48 - Unity Root Domain] + 0x0
(0x000000006807F77C) (Mono JIT code): (filename not available): TweakScale.TweakScaleUpdater/<createUpdaters>d__0:MoveNext () + 0xbc (000000006807F6C0 000000006807F986) [0000000002304D48 - Unity Root Domain] + 0x0
(0x0000000003FA1A2B) (Mono JIT code): (filename not available): System.Collections.Generic.List`1<object>:AddEnumerable (System.Collections.Generic.IEnumerable`1<object>) + 0xdb (0000000003FA1950 0000000003FA1A84) [0000000002304D48 - Unity Root Domain] + 0x0
(0x0000000003F59CC6) (Mono JIT code): (filename not available): System.Collections.Generic.List`1<object>:.ctor (System.Collections.Generic.IEnumerable`1<object>) + 0xe6 (0000000003F59BE0 0000000003F59D74) [0000000002304D48 - Unity Root Domain] + 0x0
(0x0000000004010CCA) (Mono JIT code): (filename not available): System.Linq.Enumerable:ToArray<object> (System.Collections.Generic.IEnumerable`1<object>) + 0x16a (0000000004010B60 0000000004010D28) [0000000002304D48 - Unity Root Domain] + 0x0
(0x000000001BBF9763) (Mono JIT code): (filename not available): TweakScale.TweakScale:Setup () + 0x93 (000000001BBF96D0 000000001BBF99C6) [0000000002304D48 - Unity Root Domain] + 0x0
(0x000000006807F48C) (Mono JIT code): (filename not available): TweakScale.TweakScale:OnStart (PartModule/StartState) + 0x1c (000000006807F470 000000006807F496) [0000000002304D48 - Unity Root Domain] + 0x0
(0x000000006806A16B) (Mono JIT code): (filename not available): Part:ModulesOnStart () + 0x17b (0000000068069FF0 000000006806A1A2) [0000000002304D48 - Unity Root Domain] + 0x0
(0x0000000068067F12) (Mono JIT code): (filename not available): Part/:MoveNext () + 0x3e2 (0000000068067B30 0000000068069964) [0000000002304D48 - Unity Root Domain] + 0x0
(0x0000000003F8D36B) (Mono JIT code): (filename not available): (wrapper runtime-invoke) <Module>:runtime_invoke_bool__this__ (object,intptr,intptr,intptr) + 0x6b (0000000003F8D300 0000000003F8D3FC) [0000000002304D48 - Unity Root Domain] + 0x0
(0x000007FEDAD236CA) (mono): (filename not available): mono_set_defaults + 0x2b8e
(0x000000006804A81A) (Mono JIT code): (filename not available): EditorPartIcon:Update () + 0x4a (000000006804A7D0 000000006804A9E0) [0000000002304D48 - Unity Root Domain] + 0x0
(0x00000000FFFFFFFF) ((module-name not available)): (filename not available): (function-name not available) + 0x0
(0x0000000002304D48) ((module-name not available)): (filename not available): (function-name not available) + 0x0


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


**** Crash! ****

[EDIT for Update]

Ok, I tried to satisfy the dependency for modular fuel tanks to see if that helped. I must note, that this dependency is completely new to me, and I've never installed modular fuel tanks before.

I installed this one after I found there seem to be different and obsolete versions, and it was the only one in revision 5.

Here's a new log snippet, and the dependency still isn't satisfied - Looking for 5.0.1 but I have 5.1.0

Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\KSPAPIExtensions.dll (this message is harmless)Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\Scale.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\Scale_Redist.dll (this message is harmless)
Non platform assembly: D:\Games\KSP_win64\GameData\TweakScale\plugins\TweakScale_ModularFuelTanks.dll (this message is harmless)
AssemblyLoader: Exception loading 'TweakScale_ModularFuelTanks': 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.IO.FileNotFoundException: Could not load file or assembly 'modularFuelTanks, Version=5.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.


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

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)


AddonLoader: Instantiating addon 'ToolbarManager' from assembly 'Toolbar'

...

[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
modularFuelTanks v5.1.0.0
ModuleManager v2.2.0.0
Scale v1.27.0.0
Non-DLL mods added:
Mods by directory (subdirs of GameData):
000_Toolbar
MagicSmokeIndustries
NASAmission
Squad
TweakScale

Interestingly, there was no instaCrash, but obviously there is something amiss with this rogue dependency.

Edited by Squelch
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.

Edited by Galane
Link to comment
Share on other sites

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