# Modify road walk speed

**URL:** <https://discourse.stonehearth.net/t/modify-road-walk-speed/32972>\
**Category:** Modding\
**Created:** [December 12, 2017, 2:51am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972 "2017-12-12T02:51:53Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kodi4444](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kodi4444/32/68781_2.png) [@Kodi4444](https://discourse.stonehearth.net/u/Kodi4444)\
**Post date:** [December 12, 2017, 2:51am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/1 "2017-12-12T02:51:53Z")

</div>

where is the file that says Hearthlings walk at 1.1 x speed on roads?  
because I would like to modify that multiplier slightly.  
@Relyss

---

<div class="post-metadata">

**Author:** ![genboom](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/genboom/32/51397_2.png) [@genboom](https://discourse.stonehearth.net/u/genboom)\
**Post date:** [December 12, 2017, 3:11am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/2 "2017-12-12T03:11:16Z")

</div>

yeah I was hoping different road types, with edgers, would have different speeds. the smoother the better  
@stonemonkey

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [December 12, 2017, 3:16am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/3 "2017-12-12T03:16:28Z")

</div>

\data\build\prototypes\road\road.json

“modifier”: 0.2, is the speed  
"nav\_preference\_modifier": 0.2 is the influence on the a.i.

You can have a path that is fast but they avoid, or one that they prefer and is slow, adjusting those.

---

<div class="post-metadata">

**Author:** ![Kodi4444](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kodi4444/32/68781_2.png) [@Kodi4444](https://discourse.stonehearth.net/u/Kodi4444)\
**Post date:** [December 12, 2017, 4:03am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/4 "2017-12-12T04:03:17Z")

</div>

I changed the modifier and it didn’t seem to do anything so I cranked it up a lot to see if there was any difference and there was no difference. do I need to change an additional file?

---

<div class="post-metadata">

**Author:** ![max99x](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/max99x/32/40094_2.png) [@max99x](https://discourse.stonehearth.net/u/max99x)\
**Post date:** [December 12, 2017, 5:05am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/5 "2017-12-12T05:05:25Z")

</div>

Existing roads won’t change. It’ll only apply to newly built ones.

---

<div class="post-metadata">

**Author:** ![stonemonkey](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonemonkey/32/56475_2.png) [@stonemonkey](https://discourse.stonehearth.net/u/stonemonkey)\
**Post date:** [December 12, 2017, 10:48pm UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/6 "2017-12-12T22:48:07Z")

</div>

> [@genboom](#):
>
> yeah I was hoping different road types, with edgers, would have different speeds. the smoother the better  
> @stonemonkey

Ha! As stated I only decorate the existing roads. It would be cool to upgrade the roads as well but my pavers are like a rug for the road and so don’t really affect anything. They will be adding appeal once I figure out how to do that without completely killing the appeal sub-system.

---

<div class="post-metadata">

**Author:** ![Kodi4444](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kodi4444/32/68781_2.png) [@Kodi4444](https://discourse.stonehearth.net/u/Kodi4444)\
**Post date:** [December 12, 2017, 11:24pm UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/7 "2017-12-12T23:24:45Z")

</div>

if i change it to 10 is that 10 times the speed or +10 speed?

---

<div class="post-metadata">

**Author:** ![Kodi4444](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kodi4444/32/68781_2.png) [@Kodi4444](https://discourse.stonehearth.net/u/Kodi4444)\
**Post date:** [December 12, 2017, 11:29pm UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/8 "2017-12-12T23:29:30Z")

</div>

Is there a way to apply the changes without destroying all the roads and rebuild them  
@max99x

---

<div class="post-metadata">

**Author:** ![max99x](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/max99x/32/40094_2.png) [@max99x](https://discourse.stonehearth.net/u/max99x)\
**Post date:** [December 12, 2017, 11:51pm UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/9 "2017-12-12T23:51:26Z")

</div>

`10` means `+1000%`, but it’s capped at `+127%` for optimization and animation sanity reasons. You might be able to apply changes to existing roads by having a Lua function run when you load the game to go over all existing roads and update them, but it isn’t trivial.

---

<div class="post-metadata">

**Author:** ![Kodi4444](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kodi4444/32/68781_2.png) [@Kodi4444](https://discourse.stonehearth.net/u/Kodi4444)\
**Post date:** [December 13, 2017, 12:05am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/10 "2017-12-13T00:05:35Z")

</div>

ok, how do I do the Lua command?  
@max99x  
help please

---

<div class="post-metadata">

**Author:** ![genboom](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/genboom/32/51397_2.png) [@genboom](https://discourse.stonehearth.net/u/genboom)\
**Post date:** [December 13, 2017, 4:53am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/11 "2017-12-13T04:53:04Z")

</div>

I would be happy if it was supported but not active by default so that I can choose the best and worst road for that specific play through, adjust the values, and turn it on

probably asking too much?

---

<div class="post-metadata">

**Author:** ![stonemonkey](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonemonkey/32/56475_2.png) [@stonemonkey](https://discourse.stonehearth.net/u/stonemonkey)\
**Post date:** [December 14, 2017, 2:48am UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/12 "2017-12-14T02:48:07Z")

</div>

Not sure if you are talking about upgrading roads or updating my mod to include that behavior. The former would be very cool but the latter is probably not going to happen. The only realistic way I see to modify the speed via a placed entity with no collision would be to make a buff when they got near the entity but I can only imagine what that might cause to the game engine. I believe the Candledark mod did something similar in that you needed to be near the ovens to stay warm or you got a debuff. In my last pre-A23 world I had over 500 pavers placed so to logic around those seems like a bad idea. Another option might be to alter the road as it is placed if there were pavers included in its blueprint or some advanced logic that would check to make sure that all the road voxels were covered by a paver entity. All sound a bit more than I want to chew off. A dev might be able to see a different more feasible solution however.

---

<div class="post-metadata">

**Author:** ![Kodi4444](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kodi4444/32/68781_2.png) [@Kodi4444](https://discourse.stonehearth.net/u/Kodi4444)\
**Post date:** [December 23, 2017, 4:54pm UTC](https://discourse.stonehearth.net/t/modify-road-walk-speed/32972/13 "2017-12-23T16:54:11Z")

</div>

is there a way to modify the cap?
