Talk:Random cooking effects: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

    21 May 2023

    • curprev 14:0914:09, 21 May 2023Librarianmage talk contribs 2,201 bytes +2,201 Created page with "== Code for processing weights == Made a little script to make the weights and tables automatically: <syntaxhighlight lang="python"> import xml.etree.ElementTree as ET data_dir = "../shortcuts/data/StreamingAssets/Base/" tree = ET.parse(data_dir + "ObjectBlueprints/Data.xml") objects = tree.getroot() cooking_objects = { obj.attrib['Name'][len('ProceduralCookingIngredient_'):]: obj for obj in objects if obj.attrib['Inherits'] == 'IngredientMapping'} data = di..."