Hi there,
Sorry if this is the wrong place to ask. I am new to modding and trying to create a mod for 7 days to die.
Basically, the way the mod should work is that you go out and find a load of shards and molds to create keys. I have created the items.xml, loot.xml and localisation.txt and they work fine. But I am struggling with the quest.xml.
What I want to happen at the end of the tutorial quest the collecting shards quest should start, which has 5 separate quests in it. Every work, but when you move on from one quest to another and open the Quest menu UI, I get this error message on repeat:
ERR [XUi] Error While updating window group 'quests': EXC index was out of range. Must be non-negative and less than size of collection. Parametername: Index
Does anyone know why this is happening?
Quest code:
<configs>
<append xpath="/quests">
<!-- Color All Keys and Shards -->
<quest id="quest_greenShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_greenShard1"/>
<property name="subtitle_key" value="quest_greenShard1_subtitle"/>
<property name="description_key" value="quest_greenShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Green Key -->
<objective type="FetchKeep" id="GreenKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="GreenKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="GreenKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="GreenKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="GreenKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="GreenKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="GreenKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="GreenKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="GreenKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="GreenKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="GreenKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="GreenKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_OrangeShards"/>
</quest>
<quest id="quest_orangeShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_orangeShard1"/>
<property name="subtitle_key" value="quest_orangeShard1_subtitle"/>
<property name="description_key" value="quest_orangeShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Orange Key -->
<objective type="FetchKeep" id="OrangeKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="OrangeKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="OrangeKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="OrangeKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="OrangeKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="OrangeKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="OrangeKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="OrangeKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="OrangeKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="OrangeKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="OrangeKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="OrangeKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_whiteShards"/>
</quest>
<quest id="quest_whiteShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_whiteShard1"/>
<property name="subtitle_key" value="quest_whiteShard1_subtitle"/>
<property name="description_key" value="quest_whiteShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- White Key -->
<objective type="FetchKeep" id="WhiteKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="WhiteKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="WhiteKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="WhiteKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="WhiteKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="WhiteKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="WhiteKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="WhiteKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="WhiteKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="WhiteKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="WhiteKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="WhiteKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_redShards"/>
</quest>
<quest id="quest_redShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_redShard1"/>
<property name="subtitle_key" value="quest_redShard1_subtitle"/>
<property name="description_key" value="quest_redShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Red Key -->
<objective type="FetchKeep" id="RedKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="RedKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="RedKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="RedKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="RedKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="RedKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="RedKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="RedKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="RedKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="RedKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="RedKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="RedKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_findMolds"/>
</quest>
<quest id="quest_findMolds">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_findMolds1"/>
<property name="subtitle_key" value="quest_findMolds1_subtitle"/>
<property name="description_key" value="quest_findMolds1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Red Key -->
<objective type="FetchKeep" id="GreenMold" value="1" phase="1"/>
<objective type="FetchKeep" id="OrangeMold" value="1" phase="2"/>
<objective type="FetchKeep" id="WhiteMold" value="1" phase="3"/>
<objective type="FetchKeep" id="RedMold" value="1" phase="4"/>
</quest>
</append>
<append xpath="//quest[@id='quest_whiteRiverCitizen1']">
<reward type="Quest" id="quest_greenShards"/>
</append>
</configs>
Sorry if this is the wrong place to ask. I am new to modding and trying to create a mod for 7 days to die.
Basically, the way the mod should work is that you go out and find a load of shards and molds to create keys. I have created the items.xml, loot.xml and localisation.txt and they work fine. But I am struggling with the quest.xml.
What I want to happen at the end of the tutorial quest the collecting shards quest should start, which has 5 separate quests in it. Every work, but when you move on from one quest to another and open the Quest menu UI, I get this error message on repeat:
ERR [XUi] Error While updating window group 'quests': EXC index was out of range. Must be non-negative and less than size of collection. Parametername: Index
Does anyone know why this is happening?
Quest code:
<configs>
<append xpath="/quests">
<!-- Color All Keys and Shards -->
<quest id="quest_greenShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_greenShard1"/>
<property name="subtitle_key" value="quest_greenShard1_subtitle"/>
<property name="description_key" value="quest_greenShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Green Key -->
<objective type="FetchKeep" id="GreenKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="GreenKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="GreenKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="GreenKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="GreenKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="GreenKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="GreenKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="GreenKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="GreenKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="GreenKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="GreenKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="GreenKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_OrangeShards"/>
</quest>
<quest id="quest_orangeShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_orangeShard1"/>
<property name="subtitle_key" value="quest_orangeShard1_subtitle"/>
<property name="description_key" value="quest_orangeShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Orange Key -->
<objective type="FetchKeep" id="OrangeKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="OrangeKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="OrangeKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="OrangeKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="OrangeKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="OrangeKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="OrangeKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="OrangeKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="OrangeKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="OrangeKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="OrangeKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="OrangeKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_whiteShards"/>
</quest>
<quest id="quest_whiteShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_whiteShard1"/>
<property name="subtitle_key" value="quest_whiteShard1_subtitle"/>
<property name="description_key" value="quest_whiteShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- White Key -->
<objective type="FetchKeep" id="WhiteKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="WhiteKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="WhiteKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="WhiteKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="WhiteKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="WhiteKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="WhiteKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="WhiteKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="WhiteKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="WhiteKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="WhiteKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="WhiteKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_redShards"/>
</quest>
<quest id="quest_redShards">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_redShard1"/>
<property name="subtitle_key" value="quest_redShard1_subtitle"/>
<property name="description_key" value="quest_redShard1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Red Key -->
<objective type="FetchKeep" id="RedKeyShardOne" value="1" phase="1"/>
<objective type="FetchKeep" id="RedKeyShardTwo" value="1" phase="2"/>
<objective type="FetchKeep" id="RedKeyShardThree" value="1" phase="3"/>
<objective type="FetchKeep" id="RedKeyShardFour" value="1" phase="4"/>
<objective type="FetchKeep" id="RedKeyShardFive" value="1" phase="5"/>
<objective type="FetchKeep" id="RedKeyShardSix" value="1" phase="6"/>
<objective type="FetchKeep" id="RedKeyShardSeven" value="1" phase="7"/>
<objective type="FetchKeep" id="RedKeyShardEight" value="1" phase="8"/>
<objective type="FetchKeep" id="RedKeyShardNine" value="1" phase="9"/>
<objective type="FetchKeep" id="RedKeyShardTen" value="1" phase="10"/>
<objective type="FetchKeep" id="RedKeyShardEleven" value="1" phase="11"/>
<objective type="FetchKeep" id="RedKeyShardTwelve" value="1" phase="12"/>
<reward type="Exp" value="1000"/>
<reward type="Quest" id="quest_findMolds"/>
</quest>
<quest id="quest_findMolds">
<property name="group_name_key" value="quest_greenShard"/>
<property name="name_key" value="quest_findMolds1"/>
<property name="subtitle_key" value="quest_findMolds1_subtitle"/>
<property name="description_key" value="quest_findMolds1_description"/>
<property name="icon" value="ui_game_symbol_map_key"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="hard"/>
<property name="offer_key" value="quest_greenShard1_offer"/>
<property name="shareable" value="true"/>
<!-- Red Key -->
<objective type="FetchKeep" id="GreenMold" value="1" phase="1"/>
<objective type="FetchKeep" id="OrangeMold" value="1" phase="2"/>
<objective type="FetchKeep" id="WhiteMold" value="1" phase="3"/>
<objective type="FetchKeep" id="RedMold" value="1" phase="4"/>
</quest>
</append>
<append xpath="//quest[@id='quest_whiteRiverCitizen1']">
<reward type="Quest" id="quest_greenShards"/>
</append>
</configs>