Not sure if this is the right thread to ask, but couldn't find a better one...
Is there any kind of tutorial about creating new trader POIs?
There are a lot of things that aren't immediately obvious, like what values you should have in the IndexBlockOffsets values in the POI's XML file.
A bit on the late side but still valid and may carry on to further builds.
I did a bit of tinkering to make a 'multi-trader' and here are a few things that I can infer or what appears to be the case. Don't consider any of this totally accurate though as I can not be fully sure.
Upon placing a trader or open sign, the IndexBlockOffsets code is added automatically to the bottom of the xml. However, I'm not sure if the code is residual for previous builds but it still added or if it still carries any weighting in current builds.
For example, I placed 2 open signs and 5 traders in a multi-trader but only 1 open sign and 1 trader was added to the IndexBlockOffsets as follows:
<property class="IndexedBlockOffsets">
<property class="TraderOnOff">
<property name="0" value="26, 4, 18" />
</property>
<property class="Trader">
<property name="0" value="28, 1, 20" />
</property>
</property>
Regardless of what was added, both open signs worked just fine with trader timings and all 5 traders were functional. To get all 5 traders into the Prefab I opened each default trader and used the Z block to highlight the trader block and copy/paste function to bring over as they are saved in the clipboard. Just needed to rotate them to ensure they faced in the direction of players. Apart from that, I pretty much kept to the default values beyond keeping <property name="TraderAreaTeleportCenter" value="0, 0, 0" /> all 0. This offsets the TraderAreaTeleportSize for what reason I do not know. The default Traders are typically from 0 - 3 blocks.
The only other thing for Prefabbers to consider is that it's necessary to add a POI Tannoy Speaker to activate announcements and also use only the Iron 3 x 2 gate and iron doors as they are scripted to automatically close and lock at closing time. Using other door types or the roller garage did not automatically close and lock. The Tannoy and iron gate/doors must be scripted as with the open signs. Other settings can be copied directly from a default trader such as <property name="QuestTags" value="trader" /> and <property name="TraderArea" value="True" />.
If anyone makes any Prefabs for new Traders/POIs, be sure to visit the
https://discord.gg/KVNu7kMTnu (CompoPack) to submit as the community is always hungry for them.