Project Zomboid
Оценок: 5,754
Item Tweaker API - Still works in Build 41.78
2
2
2
   
Наградить
В избранное
В избранном
Удалить
Метки: Mod
Размер файла
Добавлен
Изменён
2.020 KB
30 ноя. 2015 г. в 15:51
5 дек. 2015 г. в 7:35
Обновлений: 3 (просмотреть)

Подпишитесь, чтобы загрузить
Item Tweaker API - Still works in Build 41.78

Описание
Workshop ID: 566115016
ModID: ItemTweakerAPI

--EDIT 2--
For those of you who are -still- getting missing file errors, Unsubscribe from the other item tweaker here.
https://steamcommunity.com/workshop/filedetails/?id=2510747487

Having both versions subscribed list alone can cause issues, as they are using the same ModID, and is 100% confusing your game's mod enabling/loading attempts.

This alone is making it try to load both my still working code, and the outdated version's now broken code.

Furthermore, if this issue is still happening, and you know you haven't subscribed to this mod, then there may be another mod you've subscribed to that is still using the outdated mod's script files.

I recommend looking into which those are, and suggest those mods switch back to this still working version.

---EDIT---
It's come to my attention that there is another version of item tweaker that had been updated at one point. While it may have been an improvement at one point, and I thank him for trying to keep this mod alive, his version is apparently causing many issues in the new build. This version seems to still work very well.

I have not been modding for PZ in quite a long time, however knowing this mod still works now as it did before makes me feel glad to have been part of the modding community. Should this start acting up for real, I may pass it on to someone more active, but as of now, I hope you continue to enjoy it. Thank you again Brybry and Blindcoder for helping to make improved mod compatability possible all these years



---ORIGINAL POST---

This modding API allows any modders to make multiple changes to any items loaded into the game's current database, while leaving the rest of the remaining values alone.

Change any item's weight, display name, display category, hunger reduction, or anything else, while keeping the item as mod friendly as possible.
(WARNING: changing TYPE will delete all instances of already spawned items)

You can change only an item icon, while another mod changes the same item's weight, all without conflict (Unless mods do not use this mod to do so, or two mods try to change the same value, in which case, the last loaded mod will win)

For the Simplest Implementation through LUA:
-----------------------------------------------------------------------Begin File
if getActivatedMods():contains("ItemTweakerAPI") then
require("ItemTweaker_Core");
else return end

TweakItem("Base.Needle","Icon", "Worm");
TweakItem("Base.Needle","Tooltip", "Wearable: Waist");
TweakItem("Base.Needle","DisplayCategory", "Repair");
-----------------------------------------------------------------------End File
For each item and property you wish to change, create a new line, and place the related values in place.

You can even add custom ModData to items.
TweakItem("Base.Needle","BaseValue", "500");

Organized Item Names is an example mod to hopefully show beginner modders how to make use of this API

Mods I know of using this API:
Custom Categories
JPCategoriesPlus - By: Proxyer
Littering - By: Svarog
Jaw Stab Proliferation - By: LoonyLadel

Wedge's Item Name Fixes - By: Wedge McCloud (Includes changes for some other mods)
Custom Categories(Outdated: Use Wedge's Item Name Fixes instead)
Organized Item Names (Outdated: Use Wedge's Item Name Fixes instead)

Wedge's Hydrocraft Tweaks - By: Wedge McCloud (Requires Hydrocraft)
Better Carts - By: yuriy206 (Requires Hydrocraft)




Комментариев: 131
莫名某某 16 сен в 7:28 
@therealwesleywmd
If you are ready to upload an improved version. Can you add the remove Item data function? Like ItemTweaker Extra Clothing Option Addon. I want to remove the ClothingItemExtraOption but I can't. There are Known issues with Clothing Option Addon
therealwesleywmd 14 сен в 11:19 
I see this mod isn't being updated often. I will still leave this here.

I started using this mod but found that it doesn't respect ArrayLists. Things like Tags are an array list in items and are a list separated by ;. This mod will treat each list as a single value which will cause 2 mods to override one another. I have made the edits to make a working copy where I can append tags and categories instead of replace them. Not sure if I should post it as my own mod or updates are still valid here.
Derplordofdeath 22 авг в 20:50 
nevermind https://projectzomboid.com/modding bro put this in the description "hey if you wanna use this and your new to modding here is where you find the things to use my mod : )"
Derplordofdeath 22 авг в 20:42 
and no i mean use the api where do i go to find property values for clothing??????
Derplordofdeath 22 авг в 20:41 
how the fuck do i use this mod...
Sayo90IP 27 июл в 3:43 
The mod does not allow you to start the server, the game writes "The mod cannot be opened in this world." Like that :/
T.tv/Fiorecita 7 июл в 20:48 
actuality for error
Token McFatkid 7 мая в 11:09 
Stop asking for updates, tweaks, etc.
Bother to read the mod description.
Learn Lua.
Morgan 28 мар в 17:47 
May I use this in my modpack?
Revion 16 мар в 20:54 
@Kaity To tweak moodles, you should use StatsAPI or MoodleFramework. MoodleFramework for making new ones, StatsAPI for tweaking existing moodles.