Part 1: For modders · 10 sections · page built 2026-12-05 00:35 UTC
Follow the tutorial quest A Courier's Request, with three stages, two objectives and two aliases, from an empty project to a checked build for PC and Creations. sf-mod-build and BuildKit make and build the project, sf-mod-check and sf-papyrus-ref check it, and sf-test-plan and sf-save-reader help you test the stages.
Richard is modding
- Try Richard's mods at Creations and Nexus Mods.
- Need help with Richard's mods? Visit Help Richard Help You.
What's new
- 2026-12-03. The page now has a Richard is modding panel that links to Richard's mods at Creations and Nexus Mods, and to Help Richard Help You.
- 2026-11-29. This page has a new look, the same as the other Richard Presents pages, with a menu that lights the section you are reading, a short summary at the top and this What's new box.
- 1Plan the stages, objectives and aliases.
- 2Make the project and write the scripts.
- 3Build the quest records.
- 4Build and check.
- 5Test each stage, and confirm the quest finishes.
What you need
- The same tools and setup as Build a mechanics mod: sf-mod-build 0.7.2 and its template, BuildKit (the template pins BuildKit 0.6.2, with Mutagen 0.54.4), sf-mod-check 0.30.0, sf-papyrus-ref 0.2.4, sf-cut-check 0.2.1, sf-test-plan 0.5.1, Starfield on Steam with the Creation Kit (CK), and the .NET 9 SDK. Install them as in Getting started.
- sf-save-reader 0.1.3 (the .NET 9 runtime) to read a quest's stages from a save.
- The tutorial's source, if you want to follow along. It is in the folder
examples/PMTTutorialCourier/of this guide's repository (https://github.com/taosecurity/starfield-pmt-guide). ItsWALKTHROUGH.mdhas every command and its real output, including sections on what changed in 0.1.1 and 0.1.2. - A new character for the test, and a backup of your saves.
Quest parts in plain words
- Stages are the quest's steps, numbered (here 10, 20 and 30). Each can have a journal entry. A script sets a stage with
SetStage(), and the quest script'sOnStageSetevent does that stage's work. - Objectives are the lines the player sees in the Missions menu and on the HUD, such as "Collect 5 Iron". A script shows and completes them.
- Aliases are named slots the quest fills with a reference, such as the player or an item. An alias can carry its own script, which hears that reference's events (where the player goes, what the player picks up).
The tutorial mod
A Courier's Request (PMTTutorialCourier) is a small, unvoiced quest. It starts with the game and is listed under Activities.
- Stage 10: the first time you arrive in New Atlantis (or any of its child locations), the mod's own note goes into your inventory, and the objective "Read the courier's note" appears.
- Stage 20: when you read the note, the objective "Collect 5 Iron" appears.
- Stage 30: when you hold 5 Iron, you get 100 credits, the quest completes and stops, and about 3 seconds later a HUD message says so.
It has two reference aliases. Player is filled with the player, and its alias script watches location changes and items. Note holds the courier's note as a quest item until the quest ends. It has no dialogue, scenes, voice or placed references, so it edits no vanilla record. Logging and the debug switch are the same as in Second Wind, with the prefix [PTCR]. Version 0.1.2 passed its test on 2026-11-26, by the tester's marks, its log and its save.
Finish a quest properly
The first play-test of 0.1.0 found the lesson of this page. The quest reached stage 30 and called CompleteQuest(), but a save read with sf-save-reader showed it as "running, completed, stage 30", while the game's own finished quests show "stopped, completed". Completing a quest doesn't stop it.
A quest has to do two things at its last stage to end the way the game's own quests do:
- Call
Stop()afterCompleteQuest(). In 0.1.1 and later, stage 30 runsCompleteQuest(), thenStop(), then waits 3 seconds and shows the HUD message, so the message isn't lost among the item and credit notices. - Flag the last journal entry "Complete Quest". The game's own quests do this: 466 of the 2,077 quests in
Starfield.esmflag a log entry this way, for example the main quest's first mission. In the CK it is the Complete Quest checkbox on the log entry. In Mutagen the flag isQuestLogEntry.Flag.CompleteQuest.
After the fix, the saves of 0.1.1 (2026-11-24) and 0.1.2 (2026-11-26) showed the quest as "stopped, completed, stage 30", and the log showed the HUD line. Read the save, not the Missions menu. A finished quest leaves Activities, but the game never lists a finished Activity under Missions > Completed. The 0.1.2 test found that a vanilla Activity isn't listed there either, so an empty Completed tab doesn't mean your quest is broken.
Keep the quest's item safe
A review of 0.1.1 found a way to get stuck: a player could drop, sell or store the note before reading it, and the quest would wait at stage 10 for good. The game's own quest notes can't leave your inventory, because they are quest items. Version 0.1.2 does the same:
- A second alias,
Note, with the Optional and Quest Object flags. In the CK, these are the Optional and Quest Object checkboxes on the alias. - Stage 10 fills it with
ForceRefTo()after the note is added, so the game won't drop, sell or store the note. - Stage 30 clears it with
Clear()beforeStop(), so the note becomes a normal item once the quest is over.
In the 0.1.2 test on 2026-11-26, the note couldn't be dropped, sold or moved to the ship before the quest ended, and reading it still started stage 20. The log shows the alias cleared at stage 30; the check that drops the note after the quest ends wasn't played in that test.
Steps
1. Make the project
dotnet new sfmod -n PMTTutorialCourier --prefix PTCR --mod-author "PMT Guide"
cd PMTTutorialCourier
sf-mod-build doctorDelete the starter script and add CourierQuestScript.psc and CourierPlayerAliasScript.psc to Scripts\Source\PTCR. Replace Builder\Program.cs. In sfmod.json, change "xbox": false, to "xbox": true,. The "namespaces": ["PTCR"] line already picks up both scripts.
2. Look up the Papyrus names and the vanilla records
Look up every Papyrus name before you write it. In sf-papyrus-ref 0.2.4, the quest functions that the official wiki has no page for, such as Quest.SetStage and Quest.GetStageDone, and the ReferenceAlias events are on the shipped list. With 0.2.3 they were found only after build-local.
sf-papyrus-ref lookup Quest.SetStage
sf-papyrus-ref lookup Quest.StopQuest.SetStage (function)
Flags: none
The official wiki has no page for this name; it is defined in the Creation Kit's script sources.The quest points at four vanilla records and changes none of them. find prints each one's FormKey, type and name, and which plugin wins it.
sf-mod-check find CityNewAtlantisLocation
sf-mod-check find InorgCommonIronThe tutorial uses CityNewAtlantisLocation (01295A:Starfield.esm, "New Atlantis"), InorgCommonIron (00556E:Starfield.esm, "Iron"; 0000556E in the console), the Player NPC record (000007) as the alias's unique actor, and the keyword QuestTypeActivities (0475F8) that lists the quest under Activities.
3. Build the quest records
BuildKit makes the quest shell with Quests.New(mod, "PTCR_Quest"). The tutorial was written before BuildKit had helpers for stages, objectives or aliases, so its Program.cs writes them with plain Mutagen 0.54.4 objects: QuestStage entries with their QuestLogEntry, QuestObjective entries, and a QuestReferenceAlias whose unique actor is the Player NPC. The alias script is stored in the quest's script data and points at the quest and the alias ID. The note is the mod's own book record, copied from a plain vanilla note and given its own Editor ID, name and text.
For a new quest, BuildKit 0.6.3 has quest helpers (since version 0.6.0) that write these parts in the Creation Kit's own layout, so you don't need plain Mutagen for them:
| Helper | What it makes |
|---|---|
Quests.Basic | A quest with its name, priority and flags (run once by default, as on vanilla quests). |
Quests.Stage | A stage with one journal entry, an editor-only note, a start-up flag, and StageEnd.CompleteQuest or StageEnd.FailQuest on the last one. |
Quests.Objective | An objective with one quest marker for each alias it points at. |
Quests.ForcedAlias, FindAlias, CreatedAlias, LocationAlias | The four kinds of alias: a set reference, one found by keyword, an item created at or inside another alias, and a location. optional: true lets the quest start when the alias can't be filled. |
Quests.Scene | A simple scene between two actor aliases, where each line you give gets its own phase and dialogue line, that can set a stage when it ends. It writes no voice or lip files. |
Quests.Fragments | The stage fragment script that shows and completes objectives, sets the next stage and completes the quest. Your build compiles it with your own scripts. |
Each helper stops the build with a message that names the fix when it sees a mistake, such as a repeated stage or an alias from another quest. BuildKit's README, section "Quests", has a full example. The sf-mod-build starter template pins BuildKit 0.6.2 (since version 0.7.0; it pinned 0.6.0 from version 0.5.1), so a new project has the helpers. The README also says that no quest built with the helpers has been played in game yet: they passed sf-mod-check gap and check and were compared byte for byte with vanilla quests.
4. Build
sf-mod-build validate
sf-mod-build buildRESULT: OK, built C:\Mods\PMTTutorialCourier\PMTTutorialCourier-0.1.1.zipThe plugin is 2,384 bytes with 5 records. The build also writes the Creations set, with PMTTutorialCourier - Main_xbox.ba2, into creations-out, and it shows BuildKit's gap check result.
5. Check the plugin
sf-mod-check check dist\PMTTutorialCourier.esm
sf-mod-check gap dist\PMTTutorialCourier.esmRESULT: OK, 0 errors, 0 warnings (PMTTutorialCourier.esm: 5 records, 13 links; 3.3 s)
RESULT: OK (0 errors, 0 warnings)These lines come from sf-mod-check 0.16.1 on the tutorial's 0.1.1 plugin, run on 2026-11-24. The time varies from run to run. check tests quest conditions (that alias numbers exist), the aliases a scene uses and empty dialogue emotion. Since sf-mod-check version 0.19.0 it also checks quest stages, described below. It still doesn't test the rest of your quest logic. gap is the guard for records written with plain Mutagen: it finds data Mutagen would lose.
The quest-stage check looks at each quest your plugin adds. Every stage must be set by something in the plugin: the start stage (Run On Start), a dialogue line's or scene's "set parent quest stage" value, or a SetStage() call in a script the plugin attaches. A stage that nothing sets gets a quest-stage-unset WARNING, since what it does never happens. A script call that sets a stage the quest doesn't have gets a quest-stage-missing WARNING, since the call does nothing. The check reads your scripts from loose files and from the plugin's own archive, so build first. Add --verbose to see each stage and what sets it:
sf-mod-check check dist\PMTTutorialCourier.esm --verboseOn the tutorial's 0.1.1 plugin, sf-mod-check version 0.19.0 found all three stages set by the quest's script. Its log line read PTCR_Quest [QUST:000802:PMTTutorialCourier.esm]: 3 stage(s), 3 set, unset: none, and the run ended RESULT: OK, 0 errors, 0 warnings (run on 2026-11-25). In a made-up quest with stages 10, 20 and 30, where stage 10 is the start stage and the script sets stages 20 and 40, the check warns that nothing sets stage 30 and that the script sets stage 40, which the quest doesn't have.
If your quest has scenes, scenes reads them as a conversation tree and checks them (sf-mod-check 0.24.0, released 2026-11-26). It prints one section per scene with the NPC's lines and a table You say | <NPC> answers | Then, where the last column says where the talk goes. After the tree it runs five checks. scene-phase-missing (an ERROR, which check also reports) finds a line that jumps to a part its scene doesn't have. scene-no-exit (a WARNING) finds a choice part where every choice leads back to the same choices, so the player can't leave. stage-gate-unset (a WARNING, or a NOTE when scripts can't be read or a SetStage number is worked out while the game runs) finds a condition that needs a stage nothing in the plugin sets. scene-topic-unused (a WARNING) finds a Scene topic with spoken lines that no scene uses. stage-set-unchecked (a NOTE) finds a stage that is set and never checked. A stage table follows, listing what sets and needs each stage. The Courier tutorial has no scenes, so this is a made-up run:
sf-mod-check scenes MyQuest --plugin MyMod.esm## Problems
- ERROR scene-phase-missing: MyQuest_Talk: line 000820:MyMod.esm starts MyQuest_Ship [SCEN:000830:MyMod.esm] at the part "SHIPPART", which it doesn't have, so the jump doesn't go where it should. Did you mean "SHIP PART"?
- NOTE stage-set-unchecked: MyQuest stage 20 is set (000821:MyMod.esm (on end)) but no condition in MyMod.esm checks it, so setting it changes no dialogue or quest condition (a script may still read it)
RESULT: 2 scenes, 1 error, 0 warnings, 1 note (12 s)Exit 0 means the quest was found, even with problems. Read the Problems list, because the exit code doesn't count them. The stage and topic checks cover only the plugin that adds the quest or topic, never an official plugin, and stage-set-unchecked doesn't search scripts. Fix each ERROR and WARNING, then run the command again.
To see what you wrote, list your plugin's records with find --plugin. It reads only your plugin and its masters.
sf-mod-check find --plugin dist\PMTTutorialCourier.esmOn the tutorial plugin it lists 5 records and ends RESULT: FOUND 5 records in PMTTutorialCourier.esm. For the quest it prints the alias (Player), the quest type and one line per stage, such as {Index=10, LogEntries=(1 entry)}. It doesn't show a log entry's flags; find --stages does (below). The tutorial run read the plugin back with BuildKit's GameData.OpenPlugin in a short program for that and saw 10:0, 20:0, 30:CompleteQuest.
To see a quest's stages in full, use find <QuestEditorID> --stages (sf-mod-check 0.30.0, released 2026-12-04). It works on a quest (QUST) only, in a load order or with --plugin. It prints every stage of the winning copy with its flags and log entries, then every objective with its text. For a log entry with a stage fragment, it reads the compiled script and says which stages the fragment sets and which objectives it shows, completes or fails; a call whose value is only known while the game runs is listed as one it can't read. On the tutorial plugin, sf-mod-check find PTCR_Quest --stages --plugin dist\PMTTutorialCourier.esm shows stage 30 with [CompleteQuest], which proves the Complete Quest flag, and ends RESULT: FOUND 1 record. Any other record type is refused with exit 2.
To read what your player will see, use text (sf-mod-check 0.28.0, released 2026-11-27). It lists every string the plugin adds or changes that the game shows or translates, each with its field path: the quest's name, each stage's journal entry, each objective, the book's text, the message and the option names. A new record lists all its strings, and an override lists only the strings it changes, each with the master's text as was:. Read it once for typos and for any line that tells the player something false. It only reads, and --type BOOK,MESG keeps some record types.
sf-mod-check text dist\PMTTutorialCourier.esmOn the tutorial plugin it lists 14 strings in 5 new records. The quest's part reads:
QUST (1 record, 6 strings)
QUST PTCR_Quest [000802:PMTTutorialCourier.esm] new
Name: A Courier's Request
Stages[0].LogEntries[0].Entry: A courier's note reached me in New Atlantis. Someone needs Iron.
Stages[1].LogEntries[0].Entry: The note asks for 5 Iron for a workshop in the Commercial District.
Stages[2].LogEntries[0].Entry: I collected the Iron, and the workshop paid me for it.
Objectives[0].DisplayText: Read the courier's note
Objectives[1].DisplayText: Collect 5 Iron
RESULT: text: 14 strings in 5 records (5 new, 0 changed) in PMTTutorialCourier.esmExit 0 means it listed the text (also when it found none), and exit 2 means it couldn't run. --out <file> writes the list to a file, and refuses a file name that would overwrite a plugin, archive, script or other mod file.
6. Check the scripts and the Creations set
sf-papyrus-ref check Scripts --creations
sf-mod-check release creations-out --profile creations
sf-cut-check scan --plugin dist\PMTTutorialCourier.esm --out C:\Scratch\cutcheck-crIt checked 2 files and found 0 errors and 2 warnings.
RESULT: OK (0 problems, 0 to review, 0 warnings)
RESULT: PMTTutorialCourier.esm adds 5 records, and the game reaches all of them. None is reached only through a recipe, research project or condition check. None is reached only from test cells.The two warnings are the mod's Debug.Trace and the Debug.Notification behind its debug switch, which are PC-only by design. Run the Creations check on creations-out, not on the PC zip, as on the mechanics page.
7. Write the test plan
Write one group per stage, with console commands in backticks so the plan page gives each a Copy button: getstage PTCR_Quest shows the stage, setstage PTCR_Quest 20 moves the quest on by hand, and player.additem 0000556E 5 gives you the Iron.
sf-test-plan new PMTTutorialCourier.testplan.md --mod PMTTutorialCourier
sf-test-plan rules PMTTutorialCourier.testplan.md --prefix PTCR --plugin PMTTutorialCourier.esm
sf-test-plan check PMTTutorialCourier.testplan.md --rules PMTTutorialCourier.logrules.json
sf-test-plan build PMTTutorialCourier.testplan.md --rules PMTTutorialCourier.logrules.jsonPMTTutorialCourier.testplan.md: 5 groups, 19 checks, 10 smoke; 0 errors, 0 warningsrules writes one rule for each log: id in the plan, so add a log: <id> line under each stage's step (for example log: stage-20) before you run it. On the tutorial's 0.1.2 plan it reports 11 log ids on 12 steps (sf-test-plan 0.4.1, 2026-11-26). On the starter plan from new, which has no log: lines, it writes nothing, and check and build with --rules then stop with exit 2 because the rule file doesn't exist.
Edit the rule file as rules asks: set the prefix to \[PTCR\], match each pattern to the real line (for example (?i)\[PTCR\] stage 20: note read), add an order rule for the stages, and move no-script-errors to forbid.
For a second model to copy, sf-test-plan and papyrus-log-check ship a made-up quest example, Tidewater Errand, in their release zips: a plan, a rule file with an order rule and a sample log. Test and debug a mod shows how to run it.
8. Test the stages
Play the plan on a new character. Each stage writes one [PTCR] stage <n>: ... line, and papyrus-log-check turns the rules into PASS, FAIL or NOT SEEN (see Test and debug a mod). After the test, read the quest from a save made at stage 20 and one made after stage 30.
sf-save-reader quests <save.sfs> --data --filter PTCR --details--details lists the stages (* marks a done stage) and the objectives. A finished quest should read "stopped, completed". In the tutorial's 0.1.1 test on 2026-11-24 and its 0.1.2 test on 2026-11-26, the save read "stopped, completed, stage 30" for PTCR_Quest. The 0.1.0 save had read "running, completed, stage 30", which is how the missing Stop() was found.
Voice for new dialogue (optional)
Do this before you test the stages in step 8. If your quest has dialogue, each new line needs a voice file, or it plays silent. Since sf-mod-build 0.6.0, the voice step makes them from one WAV per line, without opening the Creation Kit. Besides the usual tools, it needs:
- sf-mod-check 0.21.0 or later, which lists the plugin's voiced lines.
- Audiokinetic Wwise 2021.1, installed from audiokinetic.com with Authoring and the Windows platform. sf-mod-build never ships Wwise and uses your own install. Wwise's license is Audiokinetic's: register your mod there as a free non-commercial project, and credit Audiokinetic in your README.
- The Creation Kit, whose
Toolsfolder holds the Wwise project, LipGenerator and FaceFX'sffxc. - The WAVs: your own recordings, or the output of a voice tool such as Starfield Voice Cloner. Voice Cloner's output folder works as it is.
The steps:
- Build the plugin, then list its voiced lines in the Creation Kit's dialogue-export columns (tab-separated:
VOICE TYPE,FILENAME,RESPONSE TEXT,FACE,SCRIPT NOTES,SEX,FULL PATH,INFO,RESPONSE).FILENAMEis the line's voice file number as 8 hex digits. Player lines aren't listed. A line with no voice type of its own gets no row and a NOTE; add--voice <voice type EditorID>to give those lines one.
sf-mod-check voice-lines dist\MyMod.esm --out MyMod-lines.tsv- Make one WAV per line, named
<FILENAME>.wav, in a folder named after its voice type, for exampleVoice\npcfmyvoice\0001A2B3.wav. - Add the voice section to
sfmod.json, then build.buildruns the voice step betweenpluginandpack, andpackputs the files inMyMod - Main.ba2, uncompressed.
"voice": { "source": "Voice" }You can run the step alone:
sf-mod-build voiceA run of the step on a companion plugin with 564 voiced lines, of which one new line had a WAV so far, ended RESULT: OK, 1 voice line(s) in ...\.build\voice\data (1 made, 0 unchanged; 1 with a lip file). The other 563 lines got a WARNING, because a line with no WAV stays silent. A WAV that matches no line is a WARNING too. Wwise converts every new or changed WAV in one run, with its "Voice Conversion" setting, and LipGenerator and ffxc make each line's .ffxanim lip file from the WAV, the line's text and the face set (female or male by the voice type's sex; voice.faces can set "none" for a robot voice). A line with no text, such as a sigh, gets its .wem but no lip file, with a WARNING. A line whose WAV, text and face set haven't changed is skipped, so a rerun with nothing new doesn't need Wwise. Keep the WAVs. They are the source, and a line whose WAV is gone loses its files at the next run.
Two more routes, since sf-mod-build 0.7.0, give voice files to lines whose recording your WAVs don't cover. English voices only: archives of other languages and console archives (_xbox, _ps) are not searched.
reusegives a new line of your plugin with no WAV the recording of the same voice type and number from a plugin you name, with its.ffxanimlip file when there is one, the way a copied line in the Creation Kit would. The file is looked for in the entry's optionalsources, then in each--masters-dir, then in the game's Data folder. A line found nowhere stays silent, with the usual WARNING.sourcemay be left out when the section only reuses.
"voice": { "reuse": [ { "from": "Starfield.esm" } ] }replacegives a master's line your own recording, at the master's own path. Put the WAV atVoice\Sound\Voice\<master>\<voice type>\<FILENAME>.wav. Your plugin must have that master, or the step stops. The game plays the file from the archive that loads last, so your mod must load after that master's archives. A replaced line gets no new lip file unless the lip pass finds its text, and a WARNING names those lines.
"voice": { "source": "Voice", "replace": ["HelperCrew.esm"] }A voice path may come from one place only. A WAV for a path that assets.source or an archives source already ships is refused before Wwise runs.
To see what voice files a mod ships, and whether each has its lip file, use voice-format. It is a report, never a check: no format is called wrong, because the game itself ships voice lines at 32, 44.1 and 48 kHz. It reads a plugin with its own archives, an archive or a folder.
sf-mod-check voice-format dist\MyMod.esmLimits of the voice step: it makes PC files only, and the section is refused with "xbox": true, because a PC .wem plays silent on Xbox and PlayStation 5. It makes the main plugin's lines, not those of parts plugins. A quote in a line's text reaches LipGenerator as an apostrophe, and LipGenerator reads the line's text as the plugin has it (the subtitle), so a subtitle with digits ("18,000 credits") gives a different lip file than the spoken words would. Write such lines in words for the closest match.
Reading the results
- sf-mod-check.
checkexits 0 with no errors, 1 with errors and 2 when it can't check.findexits 0 when it found the record, 1 when it didn't (with aHINT:line saying what it searched) and 2 when it couldn't run.releaseexits 0 for OK and 1 for FAIL. - sf-papyrus-ref.
checkexits 0 with warnings only and 1 with an error.lookupexits 1 for a name it doesn't know, and then suggests near matches. - sf-test-plan. Exit 0 is done, 1 means the plan has errors and 2 is a file or option problem.
- sf-save-reader. Exit 0 is done and 1 is done with warnings. Exit 3 means it couldn't read the save. It reads only saves from Starfield 1.16.244 (save version 153).
When PMT isn't enough
BuildKit's quest helpers don't cover collection aliases or scene package actions, they write no voice or lip files (sf-mod-build's voice step makes those, see "Voice for new dialogue"), and no quest built with them has been played in game yet. Write anything they don't cover with plain Mutagen, and run sf-mod-check gap on the result. CK authors build quests in the CK, which is the normal route.
The quest-stage check sees only your plugin and the scripts it attaches. A stage that another mod's script or the game's engine sets looks unset, so read each quest-stage-unset WARNING as "check this". When a script works out a stage number while the game runs, or a script can't be found or read, the check prints one NOTE instead of checking those stages. Bethesda's own plugins aren't checked, and --no-assets skips the check. Test each stage in game with getstage and setstage anyway.
sf-mod-build's voice step makes the PC voice and lip files, but you supply the WAVs (your own recordings or a voice tool's) and your own Wwise 2021.1. It makes no console audio: the voice section is refused with "xbox": true, so console audio is Creation Kit work.
sf-mod-check release flags a dialogue line that has no voice file (rule voice-missing, since version 0.18.0), which catches most silent lines before a voiced mod ships (it skips some lines, such as player lines; see Release a mod). A mod with dialogue and no voice files at all gets one NOTE instead. See Release a mod. Still listen to every line in game, since the check finds missing files, not wrong ones.
sf-mod-build is tested on PC (Steam) and Xbox. PS5 is not tested, and that is a known limit. Since sf-mod-build 0.7.0, a build with "xbox": true also writes <plugin> - Main_ps.ba2 in creations-out, a copy of the PC Main archive for PlayStation 5 (pack doesn't list that file in its output yet, so look in the folder). PS5 reads PC-format files except audio, so a quest with voice files needs a PS5 audio test. Follow what the Creation Kit asks for during its upload.
PMT runs on a PC. It doesn't test on a console or upload. The Creation Kit does the Creations upload, and you test on the console by hand.
For CK and xEdit authors
Build the quest in the CK: its stages and journal entries, objectives, the player alias, a Note alias with the Optional and Quest Object boxes ticked (filled with ForceRefTo() when the note is given and emptied with Clear() before Stop()), and the scripts. On the last stage, call Stop() after CompleteQuest() in the stage's script, and tick the Complete Quest checkbox on the stage's log entry in the quest's stage settings. Then run check, release --profile creations, scan --plugin, the test plan and sf-save-reader on your plugin as above. Skip gap, which is for plugins written with Mutagen.
For code builders
Make the quest with BuildKit's helpers: Quests.Basic, a Quests.Stage for each stage (end: StageEnd.CompleteQuest on the last), the alias helpers, Quests.Objective, and Quests.Fragments for the stage links. Run IdLock.Apply first, take the quest again from the plugin (IdLock may replace it with a copy), and then call the fragments' Apply(), because the fragment script's name holds the quest's FormID (QF_<EditorID>_<8 hex digits>) and the quest record must agree with the compiled script (BuildKit's README, section "Quests"). Write its Source() into your scripts folder and ship the compiled .pex in Scripts\Fragments\Quests\, or sf-mod-check check reports the script missing and the stages do nothing. The tutorial's Program.cs shows the plain Mutagen route for the same parts, with QuestLogEntry.Flag.CompleteQuest on the last stage's entry. Either way, keep ids.lock.json and run gap after every build. Look up every quest function with sf-papyrus-ref before you write it.