build position offset

build position offset

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
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

build position offset

Post by jcnossen »

piece of my logfile:
Added build location: x=3680.000000,z=3616.000000
Unit created: 4997, UnitName: CORMEX, x=3688.000000,z=3624.000000
Why is it that (8,8) (or one square size) is added to the build location that is given through GiveOrder()? I can hack around it but I'm just interested in why it is.
User avatar
Neuralize
Posts: 876
Joined: 17 Aug 2004, 23:15

Post by Neuralize »

Probably to fix it so the buildings can be line built correctly, or just so there's at least one square between buildings. However, merely a speculation.

Now, this thread should really be about how directional building has not been implimented, and must be!
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Eh, directional building, what do you mean by that?
User avatar
Neuralize
Posts: 876
Joined: 17 Aug 2004, 23:15

Post by Neuralize »

Directional factories, like, building a factory that faces and pumps out units north/south/east/west.
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

The buildings are lined up to fit on the pathfinding grid, although some are lined up slightly wrong which causes the unit stuck in factory bug among other things. Will be fixed in the next release.
Post Reply

Return to “Engine”