Asset Bundle Loader
Library. Provides helpers to load new assets into Shadows of Doubt. Includes functions for creating ScriptableObjects from raw JSON files, as well as built Unity AssetBundles
模組介紹 作者原文
Piepieonline's AssetBundleLoader
Various methods for loading content into Shadows of Doubt, including asset bundles, raw JSON scriptable objects, and more
- Load AssetBundles built against previous game versions, by correcting referenced PathIDs.
- Load new ScriptableObjects from raw JSON files with text based referencing
- Patch ScriptableObjects from partial JSON representation
- Create Texture2D from PNG files on the file system (Uses BigGustave library to replace stripped Unity and System methods)
- Load building floorplans from FloorSaveData JSON files, referenced from a BuildingPreset as "blueprints": [ "FLOOR:MyFloorplan" ]
- The path is relative to the folder holding the mod's manifest, and the file name becomes the floor's name in the city's floor data, so prefix it to avoid clashing with other mods
- Reference assets inside a mod's AssetBundle from JSON as "prefab": "BUNDLE:MyBundle.ab|MyPrefab", for the fields REF: can't reach - prefabs, meshes, textures and the like
- The bundle path is relative to the folder holding the mod's manifest, and the asset name is the name it has inside the bundle
- A BuildingPreset's model is finished off on load: prefabs keep their own tags, and anything left untagged is treated as a lit part of the building model, with the bundle's copies of the game's shaders swapped for the game's own
- Reference assets the game already ships from JSON as "prefab": "VANILLA:BuildingPreset|CityHall.prefab", for prefabs, meshes and materials that no REF: can name because they aren't presets themselves
- The reference is a preset, then the path of fields to walk from it, with list entries written as floorLayouts[0].blueprints[0]
- A material can be copied the same way, as "copyFrom": "VANILLA:MaterialGroupPreset|Brick.material" in a prefab's material block
Manual Installation
- Ensure you have BepInEx BE installed
- Extract the mod to ".\BepInEx\plugins\", so you should have ".\BepInEx\plugins\AssetBundleLoader\AssetBundleLoader.dll"
Ensure the rest of the.dll files are along side the AssetBundleLoader.dll file
Source:
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
BepInEx-BepInExPack_IL2CPP