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

Error in Quest

ThunderSn1per

New member
I am getting this error when I start my quest through the console:

2023-08-31T16:29:08 644.165 EXC Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
*** ERROR: Executing command 'givequest' failed: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex




After a few seconds it actually sets the quest to my custom built POI as intended which is only 271m West of the Trader I am standing in when executing this command.

What is happening here? And more importantly, how do I fix it? Happy to share XMLs etc if needed?

 
If you could post the code from your quests.xml, that might shed some light on what's going wrong. If you're sending someone to a specific POI using SCore, there should probably be something like this, from a quest in Darkness Falls:

Code:
				<objective type="GotoPOISDX, SCore" value="5-50000" phase="1">
					<property name="completion_distance" value="50" />
					<property name="PrefabName" value="DFalls_Military_Bunker" />
					<property name="nav_object" value="go_to_trader" />
				</objective>
 
<config>
<insertBefore xpath="/quests/quest_list[@id='trader_quests']">
<quest id="quest_TSIQ_Friend1">
<property name="name_key" value="quest_TSIQ_Friend1"/>
<property name="subtitle_key" value="quest_TSIQ_Friend1_subtitle"/>
<property name="description_key" value="quest_TSIQ_Friend1_description"/>
<property name="icon" value="ui_game_symbol_quest"/>
<property name="repeatable" value="true"/>
<property name="category_key" value="quest"/>
<property name="difficulty" value="medium"/>
<property name="difficulty_tier" value="2" param1="difficulty"/>
<property name="offer_key" value="quest_TSIQ_Friend1_offer"/>
<property name="statement_key" value="quest_TSIQ_Friend1_statement" />
<property name="response_key" value="quest_TSIQ_Friend1_response" />
<property name="login_rally_reset" value="true"/>
<property name="completiontype" value="TurnIn"/>
<property name="completion_key" value="quest_TSIQ_Friend1_completion"/>
<property name="shareable" value="true"/>

<objective type="RandomPOIGoto">
<property name="phase" value="1"/>
<property name="biome_filter_type" value="SameBiome" param1="biome_filter_type" />
<property name="nav_object" value="quest" />
</objective>

<objective type="RallyPoint">
<property name="phase" value="2" />
<property name="nav_object" value="rally" />
</objective>

<objective type="ClearSleepers">
<property name="phase" value="3" />
<property name="nav_object" value="sleeper_volume"/>
</objective>

<objective type="FetchFromContainer">
<property name="phase" value="3"/>
<property name="quest_item_ID" value="3"/>
<property name="item_count" value="1"/>
<property name="default_container" value="cntRedHuntsFriend"/>
<property name="nav_object" value="fetch_container" />
</objective>

<objective type="POIStayWithin">
<property name="phase" value="3"/>
<property name="radius" value="25"/>
</objective>

<action type="UnlockPOI" >
<property name="phase" value="4"/>
</action>

<objective type="ReturnToNPC">
<property name="phase" value="4"/>
<property name="nav_object" value="return_to_trader" />
</objective>

<objective type="InteractWithNPC">
<property name="phase" value="4"/>
<property name="nav_object" value="return_to_trader" />
</objective>

<reward type="Exp" value="12000"/>
<reward type="Item" id="casinoCoin" value="1500"/>
</quest>
</insertBefore>
<append xpath="/quests/quest_items">
<quest_item id="3" name="quest_TSIQ_FriendAmulet" description_key="quest_TSIQ_FriendAmuletDesc" icon="quest_TSIQ_FriendAmulet" icon_color="255,255,255"/>
</append>
<append xpath="/quests/quest_list[@id='trader_quests']">
<quest id="quest_TSIQ_Friend1" />
</append>
</config>




Not a problem, this is my quests.xml file, I am not using any other mods, this is just vanilla XML and XPath. I'm trying to get this to work without needing to turn off EAC which I believe overhaul mods like DarknessFalls requires?

 
Back
Top