AssetReplacer

版本 v20.2.0·更新於 2023-06-19

Plugin to replace assets in 20 Minutes Till Dawn and support the creation of asset mods.

模組介紹 作者原文

20MTD AssetReplacer

BepInEx plugin to replace assets in 20 Minutes Till Dawn.

Can currently replace:

  • Textures of Sprites
  • Audio

Usage

  • Install through
  • Install any Asset-Mods based on AssetReplacer
  • See Configuration

Manual

  • Install BepInEx
  • Add the plugin DLL to BepInEx\plugins
  • Install any Asset-Mods based on AssetReplacer

They should follow this structure:

20MinutesTillDawn

|--BepInEx

|--plugins

|--YourModFolderName

|--Textures

| |--Enemies

| | |EyeMonster.png

| | |T_TreeMonster.png

| |--Projectiles

| |T_GunFX.png

| |T_FireParticles.png

|--Audio

|title.mp3

|battle.mp3

"Textures" and "Audio" may only contain files corresponding to the type. E.g. Textures should not contain any text files, only images.

Files in "Textures" and "Audio" may follow any structure. They may be located in subdirectories or directly contained in the folders.

  • See Configuration

Configuration

  • Enable/Disable which assets to replace
  • Add the Mods directory names to the proper ModFolders configuration comma seperated

Format: ModCreator-Modname

Example:

[Textures]

EnableTextureMods = true

TextureModFolders = Zeprus-ExampleTextureMod,Zeprus-ExampleTextureMod2

Manual

  • Add the Mods directory names to the proper ModFolders configuration comma seperated

Format: ModfolderName

Example:

Mod folder is BepInEx/plugins/YourModFolderName

[Textures]

EnableTextureMods = true

TextureModFolders = YourModFolderName

Setup

  • Clone the repo
  • Add libs to /lib:
  • Add all the DLLs from the game's Managed folder
  • Add all BepInEx DLLs
  • Install any pre-requisite stuff (see BepInEx setup docs)
  • Open in Visual Studio
  • Build via Build » Build Solution
  • Compiled DLL will be in /bin/Debug

Create Asset-Mods

  • Create your package
  • Create a "plugins" folder inside your package
  • Create a folder inside plugins named after the asset type you want to replace (e.g. textures or audio)
  • Place your replacement assets inside the proper subfolder following any structure
  • (Optional) Write a BepInEx-Plugin that calls AssetReplacer.API.Register("Author-Modfoldername", AssetReplacer.API.AssetType.\[Textures/Audio\]) during its Awake() function and has AssetReplacer as dependency. See example plugin.

Structure examples:

MyThunderStorePackage.zip

|README.md

|icon.png

|manifest.json

|--Plugins

|--Textures

| |--Enemies

| | |EyeMonster.png

| | |T_TreeMonster.png

| |

| |--Projectiles

| |T_GunFX.png

| |T_FireParticles.png

|--Audio

|title.mp3

|battle.mp3

MyThunderStorePackage.zip

|README.md

|icon.png

|manifest.json

|--Plugins

|--Textures

| |EyeMonster.png

| |T_TreeMonster.png

| |T_GunFX.png

| |T_FireParticles.png

|

|--Audio

|title.mp3

Links

  • Steam

-

  • Discord
  • Discord » Modding Channel
  • Wiki » Modding
  • BepInEx Github
  • BepInEx Docs

Credits

  • TormentedEmu/7DTD-A19-DMTMods - Code for the music loader

Changelog

  • 20.2.0 added API for registering Modfolders programmatically
  • 20.1.0 Bugfixes for 20MTD v1.0 release, increased stability
  • 20.0.0 release

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInExPackMTD-BepInExPack_20MTD

檔案與校驗

檔案名稱
AssetReplacer-20.2.0.zip
檔案大小
50.4 KiB