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

30 lines
2.6 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-19 20:13:00 UTC [f2afbe71d3]
type: checkpoint
permalink: main/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/checkpoint-2026-10-19-20-13-00-utc-f2afbe71d3
stable_id: 9afc828d-f952-4fc3-9c21-73726617752d
scope: project
memory_type: checkpoint
project_id: d2b9f121-7638-43b7-97a8-17bdddcd238a
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: sotf-give-item-20261020-0412
created_at: '2026-10-19T20:13:00.814858+00:00'
updated_at: '2026-10-19T20:13:00.814858+00:00'
tags:
- 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。