PDA

View Full Version : Novice wants to override refrigerator recipes; seeking help.


ivyclarice
3rd Feb 2012, 12:32 PM
My experience: I've successfully done some XML tuning. I've read over other tutorials, including localized coding, object modding, and pure scripting, but have never actually done any of them.

My goal: I would like to replace all the default meal names in my game with vegetarian names, and also flag each dish as 'vegetarian'. This is so a dish like Frogs Legs would not just be renamed, but actually consumable by a vegetarian Sim without making her ill.

Current status: I've written out an STBL, but realized that since I'm seeking to override, not add, I'm not sure how to proceed. I know how to use s3pe to import the STBL. Using this post (http://www.modthesims.info/showthread.php?t=458983&highlight=vegetarian) about another vegetarian mod, and the localized coding tutorial (http://www.modthesims.info/wiki.php?title=Tutorial:Sims_3_Localized_Coding), here's an example of what I wrote:

<TEXT>

<KEY>Gameplay/Excel/RecipeMasterList/Data:SeitanSteak</KEY>
<STR>Seitan Steak</STR>

</TEXT>

What I want to do is use that to overwrite Tri Tip Steak (and then so forth, down the master receipe list), but I'm not 100% sure how to do that, or if it's even advisable.

Again, the overall goal is to make all food vegetarian by default, both named and flagged, so if there's a better way to accomplish that, I'm open! I'm also willing to read other tutorials, if that would help...any suggestions are welcome! :)

ani_
3rd Feb 2012, 12:46 PM
The recipe xml has an isvegiterian flag (or something similar), so you'll have to add that to all the recipes.

To override the actual name, you can always just check out the original stbl, and give it the same key.

ivyclarice
3rd Feb 2012, 12:54 PM
Thanks, ani!

I did find the vegetarian flag, and will apply it to each dish. I thought I might have to use the original STBL, but I was a little hesitant to go rushing off on my own without checking in with the pros, since it's my first effort and overriding original content, at that.

I was seeking the original string in the fullbuilds, but didn't find it on my first couple of tries. I'll go hunting for them again.

HugeLunatic
3rd Feb 2012, 02:21 PM
Does this existing mod not do already do what you want? http://www.modthesims.info/d/462195 If not exactly maybe you could take a peek at what it does to help you as well.

ivyclarice
3rd Feb 2012, 06:53 PM
It's not quite the same, but it is in the ballpark. I opened it up in s3pe and looked at it a few days ago, but finally decided it might be a good experience to try my own modding, from the ground up.

Thanks so much to both of you for your friendly, polite and helpful answers. :)