Chest bug

Help and problem reporting for the game.
Locked
Aevumas
Posts: 5
Joined: Mon Apr 22, 2013 12:13 am

Chest bug

Post by Aevumas » Tue Apr 23, 2013 8:49 pm

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.

User avatar
TobiasAmaranth
Supporter
Supporter
Posts: 227
Joined: Sat Apr 20, 2013 8:31 pm
Location: Round Rock, TX

Re: Chest bug

Post by TobiasAmaranth » Tue Apr 23, 2013 11:49 pm

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.

Locked