Bug#706564: supertux: joystick input configuration is lost, if supertux is started when the joystick is not plugged in

Francesco Poli (wintermute) invernomuto at paranoici.org
Wed May 1 17:50:22 UTC 2013


Package: supertux
Version: 0.3.3-5
Severity: normal

Hello,
the in-game configuration menu for joystick input lets me assign a different
button or axis movement to each action.
For instance, I may configure the game so that:

  Action       Control
  -----------------------
  up           "Axis -Y"
  down         "Axis +Y"
  left         "Axis -X"
  right        "Axis +X"
  jump         "Button 6"
  action       "Button 7"
  pause/menu   "Button 5"
  peek left    "Button 3"
  peek right   "Button 1"
  peek up      "Button 4"
  peek down    "Button 0"

This is really nice and is automatically saved to ~/.supertux2/config

However, I found that, if you start the game when the joystick is not
plugged in, the program spits out the following messages to stderr
(among many other ones):

  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '0' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '1' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '3' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '4' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '5' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '6' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:234 Invalid button '7' in buttonmap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:242 Invalid axis '-2' in axismap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:242 Invalid axis '-1' in axismap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:242 Invalid axis '1' in axismap
  [INFO] /tmp/buildd/supertux-0.3.3/src/control/joystickkeyboardcontroller.cpp:242 Invalid axis '2' in axismap

and my joystick input configuration gets lost!
In other words, the configuration file ~/.supertux2/config gets
overwritten with default values for joystick input configuration!

As a consequence, next time I start the game with the joystick plugged
in, I have to re-configure the joystick controls from scratch!
This is very annoying!

I am convinced that supertux should remember the joystick input configuration,
even when the joystick is not plugged in.

Please fix this bug and/or forward my bug report upstream.

Thanks for your time!


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages supertux depends on:
ii  libc6                     2.13-38
ii  libcurl3-gnutls           7.26.0-1+wheezy2
ii  libgcc1                   1:4.7.2-5
ii  libgl1-mesa-glx [libgl1]  8.0.5-4
ii  libglew1.7                1.7.0-3
ii  libglu1-mesa [libglu1]    8.0.5-4
ii  libogg0                   1.3.0-4
ii  libopenal1                1:1.14-4
ii  libphysfs1                2.0.3-1
ii  libsdl-image1.2           1.2.12-2
ii  libsdl1.2debian           1.2.15-5
ii  libstdc++6                4.7.2-5
ii  libvorbis0a               1.3.2-1.3
ii  libvorbisfile3            1.3.2-1.3
ii  libx11-6                  2:1.5.0-1
ii  libxext6                  2:1.3.1-2
ii  supertux-data             0.3.3-5

supertux recommends no packages.

supertux suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list