March 26, 2017, 08:02:32 AM

Author Topic: Steam Engine Crash  (Read 1391 times)

Deathmage

  • Newbie
  • *
  • Posts: 16
    • View Profile
Steam Engine Crash
« on: July 25, 2016, 12:41:53 AM »
Upon deconstructing a steam engine Gnomoria crashes 100% of the time :(
Code: [Select]
////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////
    Date: 24/07/2016 20:20:19
Assembly: gnomoria.exe
 Version: 1.0.0.0
   World: world01
 Message: Object reference not set to an instance of an object.
////////////////////////////////////////////////////////////////
   at Game.SteamEngine.OnDelete()
   at Game.GameEntityManager.cb12f74ed1b5d536054990db2c02a8789(GameEntity c657d292d167397a20f827f27d90bf5ed)
   at Game.GameEntityManager.c888bc36af8719ea94bfb1f01dc886761()
   at Game.GameEntityManager.Update(Single dt)
   at Game.GnomanEmpire.cce48101c3be44fa5bd8b6826610afdec(Single c98206223a14c41d705f29e408e0b44cd)
   at Game.GnomanEmpire.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 A.cebc1c67c4a164a49b1c279b0006957be.c49a93168dc3d77742f5742786a5b60b9(String[] c51864dddd6353b79e1a34e131a62f09a)
////////////////////////////////////////////////////////////////
Any ideas?

Tacyn

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Re: Steam Engine Crash
« Reply #1 on: July 25, 2016, 01:31:42 AM »
turn it off first.

Egaldor

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Steam Engine Crash
« Reply #2 on: July 25, 2016, 12:19:12 PM »
turn it off first.
i have the exact same problem with my save game, i have a steam engine that i want removed but everytime i try to deconstruc it the game crashes, either off or on.

GothikX

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Steam Engine Crash
« Reply #3 on: August 25, 2016, 06:02:06 PM »
Same here. Is this game even supported anymore? Just askin...

admanter

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Steam Engine Crash
« Reply #4 on: August 26, 2016, 10:26:25 AM »
Same here. Is this game even supported anymore? Just askin...

Right now all we have is each other. Dev has been away since around 1.0 release.
Getting different gnomes to do the job might help.
  • Check if the same gnome is assigned the job each time, try to let someone else take the job.
  • Could be something the gnome is holding, or has in their inventory.
  • Could be they're trying to use a wheelbarrow(or other container) to put the steam engine in and the code doesnt support it.

SegaAgesSonic

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Steam Engine Crash
« Reply #5 on: August 28, 2016, 05:43:48 AM »
I am also getting this problem. Whenever i select deconstruct on the steam engine, a gnome or automaton will come to deconstruct it but whilst they are in the middle of the job Gnomoria either freezes or crashes regardless of wether it's on or off.

Any help will be greatly appreciated.

GothikX

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Steam Engine Crash
« Reply #6 on: August 30, 2016, 06:12:05 PM »
Finally got off my lazy bum and debugged the issue... it's the sound effect of the steam engine and I see no reasonable way to get around it (unless you know your way around .net framework a bit...). Basically the sound effect is already nulled by the base class of the steam engine (powersource) and there's no null check afterwards. You can easily patch the executable with IlSpy + Reflexil to remove (replace with nops) the call to mSfx.Stop from SteamEngine.OnDelete, and the steam engine will deconstruct just fine.

Of course, Steam might decide the executable is not up to date and overwrite it with the server version at some point... Ah well, I abandoned that save anyway, it was crawling (probably because of beetles, which I refuse to disable). I'll probably just stay away from the steam engine for now, it's easier. I'll leave the executable patched for as long as steam will let me, but it's highly unlikely there will be any side effects.

IF someone else is reaaaaally bugged by this and wants more detailed instructions, let me know.

Cheers!

Nio

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Steam Engine Crash
« Reply #7 on: November 05, 2016, 12:42:12 AM »
Same here. Is this game even supported anymore? Just askin...

Right now all we have is each other. Dev has been away since around 1.0 release.

Oh really? Well that sucks.