19 themes/skins available for your browsing pleasure. A variety of looks, 6 AC2 exclusives - Featuring SMACX, Civ6 Firaxis, and two CivII themes.[new Theme Select Box, bottom right sidebar - works for lurkers, too]
0 Members and 1 Guest are viewing this topic.
and I could write a correct pathfinding function myself in minutes.
Increase it to 256, and I'm not sure I'd ever reach that except in a genuine infinite loop,
Quote from: Douglas on December 14, 2019, 01:17:23 AMand I could write a correct pathfinding function myself in minutes.You should then! Nothing like a pull request for getting what you actually want out of Open Source.And you should test it. Which will not take "minutes".
QuoteIncrease it to 256, and I'm not sure I'd ever reach that except in a genuine infinite loop,But what about players who aren't you who think their game is freezing up? It's all about how long such things go on.
1) The pathfinder is not actually a path finder, but a path guesser. Way too many times, I've had it ignore obvious mag tube routes, sometimes even when the mag tube is an utterly trivial single square deviation from the direct line path. I've even had it go off the mag tubes for a single square, only to move right back on one square later, when there's another mag tube square connecting them without even requiring a greater number of steps. Worst of all, I've had a unit repeatedly move back and forth between the same two squares until it ran out of movement, never actually getting closer to the destination!On top of this, it doesn't check for zone of control restrictions, and gets stuck, unable to execute a goto order, when it reaches a point where the next step it tries to take is blocked by ZoC.
For the AI it would be much easier if it could move anyway, but maybe taking a little bit of damage for passing an enemy ZoC.
Also, I don't recall ever patching terraforming code in that way. I'm not certain off hand how to fix this issue. There are some core terraforming functions I haven't worked on yet. Maybe some kind of check/refresh when square/map gets modified. I've added it into my bug tracking notes for future reference.
1) ... Way too many times, I've had it ignore obvious mag tube routes, sometimes even when the mag tube is an utterly trivial single square deviation from the direct line path. I've even had it go off the mag tubes for a single square, only to move right back on one square later, when there's another mag tube square connecting them without even requiring a greater number of steps...