From: Warzone 2. T. <in...@de...> - 2012-06-27 08:22:06
|
#3576: a truck chooses longer path for building or reparing defence structures -------------------------------------+------------------------------------- Reporter: anonymous | Type: bug Status: new | Priority: normal Milestone: unspecified | Component: other Version: 3.1 beta11 | Keywords: trucks paths structures Blocked By: | Blocking: Operating System: All/Non-Specific | -------------------------------------+------------------------------------- Example: Assume that there is a field without any obstacles, with a subfield 4 x 4: a4 b4 c4 d4 a3 b3 c3 d3 a2 b2 c2 d2 a1 b1 c1 d1 The truck is on the left lower side of defensive structures at a4, b3, c2, d1. Order the truck to build a defensive structure at c3. Sometimes, the truck chooses the shortest path to build the structure at c3 after commming to b2. More often, the truck goes to the upper right side of the map and builds the structure at c3. There is a similar behaviour when c3 structure is damaged and the truck goes to repair the structure. This type of behaviour is easier to spot when diagonally placed structures are much longer than in this example. I expected trucks to choose the shortest path and stay at the same side of diagonal for building or repairing structures that are diagonally accessible. Does orientation of the truck influence algorithm for choosing path? Maybe allowing trucks to move backward would result with more the shortest paths and staying on friendly side of the diagonal instead of going to unfriendly side. -- Ticket URL: <http://developer.wz2100.net/ticket/3576> Warzone 2100 Trac <http://developer.wz2100.net/> The Warzone 2100 Project |