Files
MemRelay/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/Checkpoint 2026-10-19 20-13-00 UTC [f2afbe71d3].md
T
memrelay 8e5771c3f2 create: Checkpoint 2026-10-19 20:13:00 UTC [f2afbe71d3]
MemRelay-Operation: checkpoint-save:sotf-give-item-20261020-0412
MemRelay-Resource: 9afc828d-f952-4fc3-9c21-73726617752d
2026-10-20 04:13:04 +08:00

2.6 KiB
Raw Blame History

title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
title type permalink stable_id scope memory_type project_id usage_profile_id status revision request_id created_at updated_at tags
Checkpoint 2026-10-19 20:13:00 UTC [f2afbe71d3] checkpoint main/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/checkpoint-2026-10-19-20-13-00-utc-f2afbe71d3 9afc828d-f952-4fc3-9c21-73726617752d project checkpoint d2b9f121-7638-43b7-97a8-17bdddcd238a 0c9feb46-d06e-43cd-9ef0-c5813c84a998 active 1 sotf-give-item-20261020-0412 2026-10-19T20:13:00.814858+00:00 2026-10-19T20:13:00.814858+00:00
handoff
give-item

完成:把已安装的丢物品给朋友(Simmelsau DropItemsToFriends 1.1.0)复刻进定制游戏。没有对得上的公开源码(Thunderstore 上 GAMEBR0GAMES 1.0.0 是另一个 BepInEx 模组),用 REA 读了已安装 DLL。

按键:左或右 Shift + G 按下;手柄按住 LB(JoystickButton4)和 B(JoystickButton1)。只在总开关打开且辅助面板关闭时生效。总开关默认关。没有调试日志开关,没有新注册别的快捷键。丢出调用 PlayerInventory.DropRightHandItem(false)。游戏内提示默认开,文案 You dropped: 名字 (编号),3 秒。关掉总开关后下一帧不再响应按键,不用重启;已经丢在地上的物品不会自动拿回。

界面:定制游戏「游戏功能」与界面功能、开局坠毁点同级,位置在界面功能下面、开局坠毁点上面。只有一个游戏功能标题。丢物品给朋友整行右移 20 像素。控件:启用(默认关)、游戏内提示(默认开)。配置在 SOTFAssist.cfg:GiveItemToFriend、GiveItemMessage,没进 F1 MenuSettings。代码在 Features/GiveItemToFriend.cs,没改 AssistPatches.cs。

提交:18e518e69a0881d827dab7828b8acc8a8154da21 feat: 定制游戏可把手上物品丢给朋友。已快进合进 main。没有 push,没有改 git config,没有强推。worktree SOTFAssist-give 和分支 give 已删。

验证:最新 main 3612412(已含弹药显示)上 dotnet build -c Release,0 错误。游戏 DLL 与 bin\Release 哈希一致:1A09AAC0DE7A33CA07C77DFF673C0A41BCA9DCE6C499BD4221C3AB92BD26E2A5,118272 字节,2026-10-20 04:12:12。SonsOfTheForest.exe 没在跑。原模组 DropItemsToFriends.dll、Mods\DropItemsToFriends、UserData\DropItemsToFriends.cfg 已删。已安装模组.md 这一行已勾。

给下个会话:不要把丢物品的 Shift+G / LB+B 改掉,也不要再加别的键。总开关默认保持关闭。游戏功能只能有一个标题;新项放进同一个折叠,整行右移 20 像素。不要把这项放回游戏难度或 F1。