Need Some Debugging Help

Started by Psyckosama, July 08, 2014, 05:52:35 PM

Previous topic - Next topic

Psyckosama

Alright, it's been a while since I did a production table and I'm trying something a little new with this, adding recepies that create the standard meals but require wood as an ingredient to make a simple wood burning stove.

Right now it does the old "Refuses to interact" bug.

I know I'm forgetting something, but I don't know what.

Anyone mind giving it a look?

[attachment deleted by admin: too old]

Haplo

I've found a few small things:

You've declared the list of WoddLog as ThingDef, it must be ThingDefs

    <ingredients>
<li>
<filter>
<categories>
<li>FoodRaw</li>
</categories>
</filter>
<count>10</count>
</li>
<li>
<filter>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>


The same goes for the fixedingredientfilter:

<fixedIngredientFilter>
<categories>
<li>FoodRaw</li>
</categories>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</fixedIngredientFilter>


and the WoodLog should be added to the default filter, or it is standard deactivated and needs to be activated...
After these changes it worked here :)

Psyckosama

Thanks Halpo. As always, you're a prince among men.

Haplo

No problem. I am happy to help :)

Psyckosama

Quote from: Haplo on July 09, 2014, 05:35:47 AM
No problem. I am happy to help :)

And now I need to bother you again...

Getting a strange error when they eat the meals produced, which are literally identical to the meals produced via the standard stove just they require wood as part of the creation process. I am a bit confused here.

[attachment deleted by admin: too old]

Haplo

#5
Hmm I'm right now not at my computer, so it's only a guess:
Could it be, that the wood is a part of the meal now? And when wood doesn't have any nutrition information it throws the NullRefException..
But until I have access to my computer that's only a guess, sorry..

Yes, as far as I can see, the problem is the wood in the meal :)
Sorry, but there isn't an easy way to disable it. You could add food properties to woodlogs, but...

Maybe I can give you the wooden stove from ItchyFleas old wood economy code. There was a wooden stove, that burned up wood instead of power. It used my first try of my internal storage system (as you can now see in its advanced form in the nanostorage in Miscellaneous)
But you have to ask Itchy, if it's okay that I give you the code/dll...