Angel-125 / FlyingSaucers

Build Flying Saucers in KSP!
9 stars 4 forks source link

Cannot use hover mode on a non-flapjack craft(Object refrence not set to an instance of an object) #9

Open Fivebuss opened 2 weeks ago

Fivebuss commented 2 weeks ago

Problem

Cannot use hover mode, with I and K keys when using a craft that is not a flapjack (or a modified version) from the stock vessels menu

Enabling hover mode turns it on, displays "VTOL mode" within the 'gravitic' engine Occurs with any engine, doesnt matter what size. Using the lepton as a test bed

Only a single line is printed to console, Exception: NullRefrenceException: Object refrence not set to an instance of an object when pressing the keys. The craft does not move.

Steps to reproduce

Create a craft from scratch, using on of the gravitic engines. Load it onto the launch pad or runway. Activate the gravimetric generator thing (gravity wave generator) and your means of electric charge Enable the engine, wait for it to start. Then under the hover menu, enable it. Ensure it shows "VTOL mode" in the top Attempt to press the I or K keys to rise up. Receive the error each time you press one of the keys. Nothing happens

Does not occur with a flapjack craft from the stock menu. Occurs even on a stock install, however I dont have the log file for that ATM as I deleted the instance :/

System info

Windows 11 22h2 32GB ram intel i7-12700H (20) RTX 3050 mobile (8G) All drivers up to date

Craft statistics

Doesnt work from a craft weighing 10 tons to a 200 ton large ship Landing legs are on runway All resources are generated properly.

log file (probably not useful seeing as its just a single error printed to console)

https://www.hostize.com/v/rsD1b8F7iQ [ksp.log]

Fivebuss commented 2 weeks ago

After a bit of testing, I figured out that if i open the VTOL manager once, it will fix the issue The settings icon (Hover control setup) spams the log with the same error and the window only goes away after reloading a save

However upon loading a save the same problem of the keys not working resurfaces, until I open the VTOL manager window again Quite annoying and strange