Project Zomboid

Project Zomboid

1,681 ratings
ItemTweaker Extra Clothing Option Addon
2
   
Award
Favorite
Favorited
Unfavorite
Mods: Framework, Misc
File Size
Posted
Updated
345.948 KB
May 21, 2022 @ 6:56am
May 26, 2022 @ 5:22am
2 Change Notes ( view )

Subscribe to download
ItemTweaker Extra Clothing Option Addon

Description
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
30 Comments
Morgan Mar 28 @ 5:51pm 
May I add this to my modpack?
Mithrandirmord Aug 23, 2023 @ 1:15pm 
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  [author] Jan 23, 2023 @ 3:56pm 
@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 Jan 22, 2023 @ 11:23am 
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 Nov 25, 2022 @ 4:58am 
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  [author] Aug 10, 2022 @ 3:16pm 
Go ahead.
Guppy Aug 9, 2022 @ 10:43pm 
hey i wanted to ask permission to repackage this mod into a list for my server for updating purposes. Would that be alright?
Mandalore Jul 29, 2022 @ 6:41am 
Ok nice thanks for the answer
Delran  [author] Jul 29, 2022 @ 12:34am 
Go ahead.
AndyLoco Jul 28, 2022 @ 8:56pm 
Permission Request:
Hi, @Delran ! I would like to ask your permission to use your mod in our server modpack. I will give you full credit for your mod in every media I can. If you allow us to do this our community would be very grateful. Thank you!