linuxgurugamer / ksp-advanced-flybywire

Controller mod for Kerbal Space Program
MIT License
26 stars 11 forks source link

Controller(s) issues with KSP 1.12.1.3142 #35

Open vorpal-void opened 3 years ago

vorpal-void commented 3 years ago

I've installed AFBW ver 1.8.3.4 via CKAN. Hardware: Steam Controller and 8bitdo SN30Pro.

OS: Windows 11 Pro 22000.100

Steam Controller connected via SC USB Dongle abd configured in Steam overlay as default XInput Gamepad, not as official KSP preset (which emulates KBM). Everything seems to be working right off the start with default XInput preset, I can even add my own bindings and they seem to work, but any scene change will reset all settings to their defaults, including preset names and removing newly created presets. But this behavior is not constant, see below.

Same errors are constantly dropped even with 8bitdo SN30Pro connected via Bluetooth in XInput mode. I don't have other controllers to check everything with, like "native" XBox gamepads.

Quicksave seems to be writing configuration changes to advanced_flybywire_config_v21.xml, but they are reset as soon as scene change happens or game restarts.

OR

It does save all preset changes (I can see my config names and preset in config window while in-game after game restarts), but controller stops responding at all after returning to vehicle control.

OR

While everything working fine, it somehow disables some buttons on default USB keyboard in mid flight- like Esc menu or throttle control.

Entire log is constantly filled with same exception block that look like this, SDL2.dll is present in KSP root folder:

[EXC 15:47:57.058] DllNotFoundException: libSDL2-2.0.0.dylib
    KSPAdvancedFlyByWire.SDLController.InitializeSDL () (at <aa89e93a18714f9599fdcfaba3d730f5>:0)
    KSPAdvancedFlyByWire.SDLController.SDLUpdateState () (at <aa89e93a18714f9599fdcfaba3d730f5>:0)
    KSPAdvancedFlyByWire.AdvancedFlyByWire.Update () (at <aa89e93a18714f9599fdcfaba3d730f5>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

When config file is saved normally but controller does not respond after returning to vehicle control, there is one additional section added:

[EXC 15:52:50.126] NullReferenceException: Object reference not set to an instance of an object
    KSPAdvancedFlyByWire.FlightManager.OnFlyByWire (FlightCtrlState state) (at <aa89e93a18714f9599fdcfaba3d730f5>:0)
    Vessel.FeedInputFeed () (at <a5c262f7fe724eb9918d4487db8b635e>:0)
    FlightInputHandler.FixedUpdate () (at <a5c262f7fe724eb9918d4487db8b635e>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
linuxgurugamer commented 3 years ago

Post in the thread. I don't have a controller, so can't even begin to look at this. Maybe someone else who has one can help