#[0.33+] YawOnMouse

94 messages · Page 1 of 1 (latest)

sand lava
#

Using Thunderstore: https://thunderstore.io/c/nuclear-option/p/Muj/YawOnMouse

Using Github: https://github.com/muji2498/YawOnMouse/releases/latest

So long as PilotPlayerState::PlayerAxisControls doesn't get touched it should work indefinitely mitchplz

Don't know how to install bepinex?
Follow this guide! Bepinex Install Guide

GitHub

Full Changelog: 1.0.0...1.1.0
Features aircraft whitelisting through a config toggle (UseCraftWhitelist), when this is toggled a file with the name AircraftWhitelistConfig will autogenerate will al...

rugged dagger
#

@south raven

hot marten
#

Has anyone here set up this mod? I'm having some trouble.

south raven
sand lava
hot marten
#

The folks in #ask-for-help helped me out. All good now.

sand lava
#

Gotcha

sand lava
#

oops icon should say yaw lmao

sand lava
#

fixed

south raven
#

Then you get folder addons in Bepinex. Put Yawonmouse.dll in this folder

toxic pecan
#

this mod so cool

plain river
#

yes

junior echo
#

This is awesome. Feedback / suggestion: Can you make it a toggleable / only active on specific crafts (helos)?

sand lava
sand lava
#

managed to find time to work on it, currently learning how opcode branching works lol

#

should generate a "BlacklistConfig.json" where you can toggle each aircraft

sand lava
icy wharf
#

at least I presume it's not yet in the available download (1.0.0 from 2024) of the mod

sand lava
icy wharf
#

yea sure, I'll try it out with various settings!

icy wharf
sand lava
#

do you have a list of mods installed or is this mod the only one installed?

#

just to confirm your config looks like this correct?

icy wharf
#

was already on my way to test that as I had some other mods and wanted to exclude that

sand lava
#

seems to read it in

icy wharf
#

so it also happens with only this mod running, and yep seems to be same

sand lava
#

there could be an issue with another mod touching the same method i hook into

icy wharf
#

there's no other mod active

sand lava
#

hmm

#

do you have the bepinex logs?

icy wharf
#

I just quickly set CAS1 and AttackHelo1 to true and left rest on false, but every plane I try is yawing still on mouse

#

only other change I did was set HideManagerGameObject to true in BepInEx config (as I moved out my existing config and plugins folder too to test it with a clear setup)

sand lava
icy wharf
#

yes, I sent the blacklist config above as well just in case

#

to make sure I don't mix up which way around it is, what I did is I just set 2 aircraft to true and left rest on false

#

then just tried both those 2 aircraft and other aircraft, and they were all yaw on mouse still

sand lava
#

yes its the expected behaviour hmm

#

ill change it to a whitelist instead

#

to make it less confusing

#

give me like 30 minutes

icy wharf
#

no worries, it's no hassle to test

icy wharf
#

so just to clarify, regardless of anything being true or false in AircraftBlacklistConfig.json it's all yawing still

sand lava
#

if the blacklist is enabled the default behaviour for all aircraft is to yaw

but if you set an aircraft to true then it will roll

icy wharf
#

yea that's what I expected too, the very first time I tested it I set everything I wanted to roll to true to blacklist them from the mod changing them

sand lava
#

ill change it to a whitelist so that the default behaviour is roll

and if you set an aircraft to true it will yaw

#

this is the new plugin, it uses this new config and generates a file called "AircraftWhitelistConfig.json"

icy wharf
sand lava
#

hmm

icy wharf
#

it's basically as if UseCraftBlackList was always just on false

sand lava
#

hmm i think i see the problem it looks like my version of the game shows up as "NuclearOption (02/11/2025 21:13:36)" even though its fully updated

#

one sec lemme reinstall

#

looks like the build version fixed itself after updating

#

let me see if i get the same error

#

i reckon thats what caused it

#

hmm the game method looks untouched so i dont think that broke it

icy wharf
#

okay it seems to be properly toggling behaviour between aircraft BUT there's another issue which I'm not sure if it was present on previous version (as I didn't get to test that since running into it not toggling behaviour at all between aircraft regardless of their exempt status was the main thing I focused on)

#

which is that now on aircraft that's set to true in AircraftWhitelistConfig does yaw with mouse

#

but aircraft that's set to false now does both yaw and roll on mouse

sand lava
#

lemme test that

icy wharf
#

it's quite noticeable in either SAH-46 heli or say a vortex where mouse to left makes it roll to left but also yaw out a fair bit to the left (whereas rolling with keyboard key only rolls as expected)
(for this test I only set CAS1 to true in whitelist)

#

on anything where it's set to true in whitelist it behaves as expected with mouse only yawing, tried it now with CAS1 and AttackHelo1 set to true, mouse left/right does properly yaw only with that at least

sand lava
#

i dont have much experience working with il bytecode so it might take a white

#

while

icy wharf
#

me neither, but thank you for the work on it!

sand lava
#

this was the problem

#

it shouldve been label 38 but it was setting it to label 0

#

try this one?

#

it might spam the console so ignore that for now

icy wharf
#

I think it's working completely well now

#

I did a couple test rounds with various configs and aircraft included or not and tested them a bunch

#

then I also ran a test now with my usual mod setup with various other mods like QoL and whatnot that others would likely also encounter just to check if there's anything conflicting, but works absolutely fine I think

sand lava
#

perfect

sand lava
#

fixed mod not working when whitelisting is disabled

icy wharf
#

welp that's one scenario I didn't test when trying out all kinds of things, that's on me sorry!

sand lava
faint halo
#

Hello! I made a terrible mistake to the vanilla controls, unmodded. I unbound my mouse axes and since I did that, I can't move the map and can't move the camera in the loadout screen.

Maybe just maybe there's a way for me to restore the normal behavior of the mouse axes by using the knowledge you have as the mod developer. You've found a way to "pass the mouse axis input" to the controls. Do you have any ideas how I can get my control back without resetting all controls to default? I've got a HOTAS and other stuff set up that I would like to keep as-is

sand lava
sand lava
#

[0.33+] YawOnMouse

indigo ridge
#

coo mod

dire arch
#

great mod, being able to toggle with a keyboard/mouse button would make it perfect. ideally you would have it on roll for flying and switch to yaw for gun runs

shrewd harness
#

is there a way to make both yaw and roll on the x-axis?
as in moving the mouse horizontally makes the plane both yaw and roll
(maybe have the sensitivity of either be configurable)

upbeat bay
#

Please always maintain this Mod, its the only way I can play this game mitchplz

sand lava