AetherDb for ship authors: rooted at a game folder, found in ModTools; ship-ID rule in create
FindRoot keys on GameData/Aetheria.cc. ShipAuthoringStore.RequireShipId is the one ID rule (Validate and create), refusing Windows device names and a trailing dot, naming no value. The add-on's one preference is Game folder; _aetheria_repo, the repo preference and the dotnet-run invocation are deleted. Smokes take SMOKE_GAME_FOLDER. Not yet built or tested at this commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7f64e0d733
commit
63d16e81f3
11 changed files with 183 additions and 52 deletions
|
|
@ -61,12 +61,30 @@ weapon mount object. Thrusters and radiators are mesh objects; the others may
|
|||
be empties. Package exports the collection, Grease Pencil excluded, to
|
||||
`ship.glb` beside the `.cc`, writes the anchors, captures the lines when the
|
||||
collection holds exactly one Grease Pencil object, and shows AetherDb's
|
||||
verdict in the panel. It runs `dotnet run --project <repo>/tools/AetherDb`;
|
||||
the repo is the add-on preference **Aetheria repo**, or by default the nearest
|
||||
folder above the `.cc` holding `tools/AetherDb`.
|
||||
verdict in the panel. It runs the AetherDb in the game folder's `ModTools`
|
||||
(see Tools below).
|
||||
`ship-authoring inspect <ship.cc>` reads drafts; `validate` requires complete
|
||||
hull, model, and anchor authoring, and judges `ship.glb` once it exists.
|
||||
|
||||
## Tools
|
||||
|
||||
Install Blender and the `aetheria_ships` add-on. In the add-on's preferences set
|
||||
**Game folder** to your Aetheria install, the folder holding `GameData` (its
|
||||
`GameData/Aetheria.cc` and `GameData/Mods`). Left empty, the add-on uses the
|
||||
nearest folder above the bound `.cc` whose `GameData` holds `Aetheria.cc`.
|
||||
AetherDb ships with the game in `ModTools`; the add-on runs it with the game
|
||||
folder as its working directory, and needs neither Unity, the Aetheria repository
|
||||
nor dotnet. New Ship creates the package under `<game folder>/GameData/Mods/<id>`.
|
||||
|
||||
From a repository checkout, publish AetherDb into the ignored `<repo>/ModTools` and
|
||||
author from the repo as the game folder:
|
||||
|
||||
dotnet publish tools/AetherDb -c Release -r <rid> --self-contained -p:PublishSingleFile=true -o ModTools
|
||||
|
||||
with `<rid>` one of `win-x64`, `linux-x64`, `osx-arm64`. Linux needs `libssl3`
|
||||
and `libicu`; on macOS clear the quarantine flag (`xattr -d com.apple.quarantine
|
||||
ModTools/AetherDb`).
|
||||
|
||||
## Objective
|
||||
|
||||
A mod author edits one ship `.cc` file, including the hull schematic and every
|
||||
|
|
|
|||
Loading…
Reference in a new issue