Giter VIP home page Giter VIP logo

Comments (5)

magico13 avatar magico13 commented on August 17, 2024

Could you possibly include the full log (specifically the output_log.txt file from the KSP_Data folder)? The save file may be helpful as well. If you load up the game again to retest, please turn on the Debug Messages setting in the KCT settings.

That error is a very bad one. Where it occurs is during loading of the persistence data, which will result in some serious issues that might not seem present at first. It's definitely something related to KCT though, since it happens inside one of KCT's functions. Often similar issues occur from other mods, but not in this instance.

You may want to try one of the development builds to see if that makes the problem go away (in which case I've likely already fixed it). At the very least, the dev builds have some extra functionality that detects when issues like this occur and will let you know that something's wrong.

from kct.

supermerill avatar supermerill commented on August 17, 2024

To turn on the debug message, it's VERBOSE_DEBUG_LOG, right?
anyway, here the log, without additional plug-in, on a new game, with the latest dev build (and the savegame)
To reproduce, load the save and click on the green rocket at the launchpad.
kct_dev_build
log:
http://pastebin.com/pdnZspE8
savegame:
https://mega.co.nz/#!J5AwQSIb!CjpwK4nfVLAXcCI-Fh2Q64aB9FrwqZsjSfjK3x_F5BE

from kct.

magico13 avatar magico13 commented on August 17, 2024

The debug messages I was mentioning are specific to KCT and are in the KCT settings, but since you were using the development build they were automatically enabled, so no worries about that.

I think I know what the problem is. The good news is that's it's a simple fix and as long as you don't have any other mods that need to read from the save file after KCT does then there shouldn't be any actual issues with continuing the flight. I may have a potential fix if you're willing to change one line in your save file (until I get home later and fix it on my end): find the "sit = PRELAUNCH" line in the save and change it to "sit = LANDED" (without quotes in both cases).

If you're interested in what exactly is going wrong, it's this: KCT didn't expect people to launch a craft without actually going through with the launch. When the flight scene is loaded up to a craft that's sitting on the pad (PRELAUNCH) it tries to remove the craft from the appropriate VAB/SPH Storage. Since the craft wasn't launched in this game session, there isn't a valid KCT_GameStates.launchedVessel, so it creates a Null Reference Exception. The fix is to check if that's null, and if so then obviously don't try to remove it from the build list! It's a one line fix :)

I'll have this taken care of tonight.

from kct.

supermerill avatar supermerill commented on August 17, 2024

sit = LANDED => it works!
Ok, a simple one ^^.
glad I could help enhance an already excellent product.

from kct.

magico13 avatar magico13 commented on August 17, 2024

I also fixed it on my side so it shouldn't be an issue in the future :)

from kct.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.