Wheeled units get stuck

Wheeled units get stuck

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Wheeled units get stuck

Post by code_man »

Wheeled units (turnInPlace = false,) have this awful tendency to get stuck on cliffs and i have no what to do about this.

Can i lua my way out or will devs do something about it enginewise?
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Wheeled units get stuck

Post by Jools »

Also noted this happening.Bring back the ping pong?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Wheeled units get stuck

Post by Silentwings »

What engine are you using? I remember they used to do this alot but haven't seen any problems with it in 95/96.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Wheeled units get stuck

Post by Jools »

It happens sometimes with 96 too, especially on maps with edges. Usually jeffies etc get stuck on the edges and can only be atlased out.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Wheeled units get stuck

Post by Silentwings »

Never seen it, but it doesn't sound like smth you could easily avoid with lua. You could periodically check over all mobile units to see if they are right next to a cliff edge and have been there for a while, and if so move them, but it sounds a bit unreliable.
will devs do something about it enginewise?
That would presumably need you to make a bug report.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: Wheeled units get stuck

Post by code_man »

Silentwings wrote:What engine are you using? I remember they used to do this alot but haven't seen any problems with it in 95/96.
0.96, ok so file a bug report eh?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Wheeled units get stuck

Post by Silentwings »

I would think so, although I've never seen what you're describing myself - obviously it should contain a replay.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Wheeled units get stuck

Post by Jools »

Yeah, and try to make the replay as short as possible.

I was trying to look for replays, but it doesn't happen very often for me. Maybe it's only on certain maps, so could be cause of map.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: Wheeled units get stuck

Post by code_man »

Ok il try to make one.
Dont replays require the game it was made with to be availble too?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Wheeled units get stuck

Post by Silentwings »

Yes they do.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: Wheeled units get stuck

Post by code_man »

Ok this here should briefly show whats up, attached the replay.

I also here attach a link to my game but dont distribute it needlesly as its in a crappy state and not really fit for playing yet.
Dont show screenshots yet either unless nececary please.
https://owncloud.cybnet.ch/public.php?s ... b9398d8c74
Attachments
20140408_111335_IsisDelta_v02_96.sdf
(25.67 KiB) Downloaded 5 times
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Wheeled units get stuck

Post by Silentwings »

Bug reports about the engine should go to springrts.com/mantis.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: Wheeled units get stuck

Post by code_man »

Ok then il put up there later.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Wheeled units get stuck

Post by knorke »

Between engines units physics and pathing usually changes a bit.
It might be better in next version, it might be worse or it might just be "different."

if units are able to reverse (see maxReverseVelocity on wiki) I find they can often free themself a bit easier.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: Wheeled units get stuck

Post by code_man »

The units i tested it with are capable of moving backwards, but that doenst seem to help them much.

The thing is depending on the map it can be quite bad, sure i could just make them turn in place, but that would make the entire parameter pointless.
So something should be done about this.

Sidenote: i noticed said units turn in place when given an attack order within weapon rang and in direct control mode aswel, is this a glitch too?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Wheeled units get stuck

Post by smoth »

is the unit getting stuck because it moved into a place where it normally would not path to?

If so, this could be an issue with your units getting pushed into this place.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Wheeled units get stuck

Post by Jools »

Yes, the units get stuck because they end up in area that is "red" in F2. I don't think it's always because of pushing or explosions etc, I think it's also sometimes PFS directing them there.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Wheeled units get stuck

Post by smoth »

pfs now pushes units out of the way more than before. I thought kloot had a check before a unit gets pushed out of the way of another unit but apparently not :(
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Wheeled units get stuck

Post by Jools »

But it's better that units get stuck than that they start the ping pong. I can understand that units get stuck, it probbaly happened during Operation_Barbarossa as well. But ping pong never happens in real life.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Wheeled units get stuck

Post by smoth »

They do and yeah the ping pong was silly, I think maybe a check should happen before a unit is pushed to see IF the unit can be pushed in that direction. I absolutely loathe having a unit getting pushed INTO features or terrain they cannot escape.
Post Reply

Return to “Game Development”