New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carnage on crafts from very old TweakScale versions. #288
Comments
References on Forum |
Reproducing the issue is, well, easy. Try to load the attached craft file on Editor and you will get this: While the intended results is: Craft file: Untitled Space Craft.craft.zip The reason is the TweakScale section:
The |
On March, 2022 I released a TweakScale version that allows easy transitioning from All Tweak to "proper patches". Se this notice on Forum. I wonder if this change may be related to the problem at hands? |
The problem was reproduced on KSP 1.4.3 and 1.12.5. This rules out any KSP interference on the problem. |
Interesting enough… TweakScale 2.5 BETA doesn't presented the problem. The reason appear to be related on how the messages are different on KSP.log!
|
This is the mostly odd. This commit d2452d0 is from Beta, and it really doesn't change the outcome (Beta was working fine), it only simplifies things, removing some redundancy in the code. Then I backported it into what will be the new 2.4.6.22 release on this commit: 66ff46d And, guess what? It is not working on Release. There's something else happening somewhere else that is still eluding me. |
…orking there! Attempts to fix https://github.com/net-lisias-ksp/TweakScale/issues/285
I ran out of (intelligent) options. I'm going brute force on this: I will test every single TweakScale release backwards, one by one, until the problem disappears. On the bright side, the behaviour is consistent on KSP 1.12.5 and 1.4.3, so I can do this on 1.4.3 as it loads way faster on my rig. |
I found the point in which things gone south: 2.4.6.19. On 2.4.6.18 and older, the problem doesn't happens. Weird enough - why in hell 2.5. works? That thing passed trough a huge refactoring, I was expecting regressions from that codebase! |
Odd!! The difference from 2.4.6.18 and 2.4.6.19 is only this commit: 5db9e3c related to #246 . Makes no sense. On the other hand… On 2.4.6.19, I updated KSPe.Light. I will try an older KSPe.Light on a newer TweakScale to see what happens. TweakScale Beta is using the latest KSPe (full), not the Light version. |
Yep, confirmed. Something gone south on Just tested the thing on 2.4.6.19 but using the Then I shoved back the original one and the problem happened again. It's no surprise I couldn't diagnose that one yet, the component from Well… Now I know where to look. |
And now for something completely unexpected - what, at this point, is kinda expected… The difference between The difference between Well… the next step is obvious: I will compile TweakScale |
ANNNND… Nope. Compiling This suggests that the problem now may be happening on one of the |
Damn. It's a miss.
EDIT: Screw that. The thing didn't compiled, I got distracted by day job (it should be the other way around, no?) and didn't noticed the thing didn't compiled neither deployed, and fired KSP with the previous binaries. |
Oukey, new try. Recompiled the entire TweakScale World against Then I got a insight, deleted the JESUS FSCKING CHRIST, the damned thing worked!!!! The presence of |
Oukey, a new test. Using the custom binaries for TweakScale 2.4.6.21 compiled against The KSP used is 1.4.3 to eliminate the majority of bugs and idiosyncrasies from Unity 2019 and later KSPs as possible - everything related to this issue that works (or not) on 1.4.3 is working (or not) on 1.12.5 the same and vice versa, so this helps to reduce the scope of the research. Well, the mere presence of the Then I replaced it with the Then I replaced it with the I kept replacing the Then I got (another) insight. By inspecting the I shoved back the So it's really something So I removed Then I installed back the 2.4.6.0 one. Bork. At least this is being determinist at this time. And this ruled out MM's Cache from the equation (a possible source for borked patches on memory). So I tried the Again, after this wall of text, is easy to forget a very important detail: TweakScale 2.4.6.21 used on this tests was compiled against IT'S NOT A PROBLEM ON Whatever is happening, it's apparently happening due a change between Not to mention that I have tests using the So it may be some static variable I'm forgetting to initialise properly? Or perhaps something similar on something else being triggered by something I start to do on the In a way or another, right now I have a new benchmark to work with. |
Removing the "My fault" tag. This is, definitively not my fault - at least on TweakScale. It may be my fault on |
The Compiling it from this tag reproduced a binary with the same size the one distributed on TS 2.4.5.9. However, its' not binary identical to the one distributed at that time! Worst, running it I got the problem!! I want to stress that this is happening while running on KSP 1.4.3, what rules out anything relased to using C# 4.7 - this thing runs on C# 3.5. This appears to be a COMPILER problem, not a runtime one. |
It's almost without practical use, but whatever - out of curiosity, I redid the last test using the very first Same krap. Oh, well - at least this ruled out So I'm just removing things from the compilation unit to see what happens. |
Well, that thing that would not have any practical use ended up solving the mystery. I removed everything from that damned thing until only the So… Yeah, the source of my misfortune is something on the I spent the whole night playing combinatorial analysis with this pretty minimalistic DLL. Changed everything, from Assemby Name on the project file to every single datum on the And the problem was happening the same. So, out of exasperation, I removed the DLL from the TweakScale's directory and… Now the problem is happening all the time, with or without this extra DLL on the TweakScale's directory!!! So this extra DLL was never needed to trigger the problem, the cause of it is something else and by pure chance I managed to trigger the damned thing by adding, removing or changing the DLL from the Kraken damned directory! |
So, TL;DR: after a whole day screwing up with the Right now I have a 2.4.6.21 TweakScale compiled against Screenshot of the problem after loading the craft file I posted above with the TweakScale config section mangled to simulate a migration from a The strutCube gets so big that it's outside the VAB, and all we can see from inside it is its shadows. Or, at least, it's what I understood from the picture. |
Well, this is definitively not a So I now have three possibilities:
I don't really know what to do right now. I will reboot this machine and see what happens. |
I rebooted the machine. Nothing changed. I'm considering that I had interpreted this last error wrongly. It doesn't looks exactly as the original problem, it's a bit different - I may had trying to get rid of a new problem while thinking it's the original one. I will need to redo the initial steps on a clean 1.4.3 installment, with clean binaries et all. But this fight will be fought another day. |
HA!! I finally reproduced the second misbehaviour, and yeah, it's an issue on TweakScale. This one is on TS: and is going to be fixed there. [EDIT: See next post] The first misbehaviour, however, are still work in progress here. The mishap on TS's code does not explains why the presence of an alien DLL (assuming it's not a coincidente) was triggering the issue reported on the OP. |
This last misbehaviour was tackled down on issue #287 and… It was not exactly a TweakScale bug. See the issue for detais, but TL;DR: something mysteriously changed on how |
AAAAND… Right now, TweakScale 2.4.6.19 is not borking the same as it was when I opened this issue. All I get is the (now expected) problem described on this post (the shadows, not the big truss) The problem 1 just vanished from the rig. Tested it on 1.4.3 and on 1.12.5, exactly as I did 2 days ago. Now I only get the problem 2, that it's really another alien problem because mangling the ConfigNode worked on March 2022 when I first published it. Hell. This is not a KSPe (Light or not) issue neither. It's like TweakScale was (is) being targeted, so this issue is going back to TweakScale. |
TL;DR: I have TS 2.4.6.22 working now, and I will push it into the mainstream. I don't have the slightest idea about the reason come back to "normality" right now, but the the "new" problem was tackled down on #287 and the immediate crisis is now over. TweakScale 2.4.6.10 (the one I published on March 2022) and announced on All Tweak) is working now too. That code (link) was doing EXACTLY what was doing on 2.4.6.21 (link). Of course I may had borked something in the mean time, but then why removing the I don't have any explanation for the fact the removing |
I will keep this open for some time. This case is not closed, I don't know what's happening. |
Post mortem note: this is suspiciously similar to what happened to AirplanePlus last year, the MonkeyPatching stunt. |
Savegames and craft from pretty old TweakScale versions are getting screwed on new TweakScale versions.
This is probably a follow up from #87 .
I need to know why this is happening now, as this was working fine when I closed #87 two years ago - otherwise, I would not had closed it, damnit!
The text was updated successfully, but these errors were encountered: