linuxgurugamer / ksp-advanced-flybywire

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

AFBW stopped working with Ubuntu 1804 #11

Open yin opened 5 years ago

yin commented 5 years ago

Hello,

My Saitek 52X worked fine under Ubuntu 1604. After upgrade to Ubuntu 1804 and KSP 15 + AFBW 1.8.1.1 + ckan 1.25.3, my controller stopped working.

When opening the Settings -> Input and selecting to choose an axis, moving the joystick has no response (nothing is assigned). The joystick is unusable in game.

I tried downgrading to KSP 1.4.2 + AFBW + ckan, with didn;t work. I tried downgrading to KSP 1.3.1, which worked without AFBW - I could use the controller.

I have installed libSDL2:

    12:55:37 ~$ apt-file find libSDL2 
    libsdl2-2.0-0: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
    libsdl2-2.0-0: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.8.0
    libsdl2-dev: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so
    libsdl2-dev: /usr/lib/x86_64-linux-gnu/libSDL2.a
    libsdl2-dev: /usr/lib/x86_64-linux-gnu/libSDL2.so
niacdoial commented 5 years ago

Hello, I have the same problem, but did far less tests: I only used AFBW 1.8.1.1 ksp v1.5.1 on 18.04 with ckan v1.25.4. (I will also test it on ksp 1.6 with AFBW c575c08b55c2707eda7adf528b5035e028c99a5d)

While changing the in-game settings for the joystick doesn't work, I managed to completely change the mod settings (and use my joystick) while a rocket is in flight.

yeah this message is more for @yin and whoever will read this than for linuxgurugamer Have a nice day!

EDIT: I.. Don't know how to compile AFBW. I don't have visual studio, the makefile doesn't seem to work (to work as-is, at least) and I have no idea how to use jenkins. Also some generated files might be outdated? (builds directory) EDIT2: did the changes from c575c08b55c2707eda7adf528b5035e028c99a5d on existing 1.8.1.1, and did a test flight. Seems like AFBW works for ksp 1.6.0

yin commented 5 years ago

@niacdoial Wow, great work! So, do I understand it correctly?.. I have to compile the AFBW from github source, then it works with ksp 1.6?

niacdoial commented 5 years ago

Actually, no. what I did was to modify one file on the already installed AFBW (because luckily it stays a text file). The exact change is in the commit itself (removing the max-ksp-version recquirement from the .version file)

You might want to temporarly migrate to ksp 1.5 for ckan to accept installing afbw, if it isn't already the case, though.

yin commented 5 years ago

@niacdoial. Thanks, you saved the Christmas today!

niacdoial commented 5 years ago

You are welcome!

linuxgurugamer commented 5 years ago

That shouldn't prevent it from working, that should only show a warning. That file is not even used by AFBW, it's there for AVC and MiniAVC. Are you sure that nothing else got changed?

niacdoial commented 5 years ago

Hello, I don't know about the first part (I think one time ksp (actually it's probably AVC) disabled all incompatible mods at launch, but it certainly doesn't happen every time).

For the second part, I am pretty sure. I used the 1.8.1.1 release (which says "1 commit to master since release"), and said commit only makes changes to ksp-advanced-flybywire.version (which I did), and creates a .old copy (which I didn't create). So unless the .version file is used at compile time, I probably did all the effective changes.

linuxgurugamer commented 5 years ago

AVC doesn't do anything other than checking the .version file, both locally and online, and displays a message if it isn't compatible.. I'm wondering if @yin got it working, and if so, what he did as well.

yin commented 5 years ago

Hey guys, I will try that out after I return from Holidays at Sunday. This is the first thing I am planning to do at Sunday.