Page 1 of 1

Min Builddistance is too long

Posted: 26 Sep 2010, 23:37
by bobthedinosaur
Was recently changed to a min of 128, which is way too far for some mods/ and games. Any way to get past this minimum I will be happy with. The very min should be changed to 16 since that would be distance from the center of a 1x1 to the center of another 1x1, correct?

I talked to fatcontroller and he said he also uses builddistances under 128, which are now set to 128.

Any ways heres the mantis post:
http://springrts.com/mantis/view.php?id=2151

Re: Min Builddistance is too long

Posted: 27 Sep 2010, 01:16
by FLOZi
Various S44 units use distances under 128 also.

Re: Min Builddistance is too long

Posted: 17 Oct 2010, 03:17
by bobthedinosaur
I don't know if this was looked at again. If mod/game makers are making mistakes by making some distances too short, it is their own fault and other game makers shouldn't be penalized from such a generalized scale.

Re: Min Builddistance is too long

Posted: 17 Oct 2010, 11:29
by hoijui
test with this installer:
http://springrts.com/dl/buildbot/defaul ... a83a6b.exe

or under linux, with branch minBuildDistance on the main git repo.

Re: Min Builddistance is too long

Posted: 17 Oct 2010, 14:23
by slogic
bobthedinosaur wrote:...The very min should be changed to 16 since that would be distance from the center of a 1x1 to the center of another 1x1, correct?
If unit center is in the center of footprint then 8. Spring allows placing buildings side by side. But i think best _default_ build distance should be unit_footprint_width / 2 + single_footprint_width.

Re: Min Builddistance is too long

Posted: 17 Oct 2010, 19:24
by bobthedinosaur
so are you saying 1.5 x times width of builder?

Re: Min Builddistance is too long

Posted: 18 Oct 2010, 02:12
by FLOZi
hoijui's test with minimum of 16 was pretty badly broken.

Re: Min Builddistance is too long

Posted: 18 Oct 2010, 10:43
by hoijui
aha...

and now?

Re: Min Builddistance is too long

Posted: 18 Oct 2010, 11:58
by slogic
bobthedinosaur wrote:so are you saying 1.5 x times width of builder?
No: (builder_width) / 2 + 8.

Re: Min Builddistance is too long

Posted: 22 Oct 2010, 20:13
by KDR_11k
Units are square, not circular.

Re: Min Builddistance is too long

Posted: 28 Oct 2010, 21:29
by Argh
Yeah, unit width * 3 would probably be safest, IIRC any lower than that and the pathfinder went beserk, but that was awhile ago.

Re: Min Builddistance is too long

Posted: 29 Oct 2010, 20:21
by bobthedinosaur
Would it be hard/ costly to include the size of target being built into the equation along with the builder's size?

Re: Min Builddistance is too long

Posted: 30 Oct 2010, 01:34
by Niobium
bobthedinosaur wrote:I don't know if this was looked at again. If mod/game makers are making mistakes by making some distances too short, it is their own fault and other game makers shouldn't be penalized from such a generalized scale.
Exactly this, the engine shouldn't be overriding settings of mod makers.

I think the number of formulas proposed for a formula-based approach shows the inappropriateness of a formula-based approach, in that it is unlikely to satisfy everyone/all the special cases and we end up back in square one.

In addition a formula-based approach is something which should be handled with lua in unitdefs_post, where the modmaker is free to use whatever wild formula they want in order to sanitize their buildDistances.

Re: Min Builddistance is too long

Posted: 14 Dec 2010, 18:46
by bobthedinosaur
any updates on this? the min build dis is pretty annoying for some games like Contact and S44.

Re: Min Builddistance is too long

Posted: 14 Dec 2010, 20:09
by hoijui
i made a test engine change, and the answer i got was apparently "it is broken", and to the question how it is broken, i got no answer. or it is something else that was broken, and nobody tested.
pro hint: read earlier posts.

Re: Min Builddistance is too long

Posted: 15 Dec 2010, 23:10
by bobthedinosaur
Can we get some more testers?

http://springrts.com/dl/buildbot/defaul ... 24f7cd.exe

For me it seems that for a practical bare minimum optimal build range a 1x1 unit building at point blank another 1x1 with builddistance of 38. Anything smaller is just not necessary. Although some small units will have to back up to build a large unit, but I have 1x1's building 10x10's easily.