bugWarzone 2100 Project - Bugs: bug #12363, Endlessly spinning droids - bug in...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #12363: Endlessly spinning droids - bug in moveGetDirection

Submitted by:  Per I. Mathisen <per>
Submitted on:  Sat 27 Sep 2008 09:15:14 PM UTC  
 
Category: Engine: MovementSeverity: Important
Priority: 5 - NormalStatus: Confirmed
Assigned to: Dennis Schridde <devurandom>Open/Closed: Open
Release: svn/trunkOperating System: All
Planned Release: None

(Jump to the original submission Jump to the original submission)

Fri 12 Dec 2008 05:40:48 PM UTC, comment #6:

Hm, not this weekend. The week afterwards maybe. (Currently quite stressed.)

Anonymous
Fri 12 Dec 2008 04:33:51 PM UTC, comment #5:

devurandom - Any chance you could get the time to look at this bug?

Per I. Mathisen <per>
Project Administrator
Tue 30 Sep 2008 04:14:48 PM UTC, comment #4:

http://developer.wz2100.net/ticket/82

this ticket looks like this bug based on looking at the video but i could be wrong

Anonymous
Sun 28 Sep 2008 04:32:48 PM UTC, comment #3:

Scheduling for Fr, 03.10.
Do not wait if that is too late.

Dennis Schridde <devurandom>
Project AdministratorIn charge of this item.
Sun 28 Sep 2008 03:13:00 PM UTC, comment #2:

I suggest you look at the patch. Merely making it trigger the comparisons is apparently not enough.

Per I. Mathisen <per>
Project Administrator
Sun 28 Sep 2008 12:45:53 AM UTC, comment #1:

Would an epsilon comparison suffice there?
Or is the inner logic of that code flawed entirely?
I once wrote that code, but I would be glad if someone else could fix it. (devaway and stuff...)

Dennis Schridde <devurandom>
Project AdministratorIn charge of this item.
Sat 27 Sep 2008 09:15:14 PM UTC, original submission:

There is a subtle bug in moveGetDirection() that results in droids that spin endlessly in circles, going nowhere. The problem occurs when a droid gets a path, but is nudged off course, so that it appears closer to the second waypoint in the path than the first. When moveGetDirection tries to interpolate a direction for it between the two waypoints, it sends it in a circle between the two, since it does not understand that it could be closer to the second waypoint than the first.

Savegame that reproduces the bug is attached.

Also attached is a nasty hack to fix the problem.

Per I. Mathisen <per>
Project Administrator

 

Attached Files
file #4831:  spin.tar.gz added by per (231kB - application/x-gzip)
file #4832:  spin.diff added by per (1kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by devurandom (Posted a comment)
  • -unavailable- added by per (Submitted the item)
  • -unavailable- added by per
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 28 Sep 2008 04:32:48 PM UTCdevurandomAssigned toNone=>devurandom
    Sat 27 Sep 2008 09:15:14 PM UTCperAttached File-=>Added spin.tar.gz, #4831
      Attached File-=>Added spin.diff, #4832
      Carbon-Copy-=>Added devurandom
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup