Control configuration file

new reply
D'Ace 2012

Control configuration file

Post by D'Ace 2012 »

Hi,

As i am UNABLE to properly set up my Saitek Yoke+quadrant+ rudder, i'd like to know if there is any file wich is editable with notepad. I have spent 2 hours trying to set up axis in the in-game configuration, and i can't. Nothing happens when I try to save settings, I am a bit desperated. With old version all was good

Thanks!!

User avatar
PV
BDG
Posts: 5188
Joined: 13 Nov 2004, 08:21
Location: Lost in the tundra, Canada

Re: Control configuration file

Post by PV »

Well, there is, but not for everything, and it isn't well documented:
if you look in the KEYBOARD subfolder, there is a file called keys.txt,
which is a plaintext list of the key assignments, and also contains
the assignments of joystick buttons, including the "hat" switch, if
present. There is also a file called default.txt, which keeps a record
of the original key assignments (so don't change this), while keys.txt
will change when you edit key assignments via the BoB2 GUI.
But, you can edit keys.txt by hand, and that should result in
changes to assignments.

However, the assignments shown in the file are simple number codes,
and to figure out what they refer to, you have to compare them to
the values listed in the Options>Controls>Key Mapping screen in BoB2,
where you will find that for instance, the command SHOOT shows in
the keys.txt file as
SHOOT 57 260 300 340 380
while the in-game screen shows
SHOOT Space, A1_Fire, A2_Fire, A3_Fire, A4_Fire

by which you can deduce that 57 refers to the spacebar key, while
260 refers to A1_Fire, etc. A little investigation has shown that A1
refers to the first input device, which can be a joystick, or throttle
box, or foot pedals; similarly A2, A3, are other input devices; and
Fire is the main fire button on A1, if A1 is a joystick. I would guess
that A1_Fire simply doesn't exist on other types of devices. Further
investigation has revealed that A1_b1 through A1_b8 (and possibly
higher?) refer to other buttons on the first (joystick) device, while
for instance A2_b1 is the first button on the second device. To
determine what number codes correspond to these names, you would
have to compare the values in the entries where they are used, just
as I have done above with the shoot command.

Having said all this, you can see that this allows manual assignment of
buttons on the joystick (oh, and the hat switch buttons show as H1,
H2... not A1_H1, A2_H1.... And the hat positions are given compass
directions, so H1_N, H1_SE, while H3_W would be for the hat switch on
the third device) but there is no provision in this system to map the
AXES of the devices. Unfortunately, these can only be done via the
BoB2 GUI, as they are written to the binary file settings.cfg in the
Savegame subfolder.

By the way, you say "With old version all was good". Do you mean an
old joystick, or an old version of BoB2 (or BoB1)? If you are new to
the current BoB2 controls assignments, have you read through the
guide in the manual, pp26-35, found in the Docs subfolder?

D'Ace 2012

Re: Control configuration file

Post by D'Ace 2012 »

Thanks PV, i managed to configure it all, i don't know exactly how... and another time thanks for your explanations, and please excuse me for the delaying, personally i don't like at all people acting as i did this time...

For the moment i got to configure all levers and buttons, but i do'nt know how to "invert" axis, i mean, i'd like to have the propeller lever inverted (down - less RPM, up - more RPM). This is the only issue i'm having for the moment. What a great great great game BOBII is, i think i prefer it to CoD...

Thankyou mr PV!!!

User avatar
PV
BDG
Posts: 5188
Joined: 13 Nov 2004, 08:21
Location: Lost in the tundra, Canada

Re: Control configuration file

Post by PV »

Inverting an axis is dead easy, if you've got the
axis showing properly in the Controls screen. Look
at the manual, page 33, and it's all there, with pictures,
and even circles and arrows and a paragraph underneath
explaining what each thing is, to be used but not as
evidence against you (bonus points for knowing the
literary reference). When you click on the item of interest,
it turns red, and the options available magically show up
on the right.

new reply

Return to “BOB2 Technical Support”

Who is online

Users browsing this forum: No registered users and 13 guests