Author Topic: mouse movement let view be freeze  (Read 3586 times)

feldmann_markus

  • Guest
mouse movement let view be freeze
« 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

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: mouse movement let view be freeze
« Reply #1 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?
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Platyhelminth

  • Guest
Re: mouse movement let view be freeze
« Reply #2 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.

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: mouse movement let view be freeze
« Reply #3 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
« Last Edit: 9 August 2009, 01:01:06 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

PolitikerNEU

  • Guest
Re: mouse movement let view be freeze
« Reply #4 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

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.

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: mouse movement let view be freeze
« Reply #5 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

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 ;)
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: mouse movement let view be freeze
« Reply #6 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
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

PolitikerNEU

  • Guest
Re: mouse movement let view be freeze
« Reply #7 on: 19 September 2009, 08:11:42 »
So, here it is: http://billhome.at/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.