Can only move down and right.
Moderator: Developers
Can only move down and right.
Hi,
Just found egoboo. Looks fun
But I'm having a bit of a basic problem - I can't move up or left. Pressing either the up arrow or down arrow moves the guy down and pressing either right or left moves him right. Not fun
I'm in Linux, 64 bit. No errors being spat out that I can see anywhere...
Can anyone help?
Thanks!
P.S. Version 2.8.0.
Just found egoboo. Looks fun
But I'm having a bit of a basic problem - I can't move up or left. Pressing either the up arrow or down arrow moves the guy down and pressing either right or left moves him right. Not fun
I'm in Linux, 64 bit. No errors being spat out that I can see anywhere...
Can anyone help?
Thanks!
P.S. Version 2.8.0.
-
- {]-[0{0|307 (Developer)
- Posts: 1864
- Joined: Wed Jul 23, 2008 4:22 am
- Location: Minnesota, USA
It is possible that the problem is due to the camera control mode.
You can get to this value in-game by following the menus to Options->Game Options and clicking on the red button to the right of "Autoturn Camera" to change the setting.
Another option is that your keyboard controls are configured incorrectly. Go to Options->Input Controls. The default input that comes up first is the "Keyboard Player". Check out the "Controls" section and make sure that you have "Left: KEY_LEFT" and "Right: KEY_RIGHT". If not, or if you want to change the settings of these controls click on the red button to the right of the control and then hit the key that you want to use for that control.
Cheers!
You can get to this value in-game by following the menus to Options->Game Options and clicking on the red button to the right of "Autoturn Camera" to change the setting.
Another option is that your keyboard controls are configured incorrectly. Go to Options->Input Controls. The default input that comes up first is the "Keyboard Player". Check out the "Controls" section and make sure that you have "Left: KEY_LEFT" and "Right: KEY_RIGHT". If not, or if you want to change the settings of these controls click on the red button to the right of the control and then hit the key that you want to use for that control.
Cheers!
Thanks for the suggestions.
I have the keys set correctly - in fact I changed them to a few other things just to check and the same thing happened. Also, not the camera, but thanks. I also don't have a joystick.
I made a little progress though. I noticed that the mouse (well, actually the trackpad - I'm on a laptop) does move around the character correctly, so perhaps there's some interference? Can I disable mouse moving? I don't want to use that anyway.
Thanks again!
I have the keys set correctly - in fact I changed them to a few other things just to check and the same thing happened. Also, not the camera, but thanks. I also don't have a joystick.
I made a little progress though. I noticed that the mouse (well, actually the trackpad - I'm on a laptop) does move around the character correctly, so perhaps there's some interference? Can I disable mouse moving? I don't want to use that anyway.
Thanks again!
Okay - well I have no mouse, joystick or anything else plugged in. But, I do have a trackpad and trackpoint on the laptop - and I can't unplug them. I disabled the trackpad by flicking the hardware switch, but that didn't make any difference. The trackpoint I don't know if I can disable.
I suppose I could stop them from being detected by X (they're using the evdev driver) but then I'd have no mouse at all :-/
Is there some way I can get something useful out to help with debugging?
I suppose I could stop them from being detected by X (they're using the evdev driver) but then I'd have no mouse at all :-/
Is there some way I can get something useful out to help with debugging?
-
- Acid Blob (New member)
- Posts: 1
- Joined: Fri Jan 07, 2011 3:11 am
the problem seems to be with the way in which the keyboard state is translated to joystick positions in void set_one_player_latch( const PLA_REF player ) in game.c
specifically, it's around line 2060 where joy_pos.x and joy_pos.y are assigned.
doing math on bools and expecting floats apparently requires more care.
I just fixed it experimentally by assigning all of the boolean values returned by control_is_pressed to floats before doing any math on them
I'd submit a patch, but I'm sure someone else will be able to come up with a far better solution.
specifically, it's around line 2060 where joy_pos.x and joy_pos.y are assigned.
doing math on bools and expecting floats apparently requires more care.
I just fixed it experimentally by assigning all of the boolean values returned by control_is_pressed to floats before doing any math on them
I'd submit a patch, but I'm sure someone else will be able to come up with a far better solution.
-
- {]-[0{0|307 (Developer)
- Posts: 1864
- Joined: Wed Jul 23, 2008 4:22 am
- Location: Minnesota, USA
thanks for your help, meaninglessidentifier. That sounds like it could be the problem to me. At some time, I'm sure the logic was correct.
This actually might be a gcc-specific problem, since gcc requires enums to be unsigned (which is what btrue and bfalse are). Subtraction of one unsigned from another can give wacky results!
This actually might be a gcc-specific problem, since gcc requires enums to be unsigned (which is what btrue and bfalse are). Subtraction of one unsigned from another can give wacky results!
Re: Can only move down and right.
Hello,
I just installed Egoboo succesfully but I'm not able to play because of the same problem TS had.
Is there anyone who can help me out fixing this?
I just installed Egoboo succesfully but I'm not able to play because of the same problem TS had.
Is there anyone who can help me out fixing this?