Description
Traders are no longer locked to specific biomes, but the “Opening Trade Routes” quests still progress through different biomes.
Server side only (clients do not need to install the mod)
EAC safe (clients and servers do not need to disable Easy Anti-Cheat)
Features
Multiple Trader Types per Biome
Traders are no longer locked to one specific biome. However, there are still some biome limitations – not every trader will spawn in every biome.
In version 2.0, each trader was limited to a total of two biomes. It was found that if a trader can spawn into more than two, it increases the likelihood that a biome might not spawn with any traders in it.
Here are the biomes that each trader can spawn into:
- Trader Rekt: pine forest, desert
- Trader Jen: pine forest, burnt forest
- Trader Bob: burnt forest, desert
- Trader Hugh: snow, wasteland
- Trader Joel: snow, wasteland
If you want, you can also remove all biome limitations from all traders. This is done in the rwgmixer.xml file – see below.
If you allow all traders to spawn into all biomes, there is a much higher chance that RWG will not put any traders in at least one biome. In rwgmixer.xml, the max_count on all traders was increased to make this less likely, but it is still possible. Make sure you double-check all generated worlds.
“Opening Trade Routes” Biome Progression
The “Opening Trade Routes” quests still send players to progressively more difficult biomes.
They are, in order:
- Pine forest (the initial “White River Citizen” quest)
- Burnt forest
- Desert
- Snow
- Wasteland
This matches the biome progression of the vanila game.
This is customizable in the quests.xml file – see below.
Technical Details
This modlet uses XPath to modify XML files, and does not require C#. It does not contain any additional images or Unity assets. It is safe to install only on the server.
Customizing Trader Biomes
If you don’t want traders to have any biome limitations, that is also possible.
Instead of the code that is in rwgmixer.xml, you can use this XML instead:
<remove xpath="//prefab_spawn_adjust[starts-with(@partial_name,'trader_')]" />
<insertBefore xpath="//prefab_spawn_adjust[@partial_name='sawmill_01']">
<prefab_spawn_adjust tags="trader" bias="20" min_count="2" max_count="4" />
</insertBefore>
This code is in rwgmixer.xml but is currently commented out.
Customizing “Opening Trade Routes” Biome Progression
The “Opening Trade Routes” quests can also go to more than one target biome. This allows for some biome progression, but it is not completely fixed. (This is how this mod worked in Alpha 21.)
Instead of the quest progression code that is in quests.xml, you can use this instead:
<set xpath="//quest[contains(@id, 'nexttrader') and not(contains(@id, 'test'))]/objective[@type='Goto']/property[@name='biome_filter_type']/@value">ExcludeBiome</set>
<append xpath="//quest[@id='tier2_nexttrader']">
<property name="biome_filter" value="desert,snow,wasteland" />
</append>
<append xpath="//quest[@id='tier3_nexttrader']">
<property name="biome_filter" value="pine_forest,wasteland" />
</append>
<append xpath="//quest[@id='tier4_nexttrader']">
<property name="biome_filter" value="burnt_forest,pine_forest" />
</append>
<append xpath="//quest[@id='tier5_nexttrader']">
<property name="biome_filter" value="burnt_forest,desert,pine_forest" />
</append>
This code is in quests.xml but is currently commented out.
If you use the above code, make sure you comment out the existing biome-related XML code first (the XML code following the Biome progression for “Opening Trade Routes” quests comment).
About the POIs
In the XML for each POI, there are properties that prevent certain POIs from spawning next to each other. The “ThemeTags” property defines “themes” that each POI may be a part of. The “ThemeRepeatDistance” property specifies the minimum distance between POIs of the same theme.
In version 1.0, TFP decided that each trader should have their own distinct theme. This means Trader Jen will not spawn near another Trader Jen, but Trader Jen may spawn near Trader Rekt. This isn’t an issue if a trader can only spawn into one biome, but if two traders can spawn in the same biome, they tend to spawn next to each other.
The POI XML files in this mod are exact copies of the vanilla trader files, except they all have an additional “ThemeTag” property value of “trader”. This means they will no longer spawn next to each other. This is the only difference between these POIs and the vanilla trader POIs.
Normally, if a mod distributes POIs, the mod must be installed on both servers and clients. But this is not the case with this mod. The custom POIs are only used for world generation.
This is why this mod is server-side. Once the world is generated, the vanilla trader POIs can be used instead. Clients already have the vanilla POIs, so they don’t need to install the ones in this mod.
Changelogs
Update for 2.0 Stable
There is now an update for 2.0 Stable.
In version 2.0, each trader was limited to a total of two biomes. It was found that if a trader can spawn into more than two, it increases the likelihood that a biome might not spawn with any traders in it.
Here are the biomes that each trader can spawn into:
- Trader Rekt: pine forest, desert
- Trader Jen: pine forest, burnt forest
- Trader Bob: burnt forest, desert
- Trader Hugh: snow, wasteland
- Trader Joel: snow, wasteland
Like the 1.0 version, biome progression still applies. Regardless of trader, the first trader quest will take you to a trader in the forest biome, then you will be sent to a trader in the burnt forest, and so on.
This is all configurable through XML edits. See the README for details.
Download
V2
DOWNLOAD for V2 (1,3 MB)
V1
DOWNLOAD for V1 (1,2 MB)
The forum topic of the mod is here.
Credits: khzmusik
If you have any questions or have any problems/bugs, please use the support link (Discord, Forum Topic, GitHub Issues, etc.) in the post. If there is no support link in the post, please use the comments section.
can you make the pois separate please
Thank you very much. no more stinky Rekt at the start of the game
Do you know, does this need a new start or will it cause issues added mid game?
I want to know the same thing, because I really hate Rekt. I’d totally avoid him if I can.