Warhammer: Vermintide 2

Warhammer: Vermintide 2

284 arvostelua
More Items Library
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
5.417 KB
25.6.2018 klo 17.23
30.6.2022 klo 13.17
10 muutosilmoitusta ( näytä )

Tilaa ladataksesi
More Items Library

Kuvaus
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 kommenttia
kostaskladianos 16.9.2022 klo 14.45 
In the mod with all skins and hats, why the artwork paintings doesn't work anymore?
kostaskladianos 16.9.2022 klo 14.44 
Can i ask something my friend?
Aussiemon  [tekijä] 30.6.2022 klo 13.18 
Updated to fix an issue with unowned cosmetics.
Aussiemon  [tekijä] 24.11.2020 klo 23.02 
Updated to fix custom skins for mod items.
Robin 24.8.2018 klo 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 14.7.2018 klo 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 30.6.2018 klo 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 30.6.2018 klo 4.54 
I doubt it will get into the trusted realm gorilla
Gorilla 28.6.2018 klo 15.31 
this sounds amazing, once this mod gets accepted into the trusted realm i will defenitly use it
Lankycide 26.6.2018 klo 14.12 
User-made items and weapons in Vermintide 2? Oh, I think my heart just stopped. :D <3