Nebuchadnezzar

Nebuchadnezzar

Viriathus Roads
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