BayTurtleKing-Level_Loader icon

Level Loader

A library to load custom levels

Last updated 2 weeks ago
Total downloads 207
Total rating 1 
Categories Mods
Dependency string BayTurtleKing-Level_Loader-1.1.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

SFTG_Modding-BepInExPack_SFTG-1.1.1 icon
SFTG_Modding-BepInExPack_SFTG

Stick Fight: The Game-specific BepInEx x64 5.4.23.5. Preconfigured and ready to use.

Preferred version: 1.1.1

README

BayTurtleKing's Level Loader

This mod is a shared library that lets other mods add custom map categories ("worlds") without patching the game's code directly. It handles tab creation and AssetBundle scene routing for you, plus much more.

Since you can also include code, this is much more than just a copy of the workshop level loader. Levels using this can have unique features and quirks.

How to register a world:

int[] mapIds = thelibrary.addworld(

` categoryname: "MyWorld",           // tab label or name `

dabundlee: asset_bundle, // the assetbundle

thescenepaths: path_ofscenes, // string[] of scene paths inside the bundle

mapnamesmaybe: null, // custom per map names (optional)

picsmaybe: null, // byte[][] preview thumbnails (one per scene) (optional)

` whoarewestealingfrom: "Halloween" // use "Christmas" if you want the Christmas gifts to show `

);