VOGONS


First post, by rcblanke

User metadata
Rank Oldbie
Rank
Oldbie

Hi All,

recently I stumbled upon a second game where my joystick buttons were not responsive in DOSBox 0.74, while everything was Ok in another version (the game was GBA Championship Basketball: Two-on-Two). Anyway, it turns out it was not so much a problem with the DOSBox version, but with the associated mapper file. Instead of the default contents (in which both games work fine with a joystick)

...
jbutton_0_0 "stick_0 button 0"
jbutton_0_1 "stick_0 button 1"
jaxis_0_1- "stick_0 axis 1 0"
jaxis_0_1+ "stick_0 axis 1 1"
jaxis_0_0- "stick_0 axis 0 0"
jaxis_0_0+ "stick_0 axis 0 1"
jbutton_0_2 "stick_0 button 2"
jbutton_0_3 "stick_0 button 3"
jbutton_1_0
jbutton_1_1
jaxis_0_2- "stick_0 axis 2 0"
jaxis_0_2+ "stick_0 axis 2 1"
jaxis_0_3- "stick_0 axis 3 0"
jaxis_0_3+ "stick_0 axis 3 1"
jaxis_1_0-
jaxis_1_0+
jaxis_1_1-
jaxis_1_1+
jbutton_0_4 "stick_0 button 4"
jbutton_0_5 "stick_0 button 5"
jhat_0_0_0 "stick_0 hat 0 1"
jhat_0_0_3 "stick_0 hat 0 8"
jhat_0_0_2 "stick_0 hat 0 4"
jhat_0_0_1 "stick_0 hat 0 2"
mod_1 "key 306" "key 305"
mod_2 "key 308" "key 307"
...

the mapper file was somehow, at a certain moment in time altered to

...
jbutton_0_0
jbutton_0_1
jaxis_0_1-
jaxis_0_1+
jaxis_0_0-
jaxis_0_0+
jbutton_0_2
jbutton_0_3
jbutton_1_0
jbutton_1_1
jaxis_0_2-
jaxis_0_2+
jaxis_0_3-
jaxis_0_3+
jaxis_1_0-
jaxis_1_0+
jaxis_1_1-
jaxis_1_1+
jbutton_0_4
jbutton_0_5
jhat_0_0_0
jhat_0_0_3
jhat_0_0_2
jhat_0_0_1
mod_1 "key 305" "key 306"
mod_2 "key 307" "key 308"
...

My questions; what could be the cause? And what does the change mean/imply? I can't remember me fiddling with the joystick mapping myself, so I guess the changes were triggered by something different.

regards,
Ronald

edit: oh, I just hit a thousand!

Reply 1 of 5, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Did you enter the mapper at some time, or not at all? The latter case would be really strange because I don't think the mapper file is written to at any other place.

Reply 2 of 5, by rcblanke

User metadata
Rank Oldbie
Rank
Oldbie

Yes, probably so, though I can't remember what I was trying to accomplish at the time. Would it be possible that the change to the mapper file is originating from setting joysticktype=none for a particular game, and then simply opening and saving the mapper settings (thus without changing anything in the mapping)?

Reply 3 of 5, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Would it be possible that the change to the mapper file is originating from setting joysticktype=none for a particular game

I think the idea was that this wouldn't change any mappings. The main focus was on what happens when you
have one joystick attached (4axis) then add a second one (2x 2axis) and whatever combinations that gives
with forcing one or the other.

Reply 4 of 5, by rcblanke

User metadata
Rank Oldbie
Rank
Oldbie

The aforementioned issue only occurs whenever a mapper file is loaded/active that contains full joystick mappings (as show in the first post in the first blockquote) but no actual joystick is detected upon DOSBox startup (I simply unplugged mine). Then, when saving the mapper data, the joystick section ends up being overwritten into something similar to the second blockquote above.

The strange thing is that when starting DOSBox without an existing mapper file, and without a joystick, one can save the mapper data to file and the correct joystick section is saved (full mappings).

Is this a bug?

Reply 5 of 5, by robertmo

User metadata
Rank l33t++
Rank
l33t++

I was writing about it many times and that is why I introduced following line to manual:

"It is important to remember that if you saved the mapperfile without joystick connected, or with a different joystick setting, your new setting will not work properly, or not work at all, until you reset DOSBox's mapperfile."

http://www.dosbox.com/DOSBoxManual.html#Joystick