MegaGlest Forum

Archives (read only) => Vanilla Glest => Linux and other ports => Topic started by: feldmann_markus on 31 July 2009, 07:32:24

Title: mouse movement let view be freeze
Post by: feldmann_markus on 31 July 2009, 07:32:24
Hi All,

i am on Debian Lenny kernel 2.6.30 with Nvidia 8600GT. I downloaded and compiled Glest(3.2.2) from source(svn).

When i try to move the view through pressing the left,right ... keyboard button during moving the view through moving the mouse than the view is freezed. My units can still go on, but i can not move the view.
Is this an already known problem ?
Any hints ?

regards Markus
Title: Re: mouse movement let view be freeze
Post by: hailstone on 5 August 2009, 09:19:13
Are you able to release the key and press it again or does any further input have no effect?
Title: Re: mouse movement let view be freeze
Post by: Platyhelminth on 8 August 2009, 16:55:43
I noticed that when you are moving the view with arrows keyboard buttons, if you move the mouse then the view freeze.

It is not OS specific.
Title: Re: mouse movement let view be freeze
Post by: hailstone on 9 August 2009, 00:49:50
OK. This is clearly a bug. I had noticed the freezing before but didn't realise it was the combination of keyboard and mouse.

Thanks Markus and Platyhelminth.

EDIT: Bug added to database - https://bugs.codemonger.org/show_bug.cgi?id=85
Title: Re: mouse movement let view be freeze
Post by: PolitikerNEU on 18 September 2009, 17:46:07
I have "fixed" the bug by an ugly hack (Making two "inputs"), the source code (together with my observers-hack) is available under
http://billhome.at/glest/glestf.zip (http://billhome.at/glest/glestf.zip)

If someone shows me how to make a patch I could provide it too. Only game.cpp, game_camera.h and game_camera.cpp are modified.
Title: Re: mouse movement let view be freeze
Post by: silnarm on 19 September 2009, 01:50:51
I have "fixed" the bug by an ugly hack (Making two "inputs"), the source code (together with my observers-hack) is available under
http://billhome.at/glest/glestf.zip (http://billhome.at/glest/glestf.zip)

If someone shows me how to make a patch I could provide it too. Only game.cpp, game_camera.h and game_camera.cpp are modified.

place an fresh 3.2.2 somewhere, or better, just the source directory, rename it something like 'glest-orig'... then place your modified source directory 'alongside' it, so you have,
/some/path/glest-orig
/some/path/glest-mine

then from /some/path to a diff, a quick look through the man page and I would recommend -bupr as options.

so you end up with something like (from /some/path),
> diff -bupr glest-orig glest-mine > myhacks.patch

To test it, copy it into glest-orig, then run patch there with -p1 (to strip the first directory off paths),
> patch -p1 < myhacks.patch
and verify it applied your changes. Voila.

Then let me know :) Wouldn't mind having a look at the observer hack, I was thinking of hacking your hack to watch AIs duking it out ;)
Title: Re: mouse movement let view be freeze
Post by: hailstone on 19 September 2009, 02:42:25
You should be able to use svn diff too if you check out latest trunk then apply your changes to the working copy. http://svnbook.red-bean.com/en/1.0/re09.html
Title: Re: mouse movement let view be freeze
Post by: PolitikerNEU on 19 September 2009, 08:11:42
So, here it is: http://billhome.at/myhacks.patch (http://billhome.at/glest/myhacks.patch), it contains both observer and mouse-hack but I could also provide a mouse-only-hack if your want.

Thanks silnarm for showing me how to do that, I didn't think it was that easy.