Files
MemRelay/projects/4eb30bec-355e-49d6-909c-e7868faef4f7/Checkpoint 2026-10-20 10-09-33 UTC [77d8e4a22e].md
T
memrelay 05e4e8d909 create: Checkpoint 2026-10-20 10:09:33 UTC [77d8e4a22e]
MemRelay-Operation: checkpoint-save:m4a1-mod-commit-20261020
MemRelay-Resource: 7f24edba-6790-4c9f-8b7f-d8361e389a8a
2026-10-20 18:09:36 +08:00

23 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-20 10:09:33 UTC [77d8e4a22e]
type: checkpoint
permalink: main/projects/4eb30bec-355e-49d6-909c-e7868faef4f7/checkpoint-2026-10-20-10-09-33-utc-77d8e4a22e
stable_id: 7f24edba-6790-4c9f-8b7f-d8361e389a8a
scope: project
memory_type: checkpoint
project_id: 4eb30bec-355e-49d6-909c-e7868faef4f7
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: m4a1-mod-commit-20261020
created_at: '2026-10-20T10:09:33.948298+00:00'
updated_at: '2026-10-20T10:09:33.948298+00:00'
tags:
- M4A1
- dlc
---
完成:M4A1 工程写在独立仓库 D:\\Game\\SonsOfTheForestMod\\DLC\\M4A1,工作树 D:\\Game\\SonsOfTheForestMod\\DLC\\M4A1\\.worktrees\\mod,分支 dlc/m4a1-mod,提交 023bd3b63a842735913eceddc77673a017022be8,信息 feat: 加入尚未装入游戏的 M4A1 内容包。未 push,未合并 main(main 仍是 9648ef6)。没有在上级 SonsOfTheForestMod 里提交或建工作树。
关键实现:获取开关 AcquisitionEnabled 默认 false,关闭时不调用 CreateAndRegisterItem,也不挂射击补丁。源步枪编号常量 361;新枪 900361。弹匣 30,连发间隔 0.075 秒,弹药复制步枪 _compatibleAmmo。模型路径 Content/M4A1.glb 或 Content/M4A1.fbx。持枪偏移默认零。csproj 没有 CopyToGame。
验证:Release 编译 0 错误 0 警告,产物在工作树 bin/Release/M4A1.dll。游戏 Mods 里没有 M4A1.dll。没有改 Content 和 source。
给下个会话:模型在分支 dlc/m4a1-assets 的工作树 .worktrees/assets,不要在 dlc/m4a1-mod 里写 Content/source。获取开关保持关闭,不要把 DLL 拷进游戏。不要合并 main,不要 push。步枪编号 361 是物品表约定,管理程序集里没有常量;本地化键是 RIFLE / RIFLE_AMMO。