[WIP] Grill Tech [V1 Released]

Started by BaconBits, August 09, 2016, 02:52:36 PM

Previous topic - Next topic

kaptain_kavern

#15
So in fact it came from the way you used "Abstract = true" for all of your recipes.

I hope this link can help you : http://rimworldwiki.com/wiki/Modding_Tutorials/XML_file_structure#Inheritance

Because that will be difficult for me to explain abstract stuff in english (note that it's not hard to understand). Anyway look the wiki link please and tell me if it help.

By this time I will try to write something useful and understandable ;-p

edit : Read also this message from E : https://ludeon.com/forums/index.php?topic=19499.msg249878#msg249878

And maybe the way DESurgeries is done can give a clue : https://github.com/kaptain-kavern/DESurgeries/blob/master/Defs/RecipeDefs/Recipes_Surgery.xml


BaconBits

That helped, thanks. I never look at the wiki because it's not A14, and seeing that I started modding in A14 I don't know if and/or what has changed. Also, I'm a visual learner so I need to 'see' it to understand it. Since the wiki had a breakdown I get it now. But I can't seem to find a breakdown of the core raw meat base structure. Since I'm trying to add more raw meat, I would think I need to know the proper structure. Any ideas on where it is or if I can get it?

kaptain_kavern

#18
I'm not 100% but I think meat is generated in C# (like corpse and such) because I can't find an abstract with just the meat.


In your code I spotted a double ">>" in /Defs/ThingDefs/Items/Meals.xml line 6.

That must what have trigger the error message.


So about the code. I prefer greatly try to explain you rather than just do it and give you the files.  I wish I will achieve to be clear enough ;)

All the Items seems properly labelled and written. What will cause problem is in the recipe, each one you have added is specified as an abstract and so will be discarded as soon as the game will launch.

You use Abstract and Parent in order to let the code more clear (and for not having to rewrite each and every def). I can try elaborate if needed (or hopefully someone else will come to precise things)
Quote from: kaptain_kavern on August 18, 2016, 12:22:28 PM
And maybe the way DESurgeries is done can give a clue : https://github.com/kaptain-kavern/DESurgeries/blob/master/Defs/RecipeDefs/Recipes_Surgery.xml

Have you check how it's done DESurgeries? It is recipes too, it works the same way.

BaconBits

I apologize if you thought I wanted you to show me how to do it. All I meant to ask was if you knew of another visual example for the meat. Sorry for the confusion bud. ;)
As for the code, I'm sure there're a few typing errors that I have yet to find. I haven't looked at DESurgeries yet, but I will.

kaptain_kavern

#20
Hey no problems buddy. It was more to be sure you don't get me wrong. I don't think you wanted this I clearly believe you prefer to learn. In fact that's why I'm feeling more compelled to help some more than other :-p

Grogfeld

Hey BaconBits can you provide that files? Link doesn't provide it anymore.
 

BaconBits

Here ya go. I worked on it a little after I posted it the first time. I know it's gotta be something stupidly simple that I'm missing, But, I had to work on updates for my other mods so that's why I suspended this project for the time being. Plus, I need to learn how to do it anyways.
https://www.dropbox.com/s/a6sbjd9bqvw7nfc/Grill%20Tech-Master.rar?dl=0

kaptain_kavern

Oh i was thinking it was settle.
Any other problems than the use of "Abstract" ?

BaconBits

Hmmmm.....I'm sure there is still. I was so tired the last time I messed with it I'm not sure if I even made the right changes.

Grogfeld

Thanks, I will look into it :)

PS: I saw textures and they really fit into your concept.

kaptain_kavern

Come on BaconBits, cheer up. You have nice texture and the code is nearly done.

We want BBQ here ^^

BaconBits

LOL, I'm good. I'm just taking a break from the mod for now that's all

BaconBits

Well, I hit the code again today. Took it all down to simplicity and so far not a single error. Now  it's testing time.  :) :)

kaptain_kavern