• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Biome specific POI

HerrKingsley

New member
I have asked this before but haven't got any definite answer yet.

I want to have a specific POI to ONLY spawn in a specific Biome. Where and how do i do that?

 
You need to look into rwgmixer.xml.

Either place your POI in a prefab_rule that only exists in the targeted biome or create your own. :)

 
I skip A17, but in A16 it was a string:

<property name="AllowedBiomes" value="forest,snow,plains,pine_forest,forest,wasteland" />

in the xml-file that comes with each prefab.

 
Last edited by a moderator:
You need to look into rwgmixer.xml.Either place your POI in a prefab_rule that only exists in the targeted biome or create your own. :)
I might be blind but i don't see any biome rules in rwgmixer.xml

I skip A17, but in A16 it was a string: <property name="AllowedBiomes" value="forest,snow,plains,pine_forest,forest,wasteland" />

in the xml-file that comes with each prefab.
Aha I see, I have been looking for it for a while but it is quite uncommon string.

I finally found it in mp_waste_sewer_hole1.xml. thank you!

Theres no chance of xpathing a bunch of files right? I have do do it manual?

 
The current RWG is an ugly hodgepodge of prefabs.

It is possible that string stayed there by accident - so you need to make sure in practice that it still works.

I can't tell you about xpathing - i'm not familiar with it. I think it should be done manually anyway.

 
So you just want to change allowed biomes on one or so POIs? Yeah, you should just be able to make a small modlet that edits the rwgmixer.xml if you aren't wanting to directly edit the vanilla one.

 
I can't tell you about xpathing - i'm not familiar with it. I think it should be done manually anyway.
You seriously don't use Xpath yet?

...I'm surprised, it's the future.

 
You seriously don't use Xpath yet?
...I'm surprised, it's the future.
Yeah, i don't plan on making "modlets". Only one "overhaul" :) .

I don't need a future - I live in the past :D

 
Last edited by a moderator:
I'm not sure you can mod the xml in the prefab folder with xpath though.
The prefab xml has a line for allowed biomes, but I think it still has to be added into the rwgmixer into each group and stuff. So you could probably do with just editing it. Not 100% though, so I could be wrong. :)

 
You can use an xpath modlet to point to a prefab name that is in the prefabs folder.

Example from Royal Deluxe Town Trader2a below if this helps at all in what you are trying to do ?

Code:
<configs>
 <append xpath="/rwgmixer/prefab_rules/prefab_rule[@name='industrial_Bldgs']">
		<prefab name="0_POI_CityTrader2a"  max_count="1"/>
 </append>
</configs>
You may have to make a new rule in rwgmixer.xml depending on where you want your prefab to be .....

Each custom prefab has its own specific xml settings so thats where you would have to do a 'manual change' to the xml file to set the allowed biome/s .

Never seen a modlet that alters the prefab xml in xpath modlets , not to say its not possible but I have not looked myself.

So it is actually a mix of Future and Past this way ;)

Ragsy !!

 
Last edited by a moderator:
Ok so last night I managed to get it working.

First commented out all buildings except abandonbuilding_01 from every group in rwgmixer.xml

Then in the prefab file for abandoned building I played around with the

<property name="AllowedBiomes" value="desert" />

This made it easier to see if it actually works and it does. A hole biome only populated with abandoned houses. Looks quite fun.

I still dont know what string to use if I were to only use rwgmixer.xml

 
Looking at the mixer, I guess you would have to edit every prefab xml to limit the biomes. Might could use N++ or something to do a mass edit.

 
I still dont know what string to use if I were to only use rwgmixer.xml
rwgmixer.xml has not been used earlier for the distribution of the prefab to the biomes.

(as far as i can see now (A17) - also not used.)

 
Yes in Brackets you can do find/replace multiple files, so it will make my life a bit easier.

My plan is to make more diversity between the biomes. Most POI's will only be found in specific biome and that way i hope to be able to make Biome have different difficulties.

 
My plan is to make more diversity between the biomes. Most POI's will only be found in specific biome and that way i hope to be able to make Biome have different difficulties.
well ;) it's a good idea, i can even confirm - it works perfectly for gameplay!

Have you received confirmation that "AllowedBiomes" still works?

 
Last edited by a moderator:
well ;) it's a good idea, i can even confirm - it works perfectly for gameplay!
Have you received confirmation that "AllowedBiomes" still works?
Yes "AllowedBiomes" works perfect (A17.2). Sometimes building spawns on other biome patches but only if it is in the vicinity of the chosen biome.

 
Back
Top