pioneerspacesim / pioneer

A game of lonely space adventure
https://pioneerspacesim.net
1.61k stars 372 forks source link

Thrust Axis #5723

Open acce245 opened 7 months ago

acce245 commented 7 months ago

Observed behaviour

Thrust axis forward/back (and presumably the others) expect a -1 to 1 value. So in the normal orientation, using an X56 hotas throttle for example, 100% is full forward and 0% full reverse, and null thrust is in the deadzone in the middle. This is a common enough method of thrust, but as HOTAS like this have no detent in the middle, it can be tricky to get that aligned.

Expected behaviour

I decided to play around with the settings a bit, and I noticed that turning on the half axis setting for one of the throttle axes did in fact reduce the throttle to a range of 0 to 1, or 0% to 100%, as expected. However, the 0 to 1 range is inverted, such that full throttle on the hotas (think MSFS, Elite, X4, etc) in the forward position is null throttle in the game, and null throttle on the axis is full throttle. By itself, this isn't so bad, and I figured this would be a simple fix as there is an option to invert the axis in the binding section.

Upon clicking the invert, however, this simply fires the retros and thrusts the vehicle in reverse without changing the actual direction of the throttle input.

So the game, when switching to half axis, keeps 0 at 100% but then just appears to change whether or not 1 or -1 is assigned to 0% throttle position on the HOTAS.

Steps to reproduce

Set the throttle axis of a given device to half axis mode, bind the axis, and toggle inverted on or off in the bind setting.

My pioneer version (and OS):

Pioneer Version 20230203-dev 6a9f4ab

Edition Windows 11 Home Version 22H2 Installed on ‎11/‎28/‎2022 OS build 22621.3007 Experience Windows Feature Experience Pack 1000.22681.1000.0

My output.txt (required) and game save (optional, but recommended)

Github doest not support the file type that the save file is. If you tell me what to do with it I can upload it.

output.txt

bszlrd commented 7 months ago

Don't worry about the save, this should be reproducible without one. It wouldn't contain your settings anyway. (For future reference: put a .zip extension to the filename and it should upload).

Until somebody can take a look at it, as a workaround you could try inverting the axis with Joystick Gremlin. You could even set up the half axis there, and a lot of other neat things like on the fly axis switches or shared axes.