Ludeon Forums

RimWorld => Mods => Help => Topic started by: Kilroy232 on August 29, 2016, 03:42:44 PM

Title: Getting error on start up that I don't understand with my Turrets Mod (solved)
Post by: Kilroy232 on August 29, 2016, 03:42:44 PM
This is the error message I am getting, if anyone understands this I would love a little help on this one. Thank you!

(http://i.imgur.com/dRJsVmB.png)


UPDATE - trying to load a game anyway results in these errors.
There is something in my mod (the current version available for download if you feel like looking through it) that is making it so all items have the same value as wood... literally making every item in the game wood.

If I deconstruct metal, stone or anything I get wood.

(http://i.imgur.com/VNKuY7Q.png)
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: Jaxxa on August 29, 2016, 04:35:39 PM
The first message looks to be informing you you need a Static constructor on startup to load your images.

The second one looks to be the same as Hatti and I am having:
https://ludeon.com/forums/index.php?topic=25076.0

Hatti seams to have a fix for it in that thread, but I have not managed to fix it in my mod yet.
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: 1000101 on August 29, 2016, 05:34:23 PM
The drop-pod and hash issues are likely the result of a cascade error.  Something else is causing errors in other parts of the game engine.  It is quite common for errors to cascade in RimWorld.  You will likely have to enable mods one-by-one and restart each time to check for validity to find the culprit.
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: Kilroy232 on August 29, 2016, 07:58:32 PM
Quote from: Jaxxa on August 29, 2016, 04:35:39 PM
The first message looks to be informing you you need a Static constructor on startup to load your images.

The second one looks to be the same as Hatti and I am having:
https://ludeon.com/forums/index.php?topic=25076.0

Hatti seams to have a fix for it in that thread, but I have not managed to fix it in my mod yet.

I hate to seem like I am new to this but what is a static constructor? And or how do I implement something of the sort?

As for a solution to a cascade error I think I will have to start by cleaning up my code
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: Kilroy232 on August 29, 2016, 07:59:30 PM
Quote from: 1000101 on August 29, 2016, 05:34:23 PM
The drop-pod and hash issues are likely the result of a cascade error.  Something else is causing errors in other parts of the game engine.  It is quite common for errors to cascade in RimWorld.  You will likely have to enable mods one-by-one and restart each time to check for validity to find the culprit.

Unfortunately my mod is the only thing I am running besides the core game files, just not sure where to even begin for that reason
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: 1000101 on August 29, 2016, 10:26:35 PM
FIX YER MOD!  :P

Start comparing your defs to core defs to see what you're missing.  For example, are you missing abstracts (https://ludeon.com/forums/index.php?topic=19499.0)?
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: Jaxxa on August 29, 2016, 10:54:36 PM
Quote from: 1000101 on August 29, 2016, 10:26:35 PM
FIX YER MOD!  :P

Thats what I am trying to do. :)

Kilroy, do you have any C# classes that inherit from ThingDef in your mod?
Title: Re: Getting an error on start up that I do not understand with my Turret Pack Mod
Post by: Kilroy232 on August 30, 2016, 12:34:04 AM
Quote from: Jaxxa on August 29, 2016, 10:54:36 PM
Quote from: 1000101 on August 29, 2016, 10:26:35 PM
FIX YER MOD!  :P

Thats what I am trying to do. :)

Kilroy, do you have any C# classes that inherit from ThingDef in your mod?

OMG IT WAS AN OLD ASSEMBLY FROM PROJECT ARMORY I HAVEN'T USED IN AGES!!!!!!!!!!
... I went all through my xml with a fine tooth comb and almost drove myself nuts and it was an old assembly...

Well thank you so much Jaxxa, I actually think you saved my sanity because I was busy doing just what 1000101 was saying (well before he suggested it, I am no noob)

I will get this all back together and give everyone a version of my mod that actually works and 1000101 I will just assume you are excited to play with my mod again :p
Title: Re: Getting error on start up that I don't understand with my Turrets Mod (solved)
Post by: Jaxxa on August 30, 2016, 12:48:50 AM
Cool, Glad you got it working.
So you were able to fix it by just Removing the Assembly / that Class from the Assembly?
Title: Re: Getting error on start up that I don't understand with my Turrets Mod (solved)
Post by: 1000101 on August 30, 2016, 01:15:05 AM
Glad you got it working.  :)

And I'm not so much excited for other peoples mods as working as hard as I can to not work on updating CCL.  :D
Title: Re: Getting error on start up that I don't understand with my Turrets Mod (solved)
Post by: Kilroy232 on August 30, 2016, 02:14:26 PM
Quote from: Jaxxa on August 30, 2016, 12:48:50 AM
Cool, Glad you got it working.
So you were able to fix it by just Removing the Assembly / that Class from the Assembly?

Jaxxa all I had to do to fix all the problems was to remove the entire assembly. I got ride of the whole thing because I wasn't using any of it.

Quote from: 1000101 on August 30, 2016, 01:15:05 AM
Glad you got it working.  :)

And I'm not so much excited for other peoples mods as working as hard as I can to not work on updating CCL.  :D

LOL, 1000101 I would love to learn more about the C# side of making mods if you ever want a hand :P (your reason is a good reason to take interest in my opinion though)