builddistance set to low value ignored?

builddistance set to low value ignored?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

builddistance set to low value ignored?

Post by Caydr »

Got a unit here that I want to be right up next to whatever it's building. But it looks like the minimum value is 32 or so for builddistance. Lower than that, it just ignores it and builds from about 32 units or so away. Anyone know a way to bypass this or otherwise can it be fixed?

Thanks
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

I'm guessing this might be related to a low resolution mipmaplevel thing like I mention in that other thread about jammers.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

Maybe you can move the "Nanolator Point" closer to the middle of the unit, so it can't get as near?
Archiver
Posts: 3
Joined: 26 Sep 2006, 17:07

Post by Archiver »

builddistance has a hardset minimum of 128 according to the code, maybe I'm mistaken...
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Archiver wrote:builddistance has a hardset minimum of 128 according to the code, maybe I'm mistaken...
You better be mistaken.
Archiver
Posts: 3
Joined: 26 Sep 2006, 17:07

Post by Archiver »

Sim\Units\UnitDefHandler.cpp

Code: Select all

	ud.buildDistance=atof(tdfparser.SGetValueDef("64", "UNITINFO\\Builddistance").c_str());
	ud.buildDistance=std::max(128.f,ud.buildDistance);
Shouldnt the default value be 128 if it's then being raised up to 128 or above?
Post Reply

Return to “General Discussion”