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: 14673
Joined: 17 Nov 2005, 02:43

maxslope deprecated, but there is no replacement?

Post 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*
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: maxslope deprecated, but there is no replacement?

Post by Forboding Angel »

Nevermind. Unclear changelog is unclear and murky.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: maxslope deprecated, but there is no replacement?

Post 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 ?
User avatar
NeonStorm
Posts: 173
Joined: 23 May 2012, 18:36

Re: maxslope deprecated, but there is no replacement?

Post 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:
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: maxslope deprecated, but there is no replacement?

Post 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.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: maxslope deprecated, but there is no replacement?

Post by Jools »

NeonStorm wrote:the program to compare files is called diff, not dif
everywhere it is written with 2 f
American/British english?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: maxslope deprecated, but there is no replacement?

Post 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.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: maxslope deprecated, but there is no replacement?

Post 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.
Post Reply

Return to “Game Development”