@fvelazdem said in Morphine’s Profile For 4.37:
I repeat it again, there is something that conflicts when I press Paddle and the configuration stops working on my computer
There is nothing in the either the target files or the key which “conflicts” when you press the paddle. The cause of your problems is that BMS is not correctly configured to run the profile, and or Target is not working correctly on your system.
I will take the time to prove this mathematically as your statement implies that there is some underlying issue problem with the profile. Which there is not.
Let’s look at the directx / joystick buttons binds in the 4.35 and 4.37 .key file.
The code for DMS right is the same for both 4.35 and 4.37
SimDMSRight 11 8 -2 0 0x0 0 "DMS RIGHT"
This says when the joystick button 12 from the first controller in Devicesorting.txt is pressed, then DMS right is pressed in the sim.
BMS sees joystick button 12 as “11” because it transforms button 1 to 0 and counts up from 0. E.G. Joystick button 1 = BMS Button 0, and Joystick Button 10 = BMS Button 9.
The BMS joystick button shift function works by increasing the joystick button by a fixed value.
For the 4.37 profile we set the shift value to 512, with the following line of code in the user.cfg file.
set g_nHotasPinkyShiftMagnitude 512
With this line of code, when we press and hold the pinky or paddle (depending on the version of the profile) and press DMS right on the warthog stick. The sim inputs BMS button 11 + 512, which is BMS buttons 523.
The 4.37 key file tells the sim that BMS button 523 should increment the way point up.
SimNextWaypoint 523 8 -2 0 0x0 0 "DMS RIGHT + PINKY = NEXT STPT"
The 4.35 profile is based on a 256 joystick shift. Meaning when the paddle / pinky is held and you press DMS right, the sim inputs BMS button 11 + 256 = BMS button 267,
267 also happens to be, by no coincidence, the binding to increase the way point in the 4.35 version of the key file.
SimNextWaypoint 267 8 -2 0 0x0 0 "DMS RIGHT + PINKY = NEXT STPT"
If everything was setup properly for 4.37 and you used the 4.35 key file. Then you pressed paddle + DMS nothing should happen. As nothing is assigned to BMS button 523 in the 4.35 keyfile.
If you have setup everything correctly for 4.37 and are using the 4.35 key file. Then, you press paddle + DMS right and the way point increases. Then the sim is seeing BMS button 267.
and you haven’t finished the setup
as
set g_nHotasPinkyShiftMagnitude 512
is greater than 267.