Project Zomboid

Project Zomboid

1,909 evaluări
ItemTweaker Extra Clothing Option Addon
2
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
Mods: Framework, Misc
Dimensiunea fișierului
Postat
Actualizat
345.948 KB
21 mai 2022 la 6:56
26 mai 2022 la 5:22
2 jurnale de actualizare ( vizionare )

Abonează-te pentru a descărca
ItemTweaker Extra Clothing Option Addon

Descriere
ItemTweaker Addon, Extra Clothing Options
This addon add allows to easily add multiple extra clothing options, such as "Open Jacket" or "Down Hoodie" to modded items using the ItemTweakerAPI.

Currently, the ItemTweakerAPI doesn't allow to add a parameter to a field without overriding any previous changes.
Using this add-on, multiple mods can add/replace or remove extra clothing option without completely overriding them.

The add-on will try to include extra clothing options added without using the add-on.


Usage
Place your lua script inside the media/client folder of your mod.

Usage of this framework is as follow : -- Don't forget to include the addon if getActivatedMods():contains("ItemTweakerAPIExtraClothingAddon") then require("ItemTweaker_ExtraClothingOptions"); else return end -- The addon features three functions : -- AddOrReplaceClothingOption will replace any option with the same name with the new one -- First parameter is the full name of the clothing item on which to add the new clothing option -- Second parameter is the full name of the clothing item that will replace the previous one once this option is triggered ("ClothingItemExtra") -- Third parameter is the name of the extra clothing option, you will need extra stepts to create custom ones ("ClothingItemExtraOption") ItemTweaker.AddOrReplaceClothingOption("Base.HoodieUP", "Base.HoodieDOWN", "DownHoodie") -- AddClothingOptionIfDoesntExists will add an new clothing option if there is no other option with the same name -- it will do nothing otherwise -- Usage is the same as AddOrReplace ItemTweaker.AddClothingOptionIfDoesntExists("Base.HoodieUP", "Base.HoodieDOWN", "DownHoodie") -- RemoveClothingOption will remove the clothing option with the given name -- First parameter is the name of the item containing the extra clothing option -- Second parameter is the name of the extra clothing option ("ClothingItemExtraOption") ItemTweaker.RemoveClothingOption("Base.HoodieUP", "DownHoodie")


Changelog
  • 05/26/2022
    1. The add-on will now try to add as many options that are added using the original ItemTweaker Core API, this should reduce mod conflict and avoid the need to create patches.
    2. Fixed a bug that could cause an error due to conflict with other mods.


Known issues
  • Edditing the fields ClothingItemExtra and ClothingItemExtraOption with the ItemTweaker API after making changes this will override them, I'm currently working on a solution.


Future plans
  • Improve compatibility with mods making edits made with DarkSlayerEX's ItemTweaker that are not using this addon.


Requirements and credits
This addon requires the original ItemTweaker mod by DarkSlayerEX.
All credits for the original ItemTweaker goes to him.


Workshop ID: 2810800927
Mod ID: ItemTweakerAPIExtraClothingAddon
34 comentarii
Simsimix 17 sept. la 15:33 
is there a chance to make a function that works with items with mesh and items without mesh correctly?
trashcanhands 17 sept. la 7:39 
ItemTweaker is obsolete and I wish modders would stop using it.
莫名某某 16 sept. la 7:34 
Is this still working? Have Known issues been resolved? Can I correctly remove ClothingItemExtraOption while modifying other values using ItemTweaker?
Bıllıtø.exe 3 aug. la 17:16 
untucked shirt/t-shirt would be great
Morgan 28 mart. la 17:51 
May I add this to my modpack?
Mithrandirmord 23 aug. 2023 la 13:15 
every time i rejoin any of my friends servers both a dedi or a hosted co-op server this mod always has issues saying that it is out of date even when it was just working the previous evening. every time i join im forced to reinstall the mod in order to be able to join. I do not have any of the obsolete versions downloaded and the error i get just says that there is a version mismatch between the server and the mod when nothing on either end has changed.
Delran  [autor] 23 ian. 2023 la 15:56 
@Space Sprout

Go ahead, that stands for anyone who wants to share or repack this mod, feel free to do so.

@ МΛСΞ1337

Yes, you just need to install this.

@ Ninjaban

Doesn't looks like it's caused by this mod, it doesn't uses the Item Tweaker API (obsolete)
Space Sprout 22 ian. 2023 la 11:23 
Hello! I’m Kai reaching out on behalf of the Day’s End Roleplay server. We use your mod in our server and have loved it. We were hoping to make it part of our permanent mod pack.

This would include you extending your creative license to us, allowing our mod team to add/edit/use your mod to suit our server. As such we would not publish our edits to the workshop. We will include credit to you as the original creator of the mod, of course.

If this is agreeable to you or would like to discuss this further, please let us know. Thank you for all your effort.

Kai, Day’s End Mod Team
Iliade 25 nov. 2022 la 4:58 
Hi, I have a bug that I didn't have before this mod since today: My game crashes telling me I'm missing "Item Tweaker API (obsolete)".
Delran  [autor] 10 aug. 2022 la 15:16 
Go ahead.