Mods / Skillbooks Core

Tags:
Loot Gameplay
Author:
Eironae
Side:
Both
Created:
Aug 15th at 1:20 AM
Last modified:
4 days ago
Downloads:
1062
Recommended download (for Vintage Story 1.21.0-pre.1 - 1.22.7):
skillbooks_0.6.0.zip  1-click install

Skillbooks

Skillbooks Core

Skillbooks turns crafting traits into something you find, not just something you're born with. Every crafting trait in your world both vanilla and modded alike gets its own lore-styled book, generated automatically when the server starts. Read one, and you permanently learn the trait it teaches.

Known Compatibility Issues

  • XSkills (1.21) - All books register as aged books and give no boosts. This is likely due to the game version: Skillbooks is developed and tested for 1.22, so adding compatibility for 1.21 would mean developing backwards. If this is something you want, let me know in the comments. In the meantime, the XSkills fork should work. As of v0.6.0, xskills skillbooks should no longer have issues.

Found another conflict? Please open an issue on GitHub with which mod and what you're seeing.

How it works

At server start, Skillbooks scans every loaded recipe for a required trait and cross-references that against the traits your mods actually define. Whatever it finds gets a book with a title, an in-world description, and a spot in the loot and trading pools. Install a new class mod, restart the server, and its traits already have books waiting to be found.

A Skillbook's in-game tooltip

Features

  • Dynamic discovery. No per-trait setup. New traits from other mods pick up books automatically.
  • Curated flavour text. Every vanilla and supported-mod trait has a hand-written title and description, not a generic placeholder.
  • Multiple ways to find books. Cracked vessels and treasure hunter traders, each independently configurable.
  • Salvage. Turn a book you don't want into leather.
  • Reroll. Hold a temporal gear in your offhand while reading a book to trade it for a different random trait instead of learning it.
  • Graceful degradation. If a mod providing a trait gets removed later, its book becomes a distinct "illegible" item instead of corrupting or vanishing; still salvageable or rerollable, just no longer readable for the trait.

Traits with curated flavour

Every vanilla crafting trait, plus every crafting trait from these mods, has hand-written flavour text rather than the procedural fallback:

  • Vanilla - 5 traits
  • Aldi's Classes - 24 traits

A trait from any other installed mod still gets a book automatically (see "How it works" above), just with a plainer procedural description until flavour's written for it, either here or by the mod's own author (see "Making a class mod?" below).

Configuration

A config file is generated on first run with control over:

  • Loot spawn chance and which block codes can drop a book
  • Trader spawn chance, which trader types offer books, and their price
  • An allowlist or blacklist to include or exclude specific traits
  • Whether salvage and reroll are enabled, and whether either is restricted to illegible books only

Making a class mod?

Skillbooks discovers your traits automatically, but if you'd rather write your own flavour text for your own trait's book instead of using the procedural fallback, just ship a file at assets/<yourmoddomain>/config/skillbooks/<traitcode>.json in your own mod:

{
  "title": "Your Book's Title",
  "blurb": "The in-world description shown when the book is read or inspected."
}

That takes priority over Skillbooks' own curated list, no coordination with this repo required.

Part of a family

Skillbooks has a standalone addon, Skillbooks: Stats, which does the same thing for stat-modifying traits (Fleetfooted, Hardy, and so on). It works entirely on its own, but if both mods are installed it automatically shares this mod's trait registry and flavour text rather than duplicating anything.

Open source

Skillbooks is developed in the open under the GPL-3.0 license. Source, issue tracker, and releases are all on GitHub. Bug reports, feature requests, and pull requests are welcome, see CONTRIBUTING.md to get started.

AI Disclaimer

AI assistance has been used in the creation of flavour text for some of the books, documentation within the GitHub repository, comment writing within the codebase and repetitive tasks during development. The generated output was personally checked, modified and thoroughly tested by me for quality and accuracy and is subject to change at any time.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
0.6.0 skillbooks
1.21.0-pre.1 - 1.22.7
257 4 days ago skillbooks_0.6.0.zip 1-click install

Added

  • Support for Vintage Story 1.21.
  • Compatibility for XLib & XSkills

Fixed

  • Two rare crashes when discovering crafting traits or rerolling a book while your inventory is full.
  • Renamed an internal item registration key to fix a conflict with XLib's own skillbooks.
0.5.1 skillbooks
1.22.0-pre.1 - 1.22.7
107 5 days ago skillbooks_0.5.1.zip 1-click install

Fixed

  • Learned Traits no longer shows traits from a previous character after using the admin charsel command -- it now shows only traits both learned from a book and currently active, not the full historical learn-log.

Added

  • New config option KeepTraitsOnCharSel (default true). charsel effectively starts a new character and was silently dropping skillbook-granted trait bonuses along with it -- when enabled, those bonuses are automatically restored after a reselect.
0.4.0 skillbooks
1.22.0-pre.1 - 1.22.7
381 Aug 19th at 8:05 PM skillbooks_0.4.0.zip 1-click install

Added

  • Learned Traits tab in the character screen, alongside Character and Traits. Lists every trait learned from a skillbook, including any stat bonuses, with a working scrollbar (vanilla's own Traits tab has a pre-existing bug with overflowing content).
0.3.1 skillbooks
1.22.0-pre.1 - 1.22.6
307 Aug 15th at 3:14 AM soundbyter-skillbooks-v0.3.1_v1.22.6.zip 1-click install

Changed

  • modinfo.json's website field now points at this mod's ModDB page.

No functional changes.

0.3.0 skillbooks
1.22.0-pre.1 - 1.22.6
10 Aug 15th at 2:37 AM Empty soundbyter-skillbooks-v0.3.0_v1.22.6.zip 1-click install

12 Comments (oldest first | newest first) (threaded | flat)

DrWrights, 12 hours ago

Can you add a feature to forcefully clear a player's learned traits via commands? Or even for everyone on a server?

Yee7i, 1 day ago

Please disable hiding the skillbooks from the handbook. I spent the better part of an hour trying to figure out why the mod adds nothing, and only after checking your actual code I found out you're hiding the books from the handbook

Eironae , 1 day ago
@Yee7i: Please disable hiding the skillbooks from the handbook. I spent the better part of an hour trying to figure out why the mod adds nothing, and only after checking your actual code I found out you're hiding the books from the handbook

Sorry for the frustration! This was done as with a sufficiently modded game and both Skillbook mods installed you could end up with well over 100 handbook entries. From my experience it became quite unwieldy to search through it all.

In the next update I'll make this config-driven instead, defaulting to keeping them visible so people can hide them if they want.

rabah, Aug 16th at 12:16 AM

can you add a compability patch for xskills books? it messed with them and now i cant read the books that gives xp

Eironae , Aug 16th at 12:57 AM
@rabah: can you add a compability patch for xskills books? it messed with them and now i cant read the books that gives xp

Of course. I haven't used xskills much so I will have to playtest a bit first. I'll reply when I've added compatibility.

rabah, Aug 16th at 7:26 AM
@Eironae: Of course. I haven't used xskills much so I will have to playtest a bit first. I'll reply when I've added compatibility.

thanks!!  take it easy im sure you'll love the mod.BTW, where can i see the traits i got from the books because i cant find them in the ''trait'' tab ingame.

Eironae , Aug 16th at 2:53 PM
@rabah: thanks!! take it easy im sure you'll love the mod.BTW, where can i see the traits i got from the books because i cant find them in the ''trait'' tab ingame.

Normally they show up in the trait tab though there could be a mod interfering - there's also an issue with vanilla where if you have too many you can't scroll to view them all. I am working on adding a "Learned Traits" tab so you can view them separately.

Tearakudo, Aug 15th at 4:29 AM

YOur AI use is showing - at least make a note of it

Eironae , Aug 15th at 4:49 AM
@Tearakudo: YOur AI use is showing - at least make a note of it

Apologies, I was intending on writing a disclaimer after I finished setting up everything and hadn't gotten around to it until now.

I've added a disclaimer onto the mod page and will be doing so for the addon and the repos as well. 😊

Eironae , Aug 15th at 5:52 AM
@Tearakudo: Fair - personally my feelings on AI are "Can you fix it if it breaks WITHOUT the AI". As a tool for code, yeah

Exactly my feelings too. If you understand what's being output and can reasonably guard against malicious attacks against AI (like prompt injection) then it's a valuable tool for speeding up dev work.