|
Post by SrslySims on Mar 24, 2019 1:36:05 GMT -5
I am trying to make a new set of tags for my grocery mod. So meats, frozen foods, dairy, etc can have their own ingredient tag. So they can be searchable in a buy interaction window with sorted categories. Like the Ranger Station sort categories. I started with meats so, I will use that as an example: In tag.TagCategory Sim Data = 545AC67A-006CA304-D89CB9186B79ACB7 I've added in: <T type="String">Func_Ingredient_Meats</T> <U type="Object" schema="EnumNameValuePair">
<T name="Name">Func_Ingredient_Meats</T>
<T name="Value">47166</T>
</U> In Tag Tuning = 03B33DDF-00000000-D89CB9186B79ACB7 <T ev="47166">Func_Ingredient_Meats</T> and in crafting.crafting_ingredients = 03B33DDF-00000000-6014BA1E56075ABF <U>
<E n="key">Func_Ingredient_Meats</E>
<T n="value">0x00CA95C7<!--SrslySims:Any Meats--></T>
</U> Then I went into one of the new meats ObjectCatalogResource and edited the tags and tried to add the new one. I can add in its TagValue but because of the drop down tag window I am unable to assign it the tag name? Is this a limitation currently, is there a way around this or did I just totally miss something/do something wrong along the way?
|
|
|
Post by andrew on Mar 25, 2019 2:04:59 GMT -5
Hey SrslySims, the inability to set the name of the tag in the object catalog is normal. All that really gets stored and read by the game is the number. The TagValue was added as an alternate way specifically for the purpose of adding non-standard tags like this to their objects. As long as your package is saving and reloading with the same number, that part should be okay. If you could post a package we can take a look at it and see what the issue is with the other part.
|
|
|
Post by SrslySims on Mar 25, 2019 2:34:06 GMT -5
That is what I assumed, but wasn't sure what else I could be missing to get it working. Thanks for explaining it though, glad to know that this is the correct route to go for this concept. Here is the .package with those changes mentioned, if you need the entire mod I can send it in a DM or via discord dm. In all honesty, I may have mad a mistake somewhere along the way, as I am still learning. But I am generally curious to know how this works.
|
|
|
Post by SrslySims on Mar 25, 2019 19:59:38 GMT -5
I figured out my problem! EDIT: Found my answer here in the official forums. Thought I would share just in case someone else might need it one day.
|
|