AzNean Lib
Shared library for mods that add items: one list of added item ids (no clash between mods), item names, recipes, backpack places.
By AzNean
| Date uploaded | a week ago |
| Version | 0.1.2 |
| Download link | AzNean-AzNean_Lib-0.1.2.zip |
| Downloads | 21 |
| Dependency string | AzNean-AzNean_Lib-0.1.2 |
This mod requires the following mods to function
BepInEx-BepInExPack_IL2CPP
BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.
Preferred version: 6.0.788README
AzNean Lib
What it does: Shared parts for my mods that add items to Sons of the Forest; it does nothing on its own.
How to use: Nothing to do: your mod manager installs it with the mods that need it.
Multiplayer: Installed by each player who has one of those mods; nothing more is needed on the host.
What it does
- Keeps one list of the item ids added by mods, so two mods never take the same id (that would lose a player's items). A clash is refused and written in the BepInEx log with the mod that has the id.
- Adds an item's name, plural and description to the game's own item texts, in the game's language.
- Adds crafting recipes to the game's crafting mat, and lets the mat take the items they use.
- Puts the backpack places a mod adds in the game's backpack lists, so items moved into the backpack show there.
- No patch of the game, nothing running every frame.
Used by: Slingshot Special Ammo.
Multiplayer
Nothing of its own goes over the network. Each player who installs a mod that needs it gets it with that mod.
For modders
BepInEx 6 IL2CPP plugin aznan.sotf.azneanlib; add [BepInDependency("aznan.sotf.azneanlib")] and the Thunderstore dependency AzNean-AzNean_Lib.
GameItems.Ready,GameItems.Add(mod, id, template, name),GameItems.SetTexts(item, name, plural, description),GameItems.LanguageRecipes.Add(mod, craftingSystem, recipeName, resultId, resultCount, parts, first),Recipes.MarkAsMaterial(mod, id)Backpack.JoinLists(mod, inventory, templatePlace, ourPlaces, copyPrefix)
Settings
In the game's Settings with the optional Mod Config Menu mod, or in BepInEx/config/aznan.sotf.azneanlib.cfg:
- Debug:
FullLogging(false): every item, text, recipe and backpack place added, with the mod that asked.
Contact
Contact me on X (@aznantriks) or Reddit (u/aznan-triks).
CHANGELOG
Changelog
0.1.3
- The log now warns when a recipe is added to a crafting mat other than the one you use.
0.1.2
- No longer experimental.
0.1.1
- The diagnostic log (Debug/FullLogging) now says why item texts or a recipe were not added, and the backpack warns when its places join no list.
0.1.0
- First version: shared list of added item ids, item texts, recipes and backpack places, taken from Slingshot Special Ammo.