BlckKnght Posted January 14, 2014 Share Posted January 14, 2014 The soldier path finding in the game right now really annoys me. This is because it ignores the game's own movement mechanics regarding the TU cost of turning. This means that the paths it calculates for any reasonably long move will waste some TUs. Since using TUs efficiently is critical in the tactical game, this is a big issue. Any player trying to play the best they can will be forced to manually path the units around the map, using short straight segments, rather than letting the game handle the details for them. I'd much rather focus on tactical concerns rather than needing to fight against the game over efficient TU usage. To give an example, here's a plotted move costing 35 TUs: The unit turns five times, rather than running three squares forward (to be just behind the guy with the shotgun) and then turning just once before going the rest of the way diagonally. Four of the TUs are wasted on unnecessary turning, more than 10%! Here's what the path should have been: I'm not the first person to notice this, and it's been reported in some older threads like this one, but its not on the FAQ page and fixing it doesn't seem to be planned. I suspect most players who try to play optimally will have also noticed this issue (perhaps subconsciously), and have incorporated various workarounds for the issue into their gameplay (e.g. by moving soldiers only in short straight lines, rather than with long moves under the pathfinder's control). I have even more doubts about the path finding when I start looking at very long moves (longer than would actually be practical in a game turn). I'm not sure what's going on with this one, for instance (it seems to turn back and forth almost at random, wasting 6 TUs out of 77): Now, I know that path finding code in games can be quite complicated, but I don't think a fix for this would be too much work. After all, the game is already calculating and displaying the cost of the inefficient moves correctly, it just needs to use that same cost calculation to pick a more optimal route. If the pathfinder is using A* or something similar, you might be able to do this by including the unit's facing in the state information you generate for each potential move, and using that facing information to compute the TU costs. Anyway, I hope this issue can receive some attention. Quote Link to comment Share on other sites More sharing options...
Dead Dread Posted January 14, 2014 Share Posted January 14, 2014 (edited) I always thought it tried to draw as straight a line as possible, hence all the unneeded turns but your bottom pic seems to refute that. And yes I manually path my soldiers with as few turns as possible, nothing worse than making it to cover and being 1 or 2 TUs short of kneeling/firing cause you let the default pathing decide where to run. Another thing it often does is attack the last square on the route on an angle when more often than not you want your men facing along the squares not facing diagonally across them. Edited January 14, 2014 by Dead Dread Quote Link to comment Share on other sites More sharing options...
llunak Posted January 14, 2014 Share Posted January 14, 2014 Why try to handle this by accepting the problem and piling a silly workaround on top of it, instead of simply fixing it? Who wants the soldiers to walk like Robocop? A much better fix for this would be to not have any TU cost for turning while walking this way - the soldiers conceptually _do_ walk in a straight line after all, it's just because of the usage of tiles that it technically requires turning. Quote Link to comment Share on other sites More sharing options...
Chris Posted January 15, 2014 Share Posted January 15, 2014 Thanks for the post with the screenshots. Now you point it out, the pathfinding does behave rather strangely (I hadn't really noticed it before). I'll point the relevant coders to this thread. Quote Link to comment Share on other sites More sharing options...
Gijs-Jan Posted January 15, 2014 Share Posted January 15, 2014 This should be fixed soon :-) Quote Link to comment Share on other sites More sharing options...
Gijs-Jan Posted January 22, 2014 Share Posted January 22, 2014 The fix is in the latest beta. As always, if you find any discrepancies, please let us know! Quote Link to comment Share on other sites More sharing options...
Abbo Posted January 30, 2014 Share Posted January 30, 2014 I blindly moved a soldier into a blacked out house in the latest x patch and ended up being in the middle of a room inside an object unable to move out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.