SPM NewStore Example
[Example Mod for Safehouse Progression Mode] (Second coolest!) For modders to use as a sample when adding a new store with a specific selection of items. Does not include prices.
模組介紹 作者原文
New store Example mod
Who: For modders to use as an example when making their own "Safehouse Progression Mode" config mods.
What: Contains these README instructions, a sample shRnk_defaultRanks.json file, an icon.png, and manifest.json. The knviesStore.png is the image that will show in the itemshop and players will click on to get to your store. The sufficient resources for a newbie modder to copy the entire folder and make their own mod from.
When: NOW!
Where: If using R2ModMan (aka R2MM) you can find this folder under the path: "C:\Users\\AppData\Roaming\r2modmanPlus-local\H3VR\profiles\\BepInEx\plugins\NGA-SPM_NewStore_Example"
Why
Suppose you've really gotten into 'themes' and now you want to make a Store, like say, a store that only sells specific categories of items, like say, SMGs etc, but you Don't care about tags like 'Soviet era', because the dev didn't have time to implement that. Well this is the sample mod for you! You can make an IKEA store, an Optics-only store, whatever.
Details
{
"displayName": "Rekki's Relished Firearms",
"modFolderName": "NGA-SafehouseProgressionModeCode_Beta",
"iconFileName": "rekkiStoreIcon.png",
"allowedPageModes": [
1,3
],
"disallowedSubCats": [
49, 57, 62, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109
]
}
- There must be one file per "Store" you want to add, and each one has these top-level fields:
- displayName: Player-visible (not actully) name of the store.
- modFolderName: The folder name of the mod in format Author-ModName, so for this sample mod it's NGA-SPM_LevelRewards_Example.
- iconFileName: Player-visible icon shown in the item shop that players click on, like knviesStore.png.
- The icon should be about 570x220px, and it has to be a png.
- allowedPageModes: (Required) List of enum ints from which item subcategories below will come, like "Firearms" is 1.
- See appendix for full list in PageMode.
- exclusiveSubCats: (Optional) List of enum ints of the only categories within each page which are allowed to be sold; for example, "Automatic Pistol" is 1.
- See appendix for full list in ItemSpawnerID.ESubCategory.
- disallowedSubCats: (Optional) List of enum ints of categories which are blocked, assuming you didn't populate exclusiveSubCats above, otherwise they're ignored.
- See appendix for full list in ItemSpawnerID.ESubCategory.
Appendix
These are the relevant H3VR enums copied over.
public enum PageMode
{
MainMenu,
Firearms,
Ammo,
Attachments,
Melee,
ToolsToys,
ReservedForNextYearDontTouch,
Saved,
Help
}
public enum ESubCategory
{
None,
AutomaticPistol,
Revolver,
MachinePistol,
BreakActionShotgun,
TubeFedShotgun,
MagazineFedShotgun,
SMG,
PDW,
LeverActionRifle,
Carbine,
AssaultRifle,
BattleRifle,
BoltActionRifle,
AntiMaterial,
Grenade,
Machinegun,
Ordnance,
IronSight,
ReflexSight,
Magnifier_Scope,
Suppressor,
Laser_Light,
RailAdapter,
Decorative,
Tactical,
Improvised,
Thrown,
Utility,
Target,
Horseshoe,
TippyToy,
Firework,
BreechloadingHandgun,
LeverActionHandgun,
LeverActionShotgun,
Garage,
PowerTools,
Medieval,
GoofyMelee,
FarmTools,
Shields,
BoltActionPistol,
Foregrip,
Stock,
Backpack,
Bayonet,
UnderBarrelWeapon,
BangerJunk,
RailHat,
MuzzleLoadedPistol,
Derringer,
BreechloadingRifle,
MuzzleLoadedRifle,
Bipods,
MuzzleBrakes,
MuzzleAdapters,
Sosigguns,
GrenadeLaunchers,
RocketMissileLaunchers,
LocomotionGuns,
RemoteExplosives,
Exotic,
Barrier,
SteelTarget,
DestructibleTarget,
Prop,
Furniture,
Primitive,
HeadMounted,
Signals,
Controls,
Widgets,
Sosiggrenade = 80,
Sosigmelee,
MF_Scout = 100,
MF_Soldier,
MF_Pyro,
MF_Demo,
MF_Heavy,
MF_Engineer,
MF_Medic,
MF_Sniper,
MF_Spy,
MF_Generic
}
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。