Warhammer: Vermintide 2

Warhammer: Vermintide 2

284 ratings
More Items Library
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.417 KB
25 Jun, 2018 @ 5:23pm
30 Jun, 2022 @ 1:17pm
10 Change Notes ( view )

Subscribe to download
More Items Library

Description
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 Comments
kostaskladianos 16 Sep, 2022 @ 2:45pm 
In the mod with all skins and hats, why the artwork paintings doesn't work anymore?
kostaskladianos 16 Sep, 2022 @ 2:44pm 
Can i ask something my friend?
Aussiemon  [author] 30 Jun, 2022 @ 1:18pm 
Updated to fix an issue with unowned cosmetics.
Aussiemon  [author] 24 Nov, 2020 @ 11:02pm 
Updated to fix custom skins for mod items.
Robin 24 Aug, 2018 @ 1:21am 
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 14 Jul, 2018 @ 11:20am 
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 30 Jun, 2018 @ 1:15pm 
@Ƥ₥ῲ 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 30 Jun, 2018 @ 4:54am 
I doubt it will get into the trusted realm gorilla
Gorilla 28 Jun, 2018 @ 3:31pm 
this sounds amazing, once this mod gets accepted into the trusted realm i will defenitly use it
Lankycide 26 Jun, 2018 @ 2:12pm 
User-made items and weapons in Vermintide 2? Oh, I think my heart just stopped. :D <3