Page 1 of 1

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

Posted: 17 Mar 2016, 00:59
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?

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

Posted: 17 Mar 2016, 05:49
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?

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

Posted: 17 Mar 2016, 07:37
by Forboding Angel
I'll make a vid of it in action, hold on a sec.

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

Posted: 17 Mar 2016, 07:51
by Forboding Angel