Gateway restrictions

stample

New member
I have a need to override the RWG such that my custom gateway can only spawn when connecting to my streettiles, and cannot spawn connected to any other streettiles.

Basically I need to make a very customized and thematic Gateway that would look totally out of place anywhere but as the entrance to my township, and I need to guarantee its the only one used in my township because it would look out of place anywhere else.

Bunch of ways it could be done in the xml if it had code to support it, but maybe something like this gets my point across.

    <streettile name="rwg_tile_gateway_straight_myGateway">
        <property name="mintiles" value="1"/>
        <property name="maxtiles" value="99"/>
<property name="required_district" value="myDistrict"> <!-- only spawn in this list of districts -->
    </streettile>


and

    <district name="myDistrict">
        <property name="district_spawn_weight" value="1"/>
        <property name="district_required_township" value="myTownship"/>
        <property name="district_preview_color" value="0.3,0.1,0.1"/>
<property name="district_required_gateway" value="rwg_tile_gateway_straight_myGateway"/> <!-- this district only uses this list of gateways -->
    </district>




Though it'd be much easier if there was a way to accomplish the same using a Tag.  Or incorporating the district into the Gateway tile name. But that would certainly require a refactor of the Gateway naming conventions, which is ugly.

We can already do this with POIs using tags, and further restrict by biomes in the rwgmixer.xml. Just can't do it with Gateways

 
Last edited by a moderator:
Back
Top