Jump to content

Help with mudding quests


Arty1

Recommended Posts

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>

Link to comment
Share on other sites

Having a similar thing happen with this now: 

Error code: 

ERR [Xui] Error while updating widow group 'Quest':

EXC object reference not set to an instance of an object
 

            <!-- Find Molds -->
            
        <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_findMolds1_offer"/>
            <property name="shareable" value="true"/>
            
            
            <objective type="FetchKeep" id="GreenMold" value="4" phase="1"/>
            <objective type="FetchKeep" id="OrangeMold" value="4" phase="2"/>
            <objective type="FetchKeep" id="WhiteMold" value="4" phase="3"/>
            <objective type="FetchKeep" id="RedMold" value="4" phase="4"/>
            
            <reward type="Exp" value="1000"/>
            <reward type="Quest" id="quest_GreenKeyPart"/>
            
        </quest>
        

<!-- Craft Key Parts -->

            <!-- Green Key Part -->
            
        <quest id="quest_GreenKeyPart">
            <property name="group_name_key" value="quest_greenShard"/>
            <property name="name_key" value="quest_GreenKeyPart1"/>
            <property name="subtitle_key" value="quest_GreenKeyPart1_subtitle"/>
            <property name="description_key" value="quest_GreenKeyPart1_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_GreenKeyPart1_offer"/>
            <property name="shareable" value="true"/>
            
            <objective type="FetchKeep" id="GreenKeyPartOne" value="1" phase="1"/>
            <objective type="FetchKeep" id="GreenKeyPartTwo" value="1" phase="2"/>
            <objective type="FetchKeep" id="GreenKeyPartThree" value="1" phase="3"/>
            <reward type="Exp" value="1000"/>
            <reward type="Quest" id="quest_OrangeKeyPart"/>
            
            <reward type="Item" id="GreenWholeKeySchematic" count="1"/>
                
        </quest>
  
    
                <!-- Orange Key Part -->
            
        <quest id="quest_OrangeKeyPart">
            <property name="group_name_key" value="quest_greenShard"/>
            <property name="name_key" value="quest_OrangeKeyPart1"/>
            <property name="subtitle_key" value="quest_OrangeKeyPart1_subtitle"/>
            <property name="description_key" value="quest_OrangeKeyPart1_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_OrangeKeyPart1_offer"/>
            <property name="shareable" value="true"/>
            
            <objective type="FetchKeep" id="OrangeKeyPartOne" value="1" phase="1"/>
            <objective type="FetchKeep" id="OrangeKeyPartTwo" value="1" phase="2"/>
            <objective type="FetchKeep" id="OrangeKeyPartThree" value="1" phase="3"/>
            <reward type="Exp" value="1000"/>
            <reward type="Quest" id="quest_WhiteKeyPart"/>
            
            <reward type="Item" id="OrangeWholeKeySchematic" count="1"/>
                
        </quest>
        
                <!-- White Key Part -->
            
        <quest id="quest_WhiteKeyPart">
            <property name="group_name_key" value="quest_WhiteKeyPart"/>
            <property name="name_key" value="quest_WhiteKeyPart1"/>
            <property name="subtitle_key" value="quest_WhiteKeyPart1_subtitle"/>
            <property name="description_key" value="quest_WhiteKeyPart1_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_WhiteKeyPart1_offer"/>
            <property name="shareable" value="true"/>
            
            <objective type="FetchKeep" id="WhiteKeyPartOne" value="1" phase="1"/>
            <objective type="FetchKeep" id="WhiteKeyPartTwo" value="1" phase="2"/>
            <objective type="FetchKeep" id="WhiteKeyPartThree" value="1" phase="3"/>
            <reward type="Exp" value="1000"/>
            <reward type="Quest" id="quest_RedKeyPart"/>
            
            <reward type="Item" id="WhiteWholeKeySchematic" count="1"/>
                
        </quest>
        
        
                <!-- Red Key Part -->
            
        <quest id="quest_RedKeyPart">
            <property name="group_name_key" value="quest_greenShard"/>
            <property name="name_key" value="quest_RedKeyPart1"/>
            <property name="subtitle_key" value="quest_RedKeyPart1_subtitle"/>
            <property name="description_key" value="quest_RedKeyPart1_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_RedKeyPart1_offer"/>
            <property name="shareable" value="true"/>
            
            <objective type="FetchKeep" id="RedKeyPartOne" value="1" phase="1"/>
            <objective type="FetchKeep" id="RedKeyPartTwo" value="1" phase="2"/>
            <objective type="FetchKeep" id="RedKeyPartThree" value="1" phase="3"/>
            <reward type="Exp" value="1000"/>
            <reward type="Quest" id="quest_WholeKeyPart"/>
                
            <reward type="Item" id="RedWholeKeySchematic" count="1"/>
        </quest>


<!-- Whole Key  -->        

        <quest id="quest_WholeKey">
            <property name="group_name_key" value="quest_greenShard"/>
            <property name="name_key" value="quest_WholeKey1"/>
            <property name="subtitle_key" value="quest_WholeKey1_subtitle"/>
            <property name="description_key" value="quest_WholeKey1_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_WholeKey1_offer"/>
            <property name="shareable" value="true"/>
            
            <objective type="FetchKeep" id="GreenKey" value="1" phase="1"/>
            <objective type="FetchKeep" id="OrangeKey" value="1" phase="2"/>
            <objective type="FetchKeep" id="WhiteKey" value="1" phase="3"/>
            <objective type="FetchKeep" id="RedKey" value="1" phase="4"/>
            
            <reward type="Exp" value="1000"/>
                
        </quest>

Link to comment
Share on other sites

Take a look at your quest_RedKeyPart.  The Quest reward type says quest_WholeKeyPart but the next quest in your list is <quest id="quest_WholeKey">.  I am assuming that once you complete the quest RedKeyPart, you want to start the quest WholeKey as the next one.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...