Skip to content

Composite posts do not register child posts by id #1538

@calcastor

Description

@calcastor

The following is an excerpt from the include for the Touchdown gamemode:

<flags flag-proximity-metric="none" net-proximity-metric="none">
    <flag id="flag" name="Flag" color="${flag-color}" shared="true" pickup-kit="${flag-carrier-kit}" carry-kit="${flag-carrier-effects}" carry-message="`f`lYou are the `b`lFlag `f`lcarrier!">
        <post yaw="${flag-yaw}" respawn-time="${flag-respawn}" recover-time="0s" pickup-filter="any(flag-posts,all(player_state=${carry},alive),carrying-football)">
            <post id="default-post">${flag-post}</post>
            <if constant="team-flag-posts" constant-value="true">
                <post id="team-one-post" respawn-filter="never">${team-one-flag-post}</post>
                <post id="team-two-post" respawn-filter="never">${team-two-flag-post}</post>
            </if>
        </post>
        <unless constant="team-flag-posts" constant-value="true">
            <net points="${score-points}" region="team-one-portal" capture-filter="team-two"/>
            <net points="${score-points}" region="team-two-portal" capture-filter="team-one"/>
        </unless>
        <if constant="team-flag-posts" constant-value="true">
            <net points="${score-points}" region="team-one-portal" capture-filter="team-two" post="team-two-post"/>
            <net points="${score-points}" region="team-two-portal" capture-filter="team-one" post="team-one-post"/>
        </if>
    </flag>
</flags>

When cycling to a map which implements the relevant features from this piece of the include, an error is thrown citing: 'post' attribute of 'flag' > 'net' element @ line 804: No post with ID 'team-two-post'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions