Warhammer: Vermintide 2

Warhammer: Vermintide 2

284 평점
More Items Library
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
업데이트일
5.417 KB
2018년 6월 25일 오후 5시 23분
2022년 6월 30일 오후 1시 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일 오후 2시 45분 
In the mod with all skins and hats, why the artwork paintings doesn't work anymore?
kostaskladianos 2022년 9월 16일 오후 2시 44분 
Can i ask something my friend?
Aussiemon  [작성자] 2022년 6월 30일 오후 1시 18분 
Updated to fix an issue with unowned cosmetics.
Aussiemon  [작성자] 2020년 11월 24일 오후 11시 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일 오후 1시 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일 오후 3시 31분 
this sounds amazing, once this mod gets accepted into the trusted realm i will defenitly use it
Lankycide 2018년 6월 26일 오후 2시 12분 
User-made items and weapons in Vermintide 2? Oh, I think my heart just stopped. :D <3