Warhammer: Vermintide 2

Warhammer: Vermintide 2

284 人が評価
More Items Library
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
5.417 KB
2018年6月25日 17時23分
2022年6月30日 13時17分
10 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
More Items Library

解説
A library of functions to simplify working with mod items.

This mod does nothing on its own. It only serves as a modders' resource for adding temporary vanilla and custom items to a player's inventory. Eventually, it will also handle making these items display only to mod-using players in the trusted realm. This change would prevent custom item mods from impacting the experiences of unmodded players, a likely condition of sanctioned custom item mods.

Non-cosmetic mod items that provide an advantage will likely never be sanctioned, and sanctioning this library won't allow their use in the trusted realm.

INSTALLATION: Make sure that More Items Library is underneath VMF in your launcher's mod order, but higher than any mods that depend on it.

NOTE: This library is currently in development. Please expect instability.

Project Source [Git][github.com]

Usage:

- If the item is completely new, and does not yet have an ItemMasterList entry:

1. Create a new table

2. Fill that table with the relevant regular fields of an ItemMasterList entry

3. Insert your new entry into an array

4. Pass that array to mod.add_mod_items_to_masterlist()

Your item now has an ItemMasterList and NetworkLookup entry. ANY COMPLETELY NEW ITEM WILL CURRENTLY CRASH LOBBY PLAYERS WHO DO NOT HAVE MATCHING ITEM LISTS.

- When an item has an ItemMasterList entry, it can be added to your inventory:

1. Use table.clone to copy the ItemMasterList entry

2. Add a mod_data table to your entry copy (entry.mod_data = {})

3. To this mod_data table, add any of the fields listed below in the backend_template for your item's slot_type. To look at your existing items for reference material, call the Vermintide Mod Framework's 'dtf' function on the return result of PlayFabMirror.get_all_inventory_items().

4. Insert your new entry into an array

5. Pass that array to mod.add_mod_items_to_local_backend() with your mod's name

For example:
local entry = table.clone(ItemMasterList["ring_06"]) entry.mod_data = { backend_id = "something_unique", ItemInstanceId = "same as backend_id", CustomData = { traits = "[\"ring_potion_duration\"]", power_level = "300", properties = "{\"power_vs_skaven\":1,\"power_vs_unarmoured\":1}" }, traits = { "ring_potion_duration" }, power_level = 300, properties = { power_vs_unarmoured = 1, power_vs_skaven = 1, }, } mod:add_mod_items_to_local_backend({entry}, "your mod name")

Your item is now 'owned' for the game session, and will appear in item menus.

- When trying to remove items created by MoreItemsLibrary:

1. Create a numerical array of backend_ids for removal (e.g. local items = { "one", "two", "three" })

2. Pass that array to mod.remove_mod_items_from_local_backend() with your mod's name
10 件のコメント
kostaskladianos 2022年9月16日 14時45分 
In the mod with all skins and hats, why the artwork paintings doesn't work anymore?
kostaskladianos 2022年9月16日 14時44分 
Can i ask something my friend?
Aussiemon  [作成者] 2022年6月30日 13時18分 
Updated to fix an issue with unowned cosmetics.
Aussiemon  [作成者] 2020年11月24日 23時02分 
Updated to fix custom skins for mod items.
Robin 2018年8月24日 1時21分 
Sanction denied.
As stated, this mod does nothing on it's own.

Sanction request would be re-evaluated if another mod using this passed sanction review.
Spoofy 2018年7月14日 11時20分 
as far as it looks right now ... fatshark wont do anything because they could've simply done it by now. they just dont care about mods, wich is odd since they opened up the game for mods
madminer95 2018年6月30日 13時15分 
@Ƥ₥ῲ Floppy theirs no reason why this wouldn't get approved unless theirs any code problems, on its own it literally does nothing, FatShark will approve this and then approve or deny mods that use this mod as appropriate
Floppy 2018年6月30日 4時54分 
I doubt it will get into the trusted realm gorilla
Gorilla 2018年6月28日 15時31分 
this sounds amazing, once this mod gets accepted into the trusted realm i will defenitly use it
Lankycide 2018年6月26日 14時12分 
User-made items and weapons in Vermintide 2? Oh, I think my heart just stopped. :D <3