TheSurvivior01
New member
I can't wrap my head around at which step of random world generation the prefab rules are set.
First we have cell rules
Then we have hub rules
And of course prefab rules
I just can't find the "switch" that makes the engine decide to create an industrial group or commercial group or downtown group etc.
Maybe every town and city creates several of those groups within its area but then I still don't see a way to influence it.
Not to mention that I have also no idea how the engine decides to build a ruralSmall and/or ruralLarge hub when there is only a single rural hub rule <hub_rule name="rural" prob="0.3"/> that applies to both.
Is there anything hardcoded outside the rwgmixer.xml that manages these things?
First we have cell rules
Code:
<cell_rules>
<cell_rule name="default">
<cave_count value="4,8"/>
<path_material value="asphalt" />
<path_radius value="10" />
<hub_rule name="townSmall" prob="0.3"/>
<hub_rule name="townLarge" prob="0.3"/>
<hub_rule name="citySmall" prob="0.1"/>
<hub_rule name="cityLarge" prob="0.1"/>
<hub_rule name="rural" prob="0.3"/>
<wilderness_rule name="wildernessDefault"/>
</cell_rule>
Code:
<hub_rule name="citySmall">
<hub_type value="city"/>
<width value="600, 800" />
<height value="600, 800" />
<path_material value="asphalt" />
<path_radius value="10" />
<prefab_rule name="default"/>
<street_gen level="20" length_multiplier="4">
<axiom value="[FFCT][-FFT][+FFI][--FFN][+FFT][-FFI][++FN][F-FF+FF[-T]FF+FF+FFFF-FF-FF[+I]FF[+N]"/>
<rule char="T" replace_with="F-FF+FF[-T**]FF+FF+FFFF-FF-FF[+I**]FF-F[+N*K]"/>
<rule char="I" replace_with="F-FF+FF[-T**]FF+FF+FFFF-FF-FF[+I**]FF-F[+N*K]"/>
<rule char="N" replace_with="F-FF+FF[-T**]FF+FF+FFFF-FF-FF[+I**]FF-F[+N*K]"/>
<rule char="K" replace_with="[FFCT][-FFT][+FFI][--FFN][+FFT][-FFI][++FN]"/>
<alt_commands chars="T,I,N,K"/>
</street_gen>
</hub_rule>
Code:
<prefab_rule name="default">
<prefab rule="residentialOldGroup"/>
<prefab rule="residentialNewGroup"/>
<prefab rule="commercialGroup"/>
<prefab rule="downtownGroup"/>
<prefab rule="industrialGroup"/>
<prefab rule="ruralGroup"/>
<prefab rule="detailFillerGroup"/>
</prefab_rule>
Maybe every town and city creates several of those groups within its area but then I still don't see a way to influence it.
Not to mention that I have also no idea how the engine decides to build a ruralSmall and/or ruralLarge hub when there is only a single rural hub rule <hub_rule name="rural" prob="0.3"/> that applies to both.
Is there anything hardcoded outside the rwgmixer.xml that manages these things?