Nebuchadnezzar

Nebuchadnezzar

Not enough ratings
Viriathus Roads
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.900 MB
9 Mar, 2021 @ 9:15pm
17 Sep, 2021 @ 10:51am
4 Change Notes ( view )

Subscribe to download
Viriathus Roads

Description
Adds 2 types of decorative roads to the game. Their cost and amenity spread is similar to vanilla decorative roads.

Graphics made by Viriathus.


This building will be unlocked in vanilla mission 7 to 13 and the 5 Vanilla sandbox maps.. To use it in your own missions (or missions from the workshop) open the mission.lua of the mission mod and add the following lines into the list of allowed buildings:
'viriathus_roads::build.road.decorative.viria.1',
'viriathus_roads::build.road.decorative.viria.2',

Download link for people who bought the game outside of steam and can't subscribe to mods:
8 Comments
PaperFox 31 Oct, 2022 @ 9:56am 
I am trying to get a parabola where the closest tiles are very high (10 or more appeal) but it falls off sharply then extends for 15 to 20 tiles slowly trickling away.

And a almost found a way.

using -10, -1, -1 almost achieves this.

Because y (the appeal) approaches infinity, the game ends up using -2 billion for the building itself.
But one tile out is 8.5, 3 tiles is 1.83, and 6 tiles out is 0.17
Donchaffée  [author] 30 Oct, 2022 @ 2:37pm 
yeah... kinda
honestly its a bit overcomplicated imo so i just test with different values and check ingame how the spread looks like
PaperFox 30 Oct, 2022 @ 1:57pm 
Thanks!
so the x axis is the distance in tiles, and the y axis is the "power" of the effect?
Donchaffée  [author] 30 Oct, 2022 @ 1:06pm 
Im just pasting the reply about this from the main dev, since i asked the exact same thing a longer time ago:

ui_power is how many "rects" it shows in build menu
a, b, c are parameters of "spread" distribution which formula is -(x/a)^b + c where x is distance from the source.

I really recomend this page for easy visualization of the distribution. https://www.desmos.com/calculator/u9yfnsedwy
PaperFox 30 Oct, 2022 @ 12:50pm 
I'm trying to figure out the spread.lua file, and need some help.

What do the 'a','b','c', and ui_power really mean?
I can't figure out what they represent.
Increasing 'a' seems to increase range... but increasing 'c' increases center power _and_ range, and 'b' doesn't seem to do anything.
Donchaffée  [author] 14 Mar, 2021 @ 1:19pm 
oh yeah i just saw it when updating :papyrus:
Hyperion 12 Mar, 2021 @ 3:53pm 
yo the description for linking the roads for custom missions is off a bit forgot the first part
Yolosaurus Rex 10 Mar, 2021 @ 2:42pm 
Oooooooooo....


Pwettyyyyyyyyyyyyyyyyyy