Infantry get stuck behind tanks and trucks in Spring 1944

Infantry get stuck behind tanks and trucks in Spring 1944

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Infantry get stuck behind tanks and trucks in Spring 1944

Post by Godde »

Infantry are unable to push trucks and tanks in Spring 1944.
Infantry tries to move onto the position of the truck as they path through it. They might keep humping the truck forever unless new orders are given.
Infantry have a footprint of 1x1.
How can this be solved?

Image

This happens in both Spring 91.0 and in the latest test version as well(spring 91.0.1-1318-g7fbf6d7)
Attachments
Infantry stuck.jpg
Infantry trying to move past a truck
in Spring 1944
(237.44 KiB) Downloaded 1 time
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by PicassoCT »

reported for beeing carluv-o-phobic
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by smoth »

shit happened with gundam and I was forced to enable pushing. Some point in time the units started doing this. I always assumed it was part of some WIP code. Does this still happen in 0.92?
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by Godde »

Yes it does happen in the latest test version which will become 92.0
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by Godde »

No noticeable improvement.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by FLOZi »

Only the truck is pushResistant, the infantry should not be.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by smoth »

correct, because the truck is push resistant it doesn't move for the infantry. the infantry don't care, they keep trying to push the truck to go through. It isn't the trucks fault, it is the infantry.

it isn't only the infantry it is any unit trying to move past a push resistant unit. The current pathing model doesn't work without all units having push resistant off.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by smoth »

Any updates kloot? I am still seeing units trying to move through one another.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by Kloot »

With which engine build(s)?

Note: units will always* try to path through units because it is assumed that the collision code removes the need for one party to go around the other. When one unit in a colliding pair is push-resistant, this works less well (but still acceptably in the latest builds) and a solution would be to make the pathfinder treat such units as structures instead. Collisions between two push-resistant units are a total pain to support however, and that is why they no longer behave like in the 0.82.* days (as you found out: http://springrts.com/phpbb/viewtopic.php?f=14&t=29782)

* this tendency can be controlled with the default pathfinder on a per-MoveDef basis, see http://springrts.com/wiki/Movedefs.lua#speedModMults ('mobileIdleMult' is probably of the most interest to you)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Infantry get stuck behind tanks and trucks in Spring 194

Post by smoth »

so when pushing happens, are we always going to get the sliding or is that going to be addressed in the future?
Post Reply

Return to “Engine”