create: 本机可开发 RedLoader 模组

MemRelay-Operation: memory-save:sotf-mod-dev-env-20261018-0011
MemRelay-Resource: 71964678-dd79-42fd-ba85-0752195f0772
This commit is contained in:
2026-10-18 00:10:52 +08:00
parent 9631598551
commit 281887a1a4
@@ -0,0 +1,21 @@
---
title: 本机可开发 RedLoader 模组
type: fact
permalink: main/projects/4eb30bec-355e-49d6-909c-e7868faef4f7/本机可开发-red-loader-模组
stable_id: 71964678-dd79-42fd-ba85-0752195f0772
scope: project
memory_type: fact
project_id: 4eb30bec-355e-49d6-909c-e7868faef4f7
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: sotf-mod-dev-env-20261018-0011
created_at: '2026-10-17T16:10:48.577010+00:00'
updated_at: '2026-10-17T16:10:48.577010+00:00'
tags:
- sotf
- redloader
- modding
---
这台电脑已安装 .NET SDK 10.0.401,以及 Microsoft.NETCore.App 6.0.36。森林之子自研模组用 RedLoader 官方模板:dotnet new install RedLoader.Templates,然后 dotnet new sotfmod -n 模组名 -g 游戏目录。文档在 https://tonimacaroni.github.io/RedLoader/articles/creating-mods.html 。模组是 C# 类库加 manifest.json,编译后自动复制到游戏 Mods。游戏程序集从游戏目录 _Redloader/Game 引用,Harmony 等从 _Redloader/net6 引用。用户已问过能否自己做模组,尚未指定要做哪一个。