Support Oblivion #96

Open
Superkooka wants to merge 8 commits from feat/oblivion-books into main
Owner
No description provided.
Isolate what differs between games: a PluginDialect for plugin layouts
and record readers, a BsaFormat table per archive version, and a
GameProfile for load orders, text, fonts and book markup.

Skyrim's book export is unchanged, file for file.
Remove every implicit Skyrim fallback: PluginQuery and GameSource throw
without a dialect or a profile, and each game declares its own skills.

Cover the Oblivion export from the command line to the JSON, and document
supported games, the Oblivion formats and their spec deviations.
Accept --load-order oblivion, export inventory icons, name skills as the
reference does, and stop doubling the line break after <br>.

Name the game in export.json so the site's descriptions stop saying
Skyrim, and give Oblivion.esm references a player.moveto command.
uesp.sh reads the Oblivion_Mod pages with --oblivion. nif.sh selects a
file version with --version, since BS 11 covers several. xedit.sh finds
RegisterRecordDef declarations, which Oblivion uses throughout.

The skills state what differs for Oblivion: no Block Size, inline
strings, no form version, no string tables.
raster-records takes --game. Map options whose records a game lacks are
declared on its profile and ignored with a warning at parse time. Oblivion's
LTEX names its texture directly, its NIFs from 10.0.1.0 have no block sizes
and get their own sequential reader, a SpeedTree tree is drawn as leaf cards
over a dome sized by its billboard, and a cell without XCLW has its water
at height 0.
feat(exporter): tint the map water with the game's colors on request
All checks were successful
/ docs (push) Successful in 5s
/ format (push) Successful in 3m1s
/ test (push) Successful in 2m43s
Benchmarks / compare (pull_request) Successful in 21m22s
e67a1bae6f
--water-color takes cartographer-blue, the default, real, which reads each
cell's WATR shallow and deep colors through XCWT or its worldspace's NAM2,
or real-unless-blue, which keeps the map's blue for ordinary water and the
game's colors for lava and the like.
Superkooka changed title from feat/oblivion-books to Support Oblivion 2026-11-24 23:34:11 +00:00

Benchmarks

Base 87317f5c against head 387a5dd5, alternating over 5 rounds on the same runner.
Times are per operation, the fastest round of each side. A change counts only when every round shows it beyond the error margins of both runs; otherwise it is marked as noise.
A shared runner is noisy: trust the allocations more than the times, and confirm a time on an idle machine.

No benchmark changed beyond its error margins in every round, and no allocation changed.

All benchmarks (10)
Benchmark Parameters Base Head Change Rounds Base allocated Head allocated
LandscapeRasterizerBenchmarks.Draw Kernel=bicubic 18.04 ns 18.3 ns +1.42 % (noise) -25.02 % to +24.91 % 0 B 0 B
LandscapeRasterizerBenchmarks.Draw Kernel=bilinear 15.78 ns 16.1 ns +2.09 % (noise) -22.33 % to +20.16 % 0 B 0 B
ObjectRasterizerBenchmarks.Draw Scenario=texture 51.61 ns 52.57 ns +1.86 % (noise) -8.97 % to +8.9 % 0 B 0 B
ObjectRasterizerBenchmarks.Draw Scenario=texture-blended 63.76 ns 65.95 ns +3.44 % (noise) -8.46 % to +12.06 % 24 B 24 B
ObjectRasterizerBenchmarks.Draw Scenario=texture-cut 29.36 ns 29.76 ns +1.37 % (noise) -2.65 % to +2.87 % 0 B 0 B
ObjectRasterizerBenchmarks.Draw Scenario=texture-lit 33.41 ns 33.2 ns -0.66 % (noise) -0.66 % to +10.17 % 0 B 0 B
ObjectRasterizerBenchmarks.Draw Scenario=wireframe 10.52 ns 10.5 ns -0.24 % (noise) -2.24 % to +9.11 % 0 B 0 B
ObjectTextureBenchmarks.Sample Kernel=bicubic 93.34 ns 95.28 ns +2.08 % (noise) -6.65 % to +7.55 % 0 B 0 B
ObjectTextureBenchmarks.Sample Kernel=bilinear 57.47 ns 56.44 ns -1.78 % (noise) -4.14 % to +5.73 % 0 B 0 B
PngEncoderBenchmarks.Encode 88.83 ns 89.26 ns +0.48 % (noise) -30.12 % to +3.47 % 4 B 4 B
<!-- benchmark-report --> ### Benchmarks Base `87317f5c` against head `387a5dd5`, alternating over 5 rounds on the same runner. Times are per operation, the fastest round of each side. A change counts only when every round shows it beyond the error margins of both runs; otherwise it is marked as noise. A shared runner is noisy: trust the allocations more than the times, and confirm a time on an idle machine. No benchmark changed beyond its error margins in every round, and no allocation changed. <details> <summary>All benchmarks (10)</summary> | Benchmark | Parameters | Base | Head | Change | Rounds | Base allocated | Head allocated | |---|---|---|---|---|---|---|---| | `LandscapeRasterizerBenchmarks.Draw` | Kernel=bicubic | 18.04 ns | 18.3 ns | +1.42 % (noise) | -25.02 % to +24.91 % | 0 B | 0 B | | `LandscapeRasterizerBenchmarks.Draw` | Kernel=bilinear | 15.78 ns | 16.1 ns | +2.09 % (noise) | -22.33 % to +20.16 % | 0 B | 0 B | | `ObjectRasterizerBenchmarks.Draw` | Scenario=texture | 51.61 ns | 52.57 ns | +1.86 % (noise) | -8.97 % to +8.9 % | 0 B | 0 B | | `ObjectRasterizerBenchmarks.Draw` | Scenario=texture-blended | 63.76 ns | 65.95 ns | +3.44 % (noise) | -8.46 % to +12.06 % | 24 B | 24 B | | `ObjectRasterizerBenchmarks.Draw` | Scenario=texture-cut | 29.36 ns | 29.76 ns | +1.37 % (noise) | -2.65 % to +2.87 % | 0 B | 0 B | | `ObjectRasterizerBenchmarks.Draw` | Scenario=texture-lit | 33.41 ns | 33.2 ns | -0.66 % (noise) | -0.66 % to +10.17 % | 0 B | 0 B | | `ObjectRasterizerBenchmarks.Draw` | Scenario=wireframe | 10.52 ns | 10.5 ns | -0.24 % (noise) | -2.24 % to +9.11 % | 0 B | 0 B | | `ObjectTextureBenchmarks.Sample` | Kernel=bicubic | 93.34 ns | 95.28 ns | +2.08 % (noise) | -6.65 % to +7.55 % | 0 B | 0 B | | `ObjectTextureBenchmarks.Sample` | Kernel=bilinear | 57.47 ns | 56.44 ns | -1.78 % (noise) | -4.14 % to +5.73 % | 0 B | 0 B | | `PngEncoderBenchmarks.Encode` | | 88.83 ns | 89.26 ns | +0.48 % (noise) | -30.12 % to +3.47 % | 4 B | 4 B | </details>
maps.json records the game's name, as export.json does for the books,
and the generator shows it in the map page's description instead of a
hardcoded Skyrim. An index without it still reads as Skyrim. The
generator reads it from maps.json, not export.json, since --with-map can
point at another run.
feat(exporter): sell Oblivion books at merchants, export their scripts and enchantments
All checks were successful
/ docs (push) Successful in 5s
/ format (push) Successful in 2m46s
/ test (push) Successful in 3m21s
Benchmarks / compare (pull_request) Successful in 18m33s
387a5dd533
Read ACHR XMRC, the chest an Oblivion merchant sells from, so the books it
holds and the merchant who stands by it are listed as vendor locations.

Read BOOK SCRI and ENAM: the script goes into scripts under its SCPT
EditorId, and the enchantment into a new enchantment field with each
effect's MGEF name, numbers and range. MGEF flags name the attribute or
skill an effect changes; they follow xEdit, whose bits Oblivion.esm
confirms against UESP's. The site shows the enchantment on the book page.
All checks were successful
/ docs (push) Successful in 5s
Required
Details
/ format (push) Successful in 2m46s
Required
Details
/ test (push) Successful in 3m21s
Required
Details
Benchmarks / compare (pull_request) Successful in 18m33s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/oblivion-books:feat/oblivion-books
git switch feat/oblivion-books
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Superkooka/SkyrimSourceExporter!96
No description provided.