mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1834] leonida_mods: read mod.json as the runtime does, camera section and byte-order mark included (MODS-MANIFEST-RUNTIME-RULES) #1847
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1847
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1834
Author: @RK28A
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:mods-manager-camera-bom📝 Commits (2)
c5b09c2leonida_mods: read mod.json as the runtime does, camera section and byte-order mark included4895e63Merge remote-tracking branch 'up/main' into mods-manager-camera-bom📊 Changes
3 files changed (+193 additions, -13 deletions)
View changed files
📝
docs/modding.md(+2 -1)📝
tests/test_leonida_mods.py(+101 -0)📝
tools/leonida_mods.py(+90 -12)📄 Description
Claimed in the coordination issue as: MODS-MANIFEST-RUNTIME-RULES
What and why
The mod manager checks
mod.jsonwith its own copy of the rules inruntime/src/mods.hand that copy was behind. It did not read thecamerasection solistsaid thatmods/first_personchanges nothing andcheckpassed camera values the runtime refuses. It refused amod.jsonthat starts with a UTF-8 byte-order mark although the runtime anddocs/modding.mdaccept it. It also accepted"archetype_swaps": nullwhich the runtime refuses.The manager now applies the same checks as
parse_modandlistshows the camera each mod sets.Tested
python -I tests/test_leonida_mods.pypasses with 13 tests and 5 of them fail without the change. I compared the manager withparse_modbuilt fromruntime/src/mods.hon 30,015 generated manifests. 17,256 decisions differed before and none after. Linux and Python 3.13.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.