Tutorial #2:
apartment hacking a C&C aLa Carte fridge
(continued)
STEP 5:
Open each food file and apply the patch. Now, you do NOT have to edit every "check" BHAV in the food files!!! You only need to edit the check for the type of food file (i.e. the Regular Meal, the Group Meal, etc.) Rather than explain how to identify each food group type, I made a list for you:
Cake Meals:
foodbread
foodcarrotcake
foodelderpie
foodhomemadecake
foodpizza1
foodcroissants
foodsuishi
Regular Meals:
foodbacon1
foodfishsticks
foodposteak
foodpot8dimsum
foodpot8eggs
foodpot8indiancurry1
foodpot8lumpia
foodpot8noodles
foodpot8spaghetti
foodpot8stew
foodpot8stirfry
foodpot8sweetandsour
foodpot8teriyaki
foodschickenpotatoes
foodseafood
Single Cake Meals (Piece):
foodbftray1
foodcaesarsalad1
foodclubsandwich1
foodfruit1
foodham1
foodlobster1
There are also the regular food files, but I just use Inge's pre-hacked apartment fridge food files. You do NOT need to clone these food files.
Here is what you need to change in each food file (Figs 4-7).
Fig-4: Cake Meals (click to enlarge)
Fig-5: Regular Meals (click to enlarge)
Fig-6: Group Meals (click to enlarge)
Fig-7: Single Pieces (click to enlarge)
STEP 6:
Now we have to tell the fridge what food files to reference. For this, you need the GUIDs of you cloned food files, and the GUIDs of the original (to your hacked fridge) food files. This is what we did earlier.
Open your fridge in IFF Pencil 2. Look for each food name (i.e. "create ham", "create fish", etc.). Open the BHAV for each food and replace the original GUID with your corresponding cloned GUID. See Fig-8; the example is still "foodbacon1". Note how the GUID is backwards. That's because it's in hex code. Just flip your GUID around, and enter it into the hex parameters boxes. There should be 4 pairs of characters. (You may notice repeating patterns in the second and third pairs of numbers. Don't panic, it's just your magic cookie in hex form. You do have a magic cookie, right? If you're cloning, you should...)
Repeat this process with all of the food files, including Inge's. Save the fridge file, re-import into T'mog, and test in your game. Be sure that you also install your hacked food files, or the fridge won't work. It's also necessary to have some type of apartment door installed to confirm the effectiveness of your hacking. You can use mine, or see the links page for sites with apartment hacked objects.
That's it! If your testing turns out properly, you have sucessfully hacked your aLa carte fridge!