Closed nevercast closed 6 years ago
SCANsat is incompatible with OverDrive. Remove that if you want to continue using SCANsat.
This is being tracked on the Overdrive side at Real-Gecko/KSP-Overdrive#2. (Though the mod itself is now abandoned and adopted by @linuxgurugamer.)
I took a look at the code to see if it was something simple, and nothing jumped out at me. The toggle object should be getting replaced with a valid object, which has the various onNormal.background
properties set to valid image objects. However, some of this work is done through the UICore dependency, which I haven't checked yet.
Hey @DMagic1, is it possible that these width - 32, height - 32
expressions are passing negative dimensions if the underlying image is less than 32x32? Most C# code that I've seen throws exceptions if that happens:
new Rect(16, 16, skin.toggle.normal.background.width - 32, skin.toggle.normal.background.height - 32)
Overdrive's icons seem to be 16x22, which would result in new Rect(16, 16, -16, -10)
under the above theory:
Cheers thanks for that! Can I attach a debugger (Visual Studio) to KSP to assist in debugging this issue further (Comparing with and without overdrive)?
Edit: This seems sufficient
For the moment, I'll just undo the UI mod.
Fixed in 18.3.
Wonderful, thanks!
I'm using SCANsat, and a bunch of other mods.
When I try to open a ScanSAT Window, it does not open. The Debug console gives me the following error.
Here are my logs
KSP Log Output Log - Part 1 Output Log - Part 2
Sorry about the two parts, my modem is broken at the moment and can't upload anything larger
Anything I can do to help find the cause of this issue? I could do a bisection of my mods in a manual binary search, but it would take hours probably.
NC