LCUndefeatableNutcrackerMod

版本 v1.0.1·更新於 2025-01-11

Replace the Nutcracker's music with Undefeatable from Sonic Frontiers!

模組介紹 作者原文

COMPANY-MANDATED MESSAGE:

Pleasant day, employees.

We hope this message finds you well, as we feel the need to deliver it with as forced of a smile as possible. You see, the so-called "Nutcrackers", which have infested the more expensive moons in our catalogue, seem to have changed their approach to psychological warfare. Instead of their usual jolly marching drum music, they have, instead, opted for some sort of hard-rock-metal-thingy.

This is supposedly meant for intimidation, and we must say that the sheer... presence, of the song is indeed quite formidable. So, handle with care, or run. We have a feeling running really fast is a great course of action in this context.

That is all for this message. We hope you stay a great, great asset to the Company.

The Mod

Introduction:

Get ready to beef up your encounters with Nutcrackers, as this rocking Sonic Frontiers song will pile on the pressure!

*Nutcrackers not actually undefeatable.

Creation:

  • Made this to get a bit of practice with smaller C#-only projects again, as well as trying to learn about patching individual methods using Harmony, fixing ambiguous method calls, and not needing to make an entire asset bundle for a single song.
  • I also tweaked some other variables and functionality:
  • The song won't have a doppler effect
  • It can be heard from farther away than usual
  • It will not reset itself upon every shot
  • I did not do these things using Harmony Transpilers (which is probably the more performant solution) as I don't know how they work yet, and want to save learning about them for another project (as well as not wanting to mess with the literal vanilla code too much), so it's all just one Postfix and one bool Prefix right now.
  • I really didn't put much thought into this otherwise (as evidenced by the mod's icon), so there's no configurable customization options yet and likely won't be for a while.

Credits:

  • The song Undefeatable and the game Sonic Frontiers belong to Sega and Sonic Team (probably).
  • Code for loading individual sound files using UnityWebRequests pretty much copied from MoskauNutcracker, as well as the mod being heavily inspired by it.
  • Thanks to this stackoverflow Q&A for helping figure out how to fix the HarmonyLib ambiguous method calls.
  • And thank you for checking out or even downloading this mod!

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
LCUndefeatableNutcrackerMod-1.0.1.zip
檔案大小
3.2 MiB