FootPrintz

FootPrintz

Requests for features in the spring code.

Moderator: Moderators

User avatar
rcdraco
Posts: 781
Joined: 22 Nov 2006, 02:50

FootPrintz

Post by rcdraco »

Because a 2x5 tank is not 5x5 ever, and nor is it square, it's not fucking there, what is colliding.

If it's going to be square, bind it to the base object, if you want it to unturnable, make it a circle, don't make it a hassle for any kind of long or wide units.

The unit isn't in 30% of that 5x5, so why should it be colliding, it looks sloppy on me as a modder, and spring as an engine. Unless this is oh mah gosh we can't fix it, only that guy that left can do it, it should be done. Smoth can't complain, because it won't change most mods, but it would allow shaped X by Z, to allow rectangles that follow the angle, or circles which wouldn't get caught on corners.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Re: FootPrintz

Post by Snipawolf »

I would like footprints to rotate with their units.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: FootPrintz

Post by lurker »

As far as letting them turn, it's difficult and I refer you to the archive. But using circles sounds like it could improve diagonal movement, and it might be feasable.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: FootPrintz

Post by smoth »

rcdraco wrote: Smoth can't complain
fuck you draco, what the fuck does this have to do with me!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: FootPrintz

Post by KDR_11k »

So your 2x5 unit goes into a 2 spot wide passage and turns 90°...
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: FootPrintz

Post by Peet »

And tears the map in two.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: FootPrintz

Post by smoth »

like japanese porn
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Re: FootPrintz

Post by Sheekel »

KDR_11k wrote:So your 2x5 unit goes into a 2 spot wide passage and turns 90°...
is it impossible to tell the unit it cant turn 90 degrees in that situation?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: FootPrintz

Post by KDR_11k »

Oh you could prevent the unit from turning (provided you have a good way of handling the footprint shape for units not turned in one of the cardinal directions) but it won't path to avoid that, it'll just get stuck.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: FootPrintz

Post by Pxtl »

KDR_11k wrote:Oh you could prevent the unit from turning (provided you have a good way of handling the footprint shape for units not turned in one of the cardinal directions) but it won't path to avoid that, it'll just get stuck.
Well, you could set the movetype to path for the full square, and create a variant of the push-resolution system for rotating (yay, more pushing!) but in the end, what would you get for it?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: FootPrintz

Post by KDR_11k »

If it pathes at full width anyway why not make its footprint match?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: FootPrintz

Post by lurker »

You'll be able to fit them in closer in bunches, even though they will tend to ignore narrow passages.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: FootPrintz

Post by Argh »

I like the circle idea.
User avatar
rcdraco
Posts: 781
Joined: 22 Nov 2006, 02:50

Re: FootPrintz

Post by rcdraco »

My car is 2 wide, 5 long, 3x5=15 squares unused by the unit, but they're still colliding with rocks, the unit is set at a movetype of 6x6, since my rule is to always go over to give it more room, it still ends up hitting things. :P

Either a circle, or TA style turn with the unit X and Z's, the squares has corner collisions, circles have no corners. :P I think that a rotatable footprint would make the most sense, TA had it, and it would do nothing but good, if it means rewriting it, we can all look at it until someone brainfarts and makes a better pathfinder or whatever we need to get this to work.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: FootPrintz

Post by Argh »

My car is 2 wide, 5 long, 3x5=15 squares unused by the unit, but they're still colliding with rocks, the unit is set at a movetype of 6x6, since my rule is to always go over to give it more room, it still ends up hitting things
If it's still hitting things... have you given it the correct size in the MoveInfo? That's what matters- not what's in the Unit's FBI file. IOW, if you give a unit a 6X6 Footprint, and a 3X3 footprint in its MoveType, it'll use the 3X3, not the 6X6.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Re: FootPrintz

Post by Snipawolf »

The difference is "Perception of size" and "Actual size."

The actual size is whether it collides or not.
(This is fbi, I think)

The perceived size is where it thinks it can go.
(This is moveinfo, I think)
User avatar
rcdraco
Posts: 781
Joined: 22 Nov 2006, 02:50

Re: FootPrintz

Post by rcdraco »

It's a 5x5 footprint, 6x6 in moveinfo already...
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: FootPrintz

Post by Tribulexrenamed »

All of this is stupid except for the circles.
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Re: FootPrintz

Post by Noruas »

If we allowed the turning on the footprint, technically all spring needs to calculate is how wide it is, and just assume its a square on the moveinfo and ignore how long it is, and in general you could get away with 4x5 and 4x3 no? If it was 4x8 and it acted like it was 4x4, it may be sloppy looking, but hell it will turn.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: FootPrintz

Post by KDR_11k »

Take a narrow passage with a bend in it, a square unit might fit through but a long unit with the same width would not be able to turn.
Post Reply

Return to “Feature Requests”