1 (edited by raiylo 2009-11-06 12:03:24)

Topic: [HELP] 0.5.2 Problem with binds

Alo.

I have one big problem with binds in new version. I back to this game after few months but now i see that i cant present form like before. I want bind shotgun - mousewheelup, grenade launcher - mousewheeldown but as i see this dont work, why ?

2

Re: [HELP] 0.5.2 Problem with binds

I use same controls like you and it works great. I set it in the settings of the game's GUI and it works.
Try to go to settings and set it again.
If it will not work, add these lines at the end of your settings.cfg file:

bind mousewheelup "+weapon4"
bind mousewheeldown "+weapon3"
Goodbye all. Account inactive since March 2011.

3 (edited by ghost 2009-11-06 15:39:47)

Re: [HELP] 0.5.2 Problem with binds

in version 0.5.2 some commands (like +weapon1 etc.) don't work with mouswheel anymore. Use version 0.5.1 instead. If you don't want to pass on 0.5.2 you can do some changes to the source and then compile it(that's what i did, but i only changed it back to the way it was in 0.5.1, but there is some deeper problem to it, so it's only a workaround). If you want to do this, get the 0.5.2 source, open teeworlds-0.5.2-src/src/game/client/components/controlls.cpp with the editor of your choice. Then do the follwing change:

In line 38 remove:

*set->variable = console_arg_int(result, 0) ? *set->variable = set->value : 0;

and add

if (console_arg_int(result, 0))
        *set->variable = set->value;

instead of that.
After doing this compile tw and mouswheel will work with those commands.

But as I said this is only a work around, and the devs know about the problem, so I hope it will be fixed in the next release smile.

4

Re: [HELP] 0.5.2 Problem with binds

khubajsn - ... i said that it doesnt work.

ghost - now i see that in ver 0.5.1 works well. Thanks a lot for solution, i like c++ programming,d3d9,opengl so i think that i will do it smile