Skip to content

We rebuilt SOTF Mods. Log in again with the same password.

  • Cover image of OptionalDependAPI

OptionalDependAPI v1.0.0

API that Adds optional dependency support for mods

ThirtyTwelve Libraries

  • 20.6K 20,620 Downloads
  • 0 followers

Description

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

Versions and changelog

All 1 version
  1. v1.0.0 Latest First release · 20.6K downloads
  1. v1.0.0

    Latest

    First release

Comments

No comments yet. Questions, tips and bug reports go here.

Something not working? Share your log and paste the link in your comment.

Reviews

No reviews yet. Be the first to review this mod.

Write a review

Log in · One review per user. Be specific: version, what worked, what didn’t.

How to install this mod

These steps install OptionalDependAPI by hand, without a manager.

RedManager installs and updates mods and their dependencies for you. Get RedManager

This mod needs RedLoader, not BepInEx. BepInEx mods and guides don’t apply to Sons of the Forest.

  1. Install RedLoader

    RedLoader is the mod loader for Sons of the Forest. You only need to install it once.

    How to install RedLoader
  2. Download OptionalDependAPI v1.0.0

    Download v1.0.0
  3. Extract the ZIP into the Mods folder

    On your PC, extract it into the game’s Mods folder:

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

    Keep the folder structure of the ZIP. Don’t put the ZIP itself in the folder.

  4. Launch the game

    RedLoader loads the mod on start. Press F1 in the main menu to see the list of mods.

Full install guide

More actions

Share this mod

Badges for your page

Paste a badge into a README, forum post or Discord. Badges update automatically.

Downloads badge: OptionalDependAPIVersion badge: OptionalDependAPICompatibility badge: OptionalDependAPIRating badge: OptionalDependAPI
QR code

Scan it with your phone to open the page.

Report OptionalDependAPI

Tell the moderators what’s wrong. Reports are private.

Reason

Links, versions or anything that helps the moderators. Up to 2,000 characters.

Changelog

Comments

Reviews