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

How does A20 restore the feature of searching zombies in the old version

You need to give the container a name not an ID anymore.
I added the specified name, but still reported an error

<lootcontainer id="220" name="junk" count="0,2" size="4,3" sound_open="UseActions/open_backpack" sound_close="UseActions/close_backpack" open_time="1.5" loot_quality_template="qualBaseTemplate">


You need to give the container a name not an ID anymore.
A legal container contains ID and name. I once added ID and name. Name exists on the original basis. ID is also independent and unused, but red ink will jump every time I search

 
I just noticed your screenshot is missing the close on the property tag during the append (or covered by the red marking).

The name "junk" is already in use.  Suggest fmod_junk as name.

<lootcontainer id="220" name="fmod_junk" count="0,2" size="4,3" sound_open="UseActions/open_backpack" sound_close="UseActions/close_backpack" open_time="1.5" loot_quality_template="qualBaseTemplate">



Did you also change the pointer to it in the append?

Code:
<append xpath="/entity_classes/entity_class[@name='zombieTemplateMale']">

  <property name="LootListOnDeath" value="fmod_junk"/>

</append>
 
Last edited by a moderator:
Did you also change the pointer to it?

Code:
<append xpath="/entity_classes/entity_class[@name='zombieTemplateMale']">

  <property name="LootListOnDeath" value="junk"/>

</append>
<append xpath="/entity_classes/entity_class[@name='zombieTemplateMale']">
<property name="LootListOnDeath" value="junk" />
</append>


Value should not be ID? Before A20, I always used ID

 
Correct, id is not used anymore.  EDIT: Also please see the edit above, junk is already in use, name it something else, I changed to add a suggestion.

 
Last edited by a moderator:
Correct, id is not used anymore.  EDIT: Also please see the edit above, junk is already in use, name it something else, I changed to add a suggestion.
In other words, the new version binds the container according to the name, not the ID, so I just need to add a new name to bind?

feiyi said:
In other words, the new version binds the container according to the name, not the ID, so I just need to add a new name to bind?
Code:
<lootcontainer id="220" name="junk_items" count="0,2" size="4,3" sound_open="UseActions/open_backpack" sound_close="UseActions/close_backpack" open_time="1.5" loot_quality_template="qualBaseTemplate">
  
 
<append xpath="/entity_classes/entity_class[@name='zombieTemplateMale']">
	<property name="LootListOnDeath" value="junk_items" />
</append>
 
Back
Top