PLZ HELP fix this behavior

PLZ HELP fix this behavior

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

PLZ HELP fix this behavior

Post by triton »

Image
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: PLZ HELP fix this behavior

Post by Silentwings »

It looks as though the ship has been given a move order to a location that it can't actually reach. What do you think is wrong?

Without a short demo that reproduces the behaviour, can't say anything further.
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

Well, this happenned here : http://replays.springrts.com/replay/549 ... 107011b24/
But this happens in every game with ships.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: PLZ HELP fix this behavior

Post by Silentwings »

I am not watching a 38 minute replay. I am happy to watch a 30 second replay. Also:
What do you think is wrong?
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

what is wrong?



everything almost? the shaking, the fact he's sliding stupidly and keep his speed while in collision? Can't collision set speed to 0? Units can turn while immobile. Also the ships shouldnt try to reach a point he can't, until the end of game.

If u wanna try to see this bad behavior, start a game alone, use cheat command, put a battleship close to shore and move it.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: PLZ HELP fix this behavior

Post by Silentwings »

The ship does not collide with any other units in your gif. Afaics all that is involved is interaction with impassable terrain. Here is the long version of viewtopic.php?f=11&t=36754#p585263 :

I suspect that what you're seeing is the normal behaviour for when a player repeatedly makes a unit move into a place where that unit cannot go: it shakes/bounces off back into where it can move again.

A move order into impassable terrain does not cause the effect you display if the destination is fully in impassable terrain - in that case the unit moves in as close as it can reasonably go and then stops gracefully. However, if the destination is on or very near the borderline of impassable terrain, the unit will try to push right in and hope for the best.

From your gif, I am unable to tell with any certainty if there is a player spamming/on-repeating move orders onto the borderline of impassable terrain, and am also unable to see the passability map of the ship, or the shape of the sea bed. It's not clear which BA version you're using, so I also cannot readily check unit stats... a gif conveys far less information than a short replay could.

If my guess is correct, it seems sensible to report this to mantis if you think it is a bug, or want to make a feature request for different treatment of move orders directing units onto the borderline of impassable terrain; you should include a short replay that you have created to replicate the behaviour.
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

I am not stupid, the player is not spamming, its standard behavior we have since month and month in 103 104 everywhere.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: PLZ HELP fix this behavior

Post by Silentwings »

K, in that case for me to look any further a short replay which replicates the behaviour (without having to watch a game) is probably needed. My attempt to replicate your gif without spamming move orders, on the map I was making at the time, was not very successful.
User avatar
OPAdolfSatan
Posts: 35
Joined: 28 Nov 2016, 10:27

Re: PLZ HELP fix this behavior

Post by OPAdolfSatan »

triton wrote:Image

By the looks of it, Triton tried to buff up that destroyer with the ability to walk on land GG. Fix one thing break 10 things, pretty good ratio.
"It's still a test"

Also when are we going to have turrets to kill all upcoming unit micro? Since devs so what called buff and nerf some aa to kill air thats already hard to micro. We just need some land defences too like a tower that kills all upcoming scouts of 2000 range its the way to fix ba IMO. This will help every new player or players who cant kill units that are well managed,so micro is no longer need in BA just in BA.
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

Thx for your help adolf, you are the best. <3
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: PLZ HELP fix this behavior

Post by Kloot »

Can't collision set speed to 0? Units can turn while immobile.
It could, but units constantly stopping dead in their tracks would be extremely annoying.
Also the ships shouldnt try to reach a point he can't, until the end of game.
Here the waypoint *was* theoretically reachable, but placed in shallow water. Collision detection kept pushing the ship away because (while trying to approach this point) its *footprint rectangle* started overlapping the non-traversable shoreline, an edge condition that can easily be detected by a Spring.TestMoveOrder query.

These problems were anticipated long ago, so there is a MoveDef key called "allowTerrainCollisions" which controls whether collision handling takes the entire footprint into account or not. Unfortunately setting it to false carries a risk of units getting stuck on terrain more often, which is up to you to weigh against the impact of seeing jittery movements every now and then.
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: PLZ HELP fix this behavior

Post by raaar »

I agree with OP and complained about this in the past too.

This is an engine fail. It makes spring engine physics look broken.

Such fails also happen for land units when turning near impassable terrain.

If something causes a unit to move slighty into impassable terrain, it should gently slide back to passable terrain, and how it's done could take into account the unit's limitations in terms of velocity, turnrate, acceleration.

Is this reported as an issue on mantis?
Manoa
Posts: 79
Joined: 19 May 2008, 18:51

Re: PLZ HELP fix this behavior

Post by Manoa »

this ship problem don't look so good, it is mega lol but we don't wanne spring to be a game for lol, this option of mod option is not mutch of a option, neither of them are good options, I know you guys engine programmers look at this like a small problem and it the true - it is small problem, but the game is made from many small things and user experience is a big thing made from small things :)
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: PLZ HELP fix this behavior

Post by Kloot »

This has already been fixed in upstream maintenance builds.

All BA needs to do is update, we can not help further.
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

This video is from 104.1-399-ga506a03 maintenance : Image

Is it possible for us to improve this behavior, like something a bit more realistic?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: PLZ HELP fix this behavior

Post by Silentwings »

something a bit more realistic?
You are trying to sail a large ship into shallow coastal water & dry land - perhaps a loud cracking noise followed by an expensive salvage operation?
User avatar
PtaQ
Posts: 186
Joined: 15 Sep 2009, 10:40

Re: PLZ HELP fix this behavior

Post by PtaQ »

Don't forget to involve a love story plot too!
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: PLZ HELP fix this behavior

Post by Anarchid »

A massive improvement would be for this sliding behaviour to obey unit's maxVelocity constraint. Very often units will suddenly obtain momentary speeds that are much larger than what they are able to do when walking in a straight line.

This is extremely jarring and i don't think it's required for the sliding pathing mechanism to work.
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

Another weird behavior we have since months, is it BA10 related? Can you help here? We have this issue on every engine version.

It's just 5 stumpies + 1 move order
Image

P.S : this issue doesn't only affect stumpies ^^
User avatar
triton
Lobby Moderator
Posts: 330
Joined: 18 Nov 2009, 14:27

Re: PLZ HELP fix this behavior

Post by triton »

Image

2 heavy tank stucked forever

Image

1 corvette stucked forever, issue happenned on latest maintenance engine version.

It would be awesome to organize a discussion between Doo and some engine devs.
Post Reply

Return to “Help & Bugs”