LCSimonTendoPlaylistsMod

版本 v1.1.1·更新於 2025-11-12

Creates playlists for objects that get sounds from multiple mods of mine.

模組介紹 作者原文

COMPANY-MANDATED MESSAGE:

Employees, we are excited to share the newest addition to our musical items.

After having to hear all your very annoying complaints about "that one banger" and "the best one", we have received your message loud and clear about there only being one song, and will install additional songs for these items to use. This unlocks the ability to play entire playlists on items such as the beloved Record Player and the even more beloved Disco Ball and also the old phone.

However, we will only expand the musical capabilities of whatever items we feel compatible with, so don't expect us to do all the work for you!

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

The Mod

Introduction:

Have multiple music mods of mine that don't play nice with each other? This mod will allow those music items to play all songs from all my mods simultaneously, by collecting them all into a playlist!

This mod, in combination with other mods of mine such as LCMySimsSoundPackMod, adds functionality for the Disco Ball, Record Player, and more to loop through a list of songs provided by STSharedAudioLib. No longer will 'only' one mod write to a musical item, but instead, these items will loop through a custom playlist to represent every mod that adds music to it.

If you would like a demonstration of what this mod does, turn on [Examples] in this mod's Config options, or download LCStudiopolisDiscoMod.

Creation:

  • This mod is my personal usage for STSharedAudioLib, which I created with the sole purpose of putting multiple songs on the Disco Ball and Record Player and looping through them like a playlist. The library does the listing, this mod does the playing.
  • So, this mod only creates playlists for the specific items I want to patch, depending on what my other mods try to write to. I'm not planning for this mod to patch any and all items in the game, but eventually want to work on a CustomPlaylistsMod that should do what this mod does while allowing for more freedom and possibilities in what items to patch.
  • But! If you do want to add music to the items that I patch with this mod, and know how to code a bit, that is theoretically possible:
  • Create a plugin and reference STSharedAudioLib's dll file. You can read how to do this on STSharedAudioLib's 's Wiki page, at the beginning of Basic Pipeline.
  • Then, use the method below (you can replace "Disco Ball" with "Record player" or the name of another item to add more music to that).

This will add your music to the same playlist this mod reads AudioClips from, so it should theoretically play your custom music as well!

[HarmonyPrefix, HarmonyPatch(typeof(StartOfRound), "Start")]

public static void Prefix(StartOfRound __instance)

{

foreach (UnlockableItem item in __instance.unlockablesList.unlockables)

{

if (item.unlockableName == "Disco Ball")

{

SharedAudioMethods.AudioClipAddNew(yourCustomMusic, SharedAudioMethods.AudioListGetByName("LCSimonTendoPlaylistsMod", item.prefabObject));

}

}

}

Credits:

  • This time I've only got you to thank for checking out or even downloading this mod!

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPackSimonTendo-STSharedAudioLib

檔案與校驗

檔案名稱
LCSimonTendoPlaylistsMod-1.1.1.zip
檔案大小
86.1 KiB