Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive: Conquest

A successor to first Strive For Power game, currently at alpha stage · By Strive4Power

Treasure chest bug

A topic by Jotok created May 15, 2021 Views: 545 Replies: 4
Viewing posts 1 to 3
(1 edit)

I got to the end of a Crypt and kept selecting characters to open the chest, but the character select list just stayed there and the chest did not open, because:

SCRIPT ERROR: generate_random_gear: Division By Zero in operator '%'.

   At: res://src/core/world_gen.gd:619.

SCRIPT ERROR: make_chest_loot: Invalid get index 'code' (on base: 'Nil').

   At: res://src/core/world_gen.gd:560.

SCRIPT ERROR: lockpick_attempt: Invalid get index 'lock' (on base: 'Nil').

   At: res://gui_modules/Universal/Scripts/InteractiveMessageModuleAnimated.gd:238.


I was able to select to leave the chest alone, and that worked normally.  Version 7.


Edit:  And version 8.

(3 edits)

Bumping as I searched for the same error after running into it and found this. 

I searched the InteractiveMessageModuleAnimated.gd and world_gen.gd files and found the scripts the game seems to be looking for, so they aren't missing, but I'm not a programmer and don't know how to fix the "invalid get index" error. Anyone know how to fix this? 

What version of Conquest do you have. The version is at the bottom left of the initial menu screen. Are you using any mods? The critical error is the first one. The game can't generate the random loot in the chest.  This is an old issue that I haven't seen for several versions.

Latest version of the game. Used Conquest Tweaks and MGEdits. I tried a fresh install with no mods and the chests worked, so it likely has to do with one of those. All the associated files are the same as vanilla though, checked the associated lines in the corresponding gd files and they were the same. Are they trying to add loot from one of these mods and failing to generate it?

I have a game using Conquest Tweaks and did not encounter that issue. I haven't used MGEdits so possibly that.