adityaravishankar / command-and-conquer

Command & Conquer in HTML5/Javascript
777 stars 170 forks source link

Pathfinding Bug - Tanks sometime get stuck on mountains/in water #1

Open adityaravishankar opened 12 years ago

adityaravishankar commented 12 years ago

Jean-Louis Ly : Two of my tanks got stuck in the rocks while trying to move around because the area was too small and cluttered with other tanks. Here's a screenshot.

Martijn Reintjes: Tanks can drive up hills, but get stuck and can't move afterwards (there standing still on the slope).

Jeimas commented 12 years ago

I've also had the getting stuck error, but I've only had it while the tanks were set to combat mode (target selected). Tanks seems to disregard obstacles like mountains (hills) when in attack mode. Once attack mode is turned off, the tank will be stuck if standing in an inaccessible square.

CosmicBagel commented 12 years ago

Tanks will drive into the water or ridges and get stuck (effectively becoming turrets :p), this issue persists in the path-finding demo but not to the same severity (to test I just ordered them around that coastal area a whole bunch) v0.03 / path-finding

jcline commented 12 years ago

You can get them off the mountains, at least, by selecting one and repeatingly clicking somewhere they can go. They will move tiny bits at a time until they are free. I got both of them unstuck from this screenshot http://i.imgur.com/Mmq5d.png

ximus commented 12 years ago

Same here: http://i.imgur.com/kNWrO.png

ordhor commented 12 years ago

the tanks getting stuck still happening. Also I even got one time a tank moving up a cliff as if it was normal terrain