Page 1 of 1

maxslope deprecated, but there is no replacement?

Posted: 15 Dec 2013, 06:27
by Forboding Angel
[9:16:17 PM]

ok

so

maxslope has been deprecated

what is it's replacement?

otherwise, how are we supposed to define the maximum slope that a unit can be built upon?

I know that for mobile units maxslope is in the movedefs

but what about for buildings?

*copy pasta from moddev chat*

Re: maxslope deprecated, but there is no replacement?

Posted: 15 Dec 2013, 08:13
by Forboding Angel
Nevermind. Unclear changelog is unclear and murky.

Re: maxslope deprecated, but there is no replacement?

Posted: 15 Dec 2013, 10:02
by FLOZi
For future reference I believe the following is the case:

Unitdef tag is unchanged

Access via lua UnitDefNames["myunit"].maxSlope has been removed - use maxHeightDif ?

Re: maxslope deprecated, but there is no replacement?

Posted: 19 Dec 2013, 14:42
by NeonStorm
the program to compare files is called diff, not dif
everywhere it is written with 2 f

I hope this will not change. For the sake of short variable names, consistency, backward compatibility and personal preference.

BTW: With terraform (and weapon craters) it makes no sense that you can not build somewhere anyway. Instead it takes time.


What is the new default value? When will the manuals get their update? :twisted:

Re: maxslope deprecated, but there is no replacement?

Posted: 19 Dec 2013, 18:46
by FLOZi
NeonStorm wrote:the program to compare files is called diff, not dif
everywhere it is written with 2 f

I hope this will not change. For the sake of short variable names, consistency, backward compatibility and personal preference.

BTW: With terraform (and weapon craters) it makes no sense that you can not build somewhere anyway. Instead it takes time.


What is the new default value? When will the manuals get their update? :twisted:
Re-read my post.

Re: maxslope deprecated, but there is no replacement?

Posted: 19 Dec 2013, 22:42
by Jools
NeonStorm wrote:the program to compare files is called diff, not dif
everywhere it is written with 2 f
American/British english?

Re: maxslope deprecated, but there is no replacement?

Posted: 20 Dec 2013, 07:42
by Forboding Angel
NeonStorm wrote:the program to compare files is called diff, not dif
everywhere it is written with 2 f
Not that kind of diff, genius.

Re: maxslope deprecated, but there is no replacement?

Posted: 20 Dec 2013, 14:56
by Google_Frog
This seems to be a common error. We should make sure that people know the difference between their unit defs and UnitDefs.