跳到主要内容
登录

SOTF Mods 已全面重建。请重新登录,密码保持不变。

OptionalDependAPI 的封面图

OptionalDependAPI

API that Adds optional dependency support for mods

ThirtyTwelve Libraries 版本:v1.0.0 更新于 2025年3月22日

下载量
20,371 总计
本周下载量
本周 91
关注者
0 位关注者

未验证 尚未在最新补丁上验证。试过了吗?告诉我们结果。 报告

概览

OptionalDependAPI

"Screw dependencies, shoot a laser on them, make them optional!"

Overview

OptionalDependAPI is a lightweight library, allowing seamless integration with other mods without requiring hard dependencies. This solves the common problem where your mod could benefit from additional features provided by other mods, but you don't want to force users to install those other mods if they don't want or need those extra features.

The Problem

Ever had a mod that would be great on its own but could have more features if it integrated with other mods? Without a proper solution:

  • You either force users to install mods they might not want (hard dependencies)
  • Or you miss out on potential integration features altogether

My Solution

OptionalDependAPI provides a clean, standardized way to handle optional mod dependencies:

  1. Register your mod's API with OptionalDependAPI
  2. Subscribe to other mods you want to integrate with
  3. Check if those mods are available at runtime
  4. Use their features only when available

    No hard dependencies on other mods, no compatibility patches, just simple runtime checks and graceful feature enabling.

Limitation

One important caveat: mods that want to use this system will need to include OptionalDependAPI as a dependency.

Changelog

  • v1.0.0: Initial release

OptionalDependAPI Github

依赖关系图

OptionalDependAPI 被以下模组依赖: ZipLineExtender ZipLineExtender 被以下模组依赖: Speedify Speedify
需要 ─ 可选 ╌ 与之冲突 ┈ 被以下模组依赖 →
  1. v1.0.0

    最新

    First release

评价

还没有评价。下载过了吗?来当第一个分享体验的人。

写评价

登录 · 每位幸存者一条评价。请具体说明:版本、哪些能用、哪些不能用。

评论

还没有评论。提问、技巧和 bug 反馈都可以写在这里。

常见问题

OptionalDependAPI 支持多人游戏吗?
作者尚未说明是否支持多人游戏。可以看看评论和其他玩家的实测报告。
如何安装 OptionalDependAPI?
先安装 RedLoader(RedManager 可以帮你完成),在本页下载 OptionalDependAPI 1.0.0,放进游戏目录中的 _RedLoader/Mods 文件夹。启动游戏后按 F1,确认它已经加载。
OptionalDependAPI 需要什么?
只需要 Steam 版 Sons of the Forest 和 RedLoader,没有其他依赖。
OptionalDependAPI 在当前游戏补丁上能用吗?
还没有兼容性报告。如果你试过,请提交一份实测报告。

速览

游戏版本
未验证
RedLoader
未声明
平台
未知
多人游戏
未知
专用服务器
未知
存档中途移除
未知
前置
无
冲突
暂无已知冲突
版本
1.0.0
更新于
发布于

实地报告

报告

还没有实地报告。试过了吗?来反馈一下。

在你的游戏里能用吗?

实地报告只需十秒,就能让大家知道此模组在当前补丁下是否可用。

登录后提交实地报告

如何安装此模组

五分钟搞定,无需管理器。以下步骤适用于 OptionalDependAPI。

此模组需要 RedLoader,而不是 BepInEx。BepInEx 的模组和教程不适用于 Sons of the Forest。

  1. 安装 RedLoader

    RedLoader 是 Sons of the Forest 的模组加载器。安装一次,所有模组都能用。

    如何安装 RedLoader
  2. 下载 OptionalDependAPI v1.0.0

    下载 v1.0.0
  3. 把 ZIP 解压到 Mods 文件夹

    在电脑上,解压到游戏的 Mods 文件夹:

    Steam/steamapps/common/Sons Of The Forest/Mods

    保持 ZIP 内的文件夹结构,不要把 ZIP 文件本身放进文件夹。

  4. 启动游戏

    RedLoader 会在启动时加载模组。在主菜单按 F1 查看模组列表。

想一键搞定?RedManager 可以替你安装和更新模组及其前置。

完整安装指南

分享此模组

页面徽章

可将徽章粘贴到 README、论坛或 Discord,会自动更新。

下载量徽章:OptionalDependAPI版本徽章:OptionalDependAPI兼容性徽章:OptionalDependAPI评分徽章:OptionalDependAPI
二维码

用手机扫描即可打开页面。

举报 OptionalDependAPI

告诉护林员哪里有问题。举报内容不公开。

原因

链接、版本或任何能帮助护林员的信息,最多 2000 个字符。