Ludeon Forums

RimWorld => Mods => Help => Topic started by: Leeman on March 16, 2015, 01:35:05 PM

Title: [Unsolved] JobDriver threw exception in initAction
Post by: Leeman on March 16, 2015, 01:35:05 PM
Hey guys,

currently working on my first mod (http://"https://ludeon.com/forums/index.php?topic=11501.0"). And I found a bug after I released it already sadly and this one is kinda major.
If someone tries to deconstruct the grave it says

http://i.imgur.com/tSE8agw.png

And I have no Idea what is causing that. If anyone could help me would be great. I have the xml and the sourcecode here in a gist for you so you can have a look if needed

https://gist.github.com/anonymous/e1a2d761f15139f3c659

Edit:

I don't know why this happened and I do not know how my solution fixed it. But all I did was, that I added

        public override void Destroy(DestroyMode mode = DestroyMode.Vanish)
        {

            base.Destroy(mode);
        }


Into the classes. I did first some more stuff in there, thats why I added it. And then I started stripping it down as it was quite overloaded and realised that alone helped.

So not sure what exactly the cause was. But that fixed it so I am not going after it (for now)

Edit2: Actually not fixed. It still happens randomly. Not sure what's causing it :/