Page MenuHomeFeedback Tracker

<usageflags> limited to 32 children in cfglimitsdefinition
Closed, ResolvedPublic

Description

In cfglimitsdefinition.xml, in the <usageflags> section, there is an effective limit of 32 items - anything more than that becomes an alias for previous <usage> entries in the list.

Subsequently, any time that the over-limit usage definitions are used in mapgroupproto.xml, they work as an alias for the <usage> definition 32 entries behind.

For example,

	<usageflags>
		<usage name="Military"/>
		.. another 31 <usage> entries ..
		<usage name="Kiosk"/>

.. any entries in mapgroupproto.xml for "Kiosk" will work as though you have added an entry for "Military"

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Server
Category
Server
Steps To Reproduce

Edit cfglimitsdefinition.xml to contain:

	<usageflags>
		<usage name="Military"/>
		<usage name="Police"/>
		<usage name="Medic"/>
		<usage name="Firefighter"/>
		<usage name="Industrial"/>
		<usage name="Farm"/>
		<usage name="Coast"/>
		<usage name="Town"/>
		<usage name="Village"/>
		<usage name="Hunting"/>
		<usage name="Office"/>
		<usage name="School"/>
		<usage name="Prison"/>
		<usage name="Lunapark"/>
		<usage name="SeasonalEvent"/>
		<usage name="ContaminatedArea"/>
		<usage name="Crypt" />
		<usage name="TempleCore" />
		<usage name="PlantsA" />
		<usage name="PlantsB" />
		<usage name="PlantsC" />
		<usage name="Hospital"/>
		<usage name="SuperMarket"/>
		<usage name="Pub"/>
		<usage name="Guard"/>
		<usage name="SchoolOfficeOnly"/>
		<usage name="OfficeOnly"/>
		<usage name="SchoolOnly"/>
		<usage name="HuntingShop"/>
		<usage name="Castle"/>
		<usage name="Aviation"/>
		<usage name="CrashMilitary"/>
		<usage name="Kiosk" />
		<usage name="Sawmill" />
		<usage name="Civilian" />
		<usage name="Transit" /> <!-- Bus stations, stops etc -->
	</usageflags>

Next, edit mapgroupproto.xml and add <usage name="Kiosk" /> to all 4 Land_City_Stand_ <group> entries, eg:

<group name="Land_City_Stand_News1">
    <usage name="Town" />
    <usage name="Kiosk" />

Launch the server with wiped storage first. You will see "Military" usage gear spawning in those structures tagged with "Kiosk" usage.

Additional Information

Cascade continues for any subsequent usages, 34th entry aliasing to "Police" for example.

Event Timeline

Sp4cecat created this task.Feb 8 2023, 7:10 AM
Geez closed this task as Resolved.Feb 8 2023, 10:06 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello Sp4cecat.
This is a limit set by design and we currently do not plan to increase it.
Regards,
Geez