[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] KOLF strange problem
From:       "Paul Broadbent" <dbdkmezz () gmail ! com>
Date:       2007-10-24 20:07:44
Message-ID: f3b07b8e0710241307n75b90dcp7d0de3a5ecb95127 () mail ! gmail ! com
[Download RAW message or body]

Thanks

I think what happened was that the penultimate shot left the ball so
close to the wall that when you played the last shot the game thought
you were on the other side of it, and then collided the wrong way.
I've uploaded a change which should prevent the ball from stopping
right next to a wall, so (hopefully) the problem will be fixed. :)

There could well be wall collision bugs left in though, since I've not
got huge amount of time for testing at the mo.

Paul

On 10/23/07, Jan Vongrej <jan.vongrej@gmail.com> wrote:
> Hello,
>    i did made the updates for the game.cpp. I did 4 shots (default two
> player game). Last took me out of the field.
>
> output :
>
> kolf(16945)/kdecore (KLocale) KLocalePrivate::initEncoding:
> Defaulting to ISO 8859-1 encoding.
> kolf(16945) KolfGame::shotStart: Start started. BallX: 200 , BallY:
> 360 , Putter Angle: -1.4289 , Vector Strength:  5.4375
> kolf(16945) KolfGame::shotStart: Start started. BallX: 200 , BallY:
> 360 , Putter Angle: -1.86225 , Vector Strength:  6.9375
> kolf(16945) KolfGame::shotStart: Start started. BallX: 179.345 ,
> BallY: 248.196 , Putter Angle: -1.24693 , Vector Strength:  6.9375
> kolf(16945) KolfGame::shotStart: Start started. BallX: 154.713 ,
> BallY: 319.549 , Putter Angle: -1.68678 , Vector Strength:  6.9375
>
> image after shot :
>
> http://frix.fri.uniza.sk/~congo/kolf-01.png
>
> With kind regards,
>
> Jan Vongrej
>
>
>
>
>
> On 10/23/07, Paul Broadbent <dbdkmezz@gmail.com> wrote:
> > sorry about that, I meant game.cpp
> >
> >
> > On 10/23/07, Jan Vongrej <jan.vongrej@gmail.com> wrote:
> > > Ehm ;-))) I did searched little bit the sources and the line you wrote
> > > was good but the file is game.cpp and not kolf.cpp ;-))) i am on it.
> > >
> > > On 10/23/07, Jan Vongrej <jan.vongrej@gmail.com > wrote:
> > > > Hello,
> > > >
> > > >   i am sorry i did not have time yesterday but now i wanted to do it.
> > > > But unfortunately my local kolf.cpp has only 905 lines and you want me
> > > > to put it on the line 3769. So please update the number and i will do
> > > > it ASAP today.
> > > >
> > > > with kind regards,
> > > >
> > > > Jan Vongrej
> > > >
> > > > On 10/21/07, Paul Broadbent <dbdkmezz@gmail.com> wrote:
> > > > > It still happens, arrrg! I'd just rewritten lots of the wall collision
> > > > > code and thought I'd fixed that bug :(
> > > > >
> > > > > Would you mind adding a line your local copy of kolf's code and
> > > > > recompiling and reproducing the bug, so I can easily reproduce the bug
> > > > > my end and fix it?
> > > > >
> > > > > What you need to do is add this line of code:
> > > > >         kDebug(12007) << "Start started. BallX:" << ball()->x() << ",
> > BallY:"
> > > > > << ball()->y() << ", Putter Angle:" << putter->curAngle() << ", Vector
> > > > > Strength: " << strength;
> > > > > at line 3769 of kolf.cpp. Once you've done that could you recompile
> > > > > and try and reproduce the bug, and when it happens send me the last
> > > > > line of debug output?
> > > > >
> > > > > If you don't have time to do that then just giving a very detailed
> > > > > description of the shot which caused the ball to go through would be
> > > > > usefull.
> > > > >
> > > > > Thanks
> > > > >
> > > > > Paul Broadbent
> > > > > Kolf Maintainer
> > > > >
> > > > > On 10/21/07, Jan Vongrej <jan.vongrej@gmail.com > wrote:
> > > > > > Hello,
> > > > > >
> > > > > >   hmmm good point ;-))) nexttime i should try to look for bugs first
> > > > > > ;-))) but anyway i just wanted to write that i reproduced the error
> > > > > > without problems. KDE4 session screenshot :
> > > > > > http://frix.fri.uniza.sk/~congo/kde4-games2.png
> > > > > >
> > > > > > with king regards,
> > > > > >
> > > > > > Jan Vongrej
> > > > > >
> > > > > > On 10/21/07, Fela Winkelmolen <fela.kde@gmail.com> wrote:
> > > > > > > On Sunday 21 October 2007, Jan Vongrej wrote:
> > > > > > > > Hello All,
> > > > > > > >
> > > > > > > >   i did yesterday compiled KDE4  with kdegames and kdenetwork.
> > Today i
> > > > > > > > was trying to test the games that i like. And i have found some
> > > > > > > > problem with KOLF. As you can see in
> > > > > > > > http://frix.fri.uniza.sk/~congo/kde4-games.png
> > i did started to play
> > > > > > > > with 2 normal players ( no computer ) and i was able to get the
> > ball
> > > > > > > > out of the field. I will try to reproduce it if it is
> > reproducible
> > > > > > > > error. But does anyone know about such behavior ?
> > > > > > > >
> > > > > > > > with kind regards,
> > > > > > > >
> > > > > > > >  Jan Vongrej
> > > > > > > > _______________________________________________
> > > > > > > > kde-games-devel mailing list
> > > > > > > > kde-games-devel@kde.org
> > > > > > > >
> > https://mail.kde.org/mailman/listinfo/kde-games-devel
> > > > > > >
> > > > > > > sounds like
> > http://bugs.kde.org/show_bug.cgi?id=46532
> > > > > > > _______________________________________________
> > > > > > > kde-games-devel mailing list
> > > > > > > kde-games-devel@kde.org
> > > > > > >
> > https://mail.kde.org/mailman/listinfo/kde-games-devel
> > > > > > >
> > > > > > _______________________________________________
> > > > > > kde-games-devel mailing list
> > > > > > kde-games-devel@kde.org
> > > > > >
> > https://mail.kde.org/mailman/listinfo/kde-games-devel
> > > > > >
> > > > > _______________________________________________
> > > > > kde-games-devel mailing list
> > > > > kde-games-devel@kde.org
> > > > > https://mail.kde.org/mailman/listinfo/kde-games-devel
> > > > >
> > > >
> > > _______________________________________________
> > > kde-games-devel mailing list
> > > kde-games-devel@kde.org
> > > https://mail.kde.org/mailman/listinfo/kde-games-devel
> > >
> >
> >
> > _______________________________________________
> > kde-games-devel mailing list
> > kde-games-devel@kde.org
> > https://mail.kde.org/mailman/listinfo/kde-games-devel
> >
> >
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel@kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
>
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic