Project Zomboid

Project Zomboid

1,909 次評價
ItemTweaker Extra Clothing Option Addon
2
   
獎勵
加入最愛
已加入最愛
移除最愛
Mods: Framework, Misc
檔案大小
發佈於
更新時間
345.948 KB
2022 年 5 月 21 日 上午 6:56
2022 年 5 月 26 日 上午 5:22
2 項更新註記 (檢視)

訂閱以下載
ItemTweaker Extra Clothing Option Addon

描述
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 則留言
Simsimix 9 月 17 日 下午 3:33 
is there a chance to make a function that works with items with mesh and items without mesh correctly?
trashcanhands 9 月 17 日 上午 7:39 
ItemTweaker is obsolete and I wish modders would stop using it.
莫名某某 9 月 16 日 上午 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 8 月 3 日 下午 5:16 
untucked shirt/t-shirt would be great
Morgan 3 月 28 日 下午 5:51 
May I add this to my modpack?
Mithrandirmord 2023 年 8 月 23 日 下午 1: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  [作者] 2023 年 1 月 23 日 下午 3: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 2023 年 1 月 22 日 上午 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 2022 年 11 月 25 日 上午 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  [作者] 2022 年 8 月 10 日 下午 3:16 
Go ahead.