Page 1 of 1

Chest bug

Posted: Tue Apr 23, 2013 8:49 pm
by Aevumas
It seems that this pops up only once you've opened quite a few chests.

The client crashes on chest open:

Code: Select all

System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Chasm
  StackTrace:
       at Chasm.Gameplay.Database.GetRandomItemDrop(ItemType types, Int32 noDropWeight)
       at Chasm.Gameplay.TreasureChest.SpawnTreasure()
       at Chasm.Gameplay.TreasureChest.Update(Single elapsedTime)
       at Chasm.Gameplay.RoomInstance.Update(Single elapsedTime)
       at Chasm.Gameplay.World.Update()
       at Chasm.ChasmGame.Update(GameTime gameTime)
       at Microsoft.Xna.Framework.Game.Tick()
       at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
       at Microsoft.Xna.Framework.GameHost.OnIdle()
       at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
       at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at Microsoft.Xna.Framework.WindowsGameHost.Run()
       at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
       at Microsoft.Xna.Framework.Game.Run()
       at Chasm.Program.Main(String[] args)
  InnerException: 
I also noticed that drop quality increases as you progress, then items stop dropping, just lots of gold.

Re: Chest bug

Posted: Tue Apr 23, 2013 11:49 pm
by TobiasAmaranth
When I play next, I'm going to count the number of chests I open before it crashes. If there's a fixed number per level, I should note that it happened two times in a row for me as the last chest on floor 5 when looting everything, so maybe that's the magic number.