Page 1 of 1

[1.6.7]softlock when loading poultergeist vault in high peak

Posted: Wed Oct 21, 2020 11:31 pm
by Zeyphor
Lua Error: /data/maps/vaults/auto/greater/living-weapons.lua:80: attempt to index local 'o' (a nil value)
At [C]:-1 __newindex
At /data/maps/vaults/auto/greater/living-weapons.lua:80 make_poltergeist
At /data/maps/vaults/auto/greater/living-weapons.lua:273 loadLuaInEnv
At /engine/generator/map/Static.lua:466 loadMap
At /engine/generator/map/Static.lua:47 init
At /engine/class.lua:147 new
At /data/rooms/greater_vault.lua:60 room
At /engine/generator/map/RoomsLoader.lua:598 roomGen
At /mod/class/generator/map/VaultLevel.lua:46 generate
At /engine/Zone.lua:1083 newLevel
At /engine/Zone.lua:989 getLevel
At /mod/class/Game.lua:1080 changeLevelReal
At /mod/addons/cults/superload/mod/class/Game.lua:45 changeLevelReal
At [string "if engine.version_compare(game.__mod_info.ver..."]:2446 changeLevelReal
At /mod/class/Game.lua:955 changeLevel
At /data/general/events/sub-vault.lua:142 change_level_check
At /mod/class/Game.lua:2206
At /engine/KeyBind.lua:243

this LUA error is NOT shown in-game; the game instead softlocks by never finishing loading the level
this happens when i attempt to enter a hidden vault that contains poltergeist stuff, or at least this is what i saw the first time i decided to check the log file after getting this softlock
EDIT: this bug only seems to occur in high peak, and I may have found the solution by now; see my third post ITT

Re: [1.6.7]softlock when loading poultergeist vault

Posted: Wed Nov 18, 2020 2:47 am
by Zeyphor
as of patch 1.7.2, I am still getting this bug every time I enter a hidden poultergeist vault EDIT: in high peak

Re: [1.6.7]softlock when loading poultergeist vault

Posted: Wed Nov 18, 2020 1:14 pm
by Zeyphor
upon contemplating the source of the problem, I believe that I may have found out what causes this bug
in high peak and its hidden vaults(but maybe not bonus zones such as damp cave) as we all know by now, the game will never, under every possible circumstance, spawn a fixed artifact that is not the awakened staff of absorption or the pearl of life and death

in fact, the last time i did a sleeping dragon vault in high peak, the floor already had a few items clearly missing from it as soon as I'd opened the door; these items were presumably fixedarts that got removed from the map during level generation

so, whenever the game attempts to create a poltergeist vault, or hidden vault, in high peak, the game will simply get stuck on level generation forever, and te4.log will spit out an LUA error as its final line of text

why is this? this is because the game cannot spawn fixed artifacts, and that includes the 2 artifact poltergeist weapons that the game will almost always attempt to create in poltergeist vaults(the rest are specific randarts whose stats are determined at character creation and defined as world drops, but these vaults will barely ever give you one of these as a boss)