Slopemod 0 causes unit won't move except in little baby steps

Slopemod 0 causes unit won't move except in little baby steps

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

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

Slopemod 0 causes unit won't move except in little baby steps

Post by Forboding Angel »

Code: Select all

   HOVERTANK3 = {
      footprintx=3,
      footprintz=3,
      maxslope=26,
      maxwaterdepth=10,
      maxwaterslope=255,
      badwaterslope=255,
      crushstrength=20,
	  depthModParams = {
         minHeight      = 0,
         maxHeight      = 5000,
         maxScale       = 1.1,
         quadraticCoeff = 0.3,
         linearCoeff    = 0.3, -- deprecates "depthMod"
         constantCoeff  = 0.3,
       },
	  minwaterdepth=10,
	  heatmod=0.5,
	  slopemod=4,
	  heatmapping=false,
   },
   
   HOVERHBOT3 = {
      footprintx=3,
      footprintz=3,
      maxslope=90,
      maxwaterdepth=10,
      maxwaterslope=255,
      badwaterslope=255,
      crushstrength=20,
	  depthModParams = {
         minHeight      = 0,
         maxHeight      = 5000,
         maxScale       = 1.5,
         quadraticCoeff = 0.1,
         linearCoeff    = 0.1, -- deprecates "depthMod"
         constantCoeff  = 1,
       },
	  minwaterdepth=10,
	  heatmod=0.5,
	  slopemod=0,
	  heatmapping=false,
   },
HOVERTANK3 works perfectly
HOVERHBOT3 the exact same unit with this movetype will only move in short little steps. The only way to get it to move reasonably log distances is to make a custom formations line move there (because it issues move order is little steps).

Edit: Setting slopemod 0.1 fixes it.

Bug?
User avatar
eronoobos
Posts: 73
Joined: 27 Mar 2015, 20:25

Re: Slopemod 0 causes unit won't move except in little baby steps

Post by eronoobos »

https://github.com/spring/spring/search ... q=slopemod

i can't say i really know what i'm looking at, but i didn't see any place where multiplication by zero would be bad?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Slopemod 0 causes unit won't move except in little baby steps

Post by Forboding Angel »

I'll make a vid of it in action, hold on a sec.
Post Reply

Return to “Help & Bugs”