maxslope deprecated, but there is no replacement?

maxslope deprecated, but there is no replacement?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14527
Joined: 17 Nov 2005, 02:43

maxslope deprecated, but there is no replacement?

Post by Forboding Angel » 15 Dec 2013, 06:27

[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*
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14527
Joined: 17 Nov 2005, 02:43

Re: maxslope deprecated, but there is no replacement?

Post by Forboding Angel » 15 Dec 2013, 08:13

Nevermind. Unclear changelog is unclear and murky.
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6080
Joined: 29 Apr 2005, 01:14

Re: maxslope deprecated, but there is no replacement?

Post by FLOZi » 15 Dec 2013, 10:02

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 ?
0 x

User avatar
NeonStorm
Posts: 173
Joined: 23 May 2012, 18:36

Re: maxslope deprecated, but there is no replacement?

Post by NeonStorm » 19 Dec 2013, 14:42

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:
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6080
Joined: 29 Apr 2005, 01:14

Re: maxslope deprecated, but there is no replacement?

Post by FLOZi » 19 Dec 2013, 18:46

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.
0 x

User avatar
Jools
XTA Developer
Posts: 2797
Joined: 23 Feb 2009, 16:29

Re: maxslope deprecated, but there is no replacement?

Post by Jools » 19 Dec 2013, 22:42

NeonStorm wrote:the program to compare files is called diff, not dif
everywhere it is written with 2 f
American/British english?
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14527
Joined: 17 Nov 2005, 02:43

Re: maxslope deprecated, but there is no replacement?

Post by Forboding Angel » 20 Dec 2013, 07:42

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.
0 x

Google_Frog
Moderator
Posts: 2423
Joined: 12 Oct 2007, 09:24

Re: maxslope deprecated, but there is no replacement?

Post by Google_Frog » 20 Dec 2013, 14:56

This seems to be a common error. We should make sure that people know the difference between their unit defs and UnitDefs.
0 x

Post Reply

Return to “Game Development”