You are viewing a potentially older version of this package. View all versions.
onlystar-sPEAKer-1.8.1 icon

sPEAKer

Now with DRONE Mode! โ€” Some guy had it aboard. Does it still work?

Date uploaded 3 days ago
Version 1.8.1
Download link onlystar-sPEAKer-1.8.1.zip
Downloads 11806
Dependency string onlystar-sPEAKer-1.8.1

This mod requires the following mods to function

PEAKModding-PEAKLib_Items-1.4.2 icon
PEAKModding-PEAKLib_Items

Items module of the PEAKLib community API.

Preferred version: 1.4.2

README

Sophisticated Pulse-Eloquent Acoustic Kymatologic Eidolon Reverberator

๐ŸŽถ ...or just sPEAKer

This is sPEAKer, my first ever mod!

Unlike the bugle, sPEAKer is an independent audio source. You can just press play and enjoy your music. Drop it, toss it around, audio will just not stop!

sPEAKer at the PEAK
sPEAKer at the PEAK.

The main feature of this mod is that it works as a true portable speaker. Instead of playing 2D music for everyone, it leverages spatial audio to make it part of the immersive experience of PEAK.

Plays its own sound
It won't stop playing if you drop it.

Additionally, it supports MP3 and WAV out-of-the-box on top of your regular OGG files.

You can also download mixtapes from the Thunderstore or put together your own and share with friends, or even upload them too!

๐ŸŽฎ Controls

Playback control uses your regular interaction buttons, whatever they are.

  • Primary: Play/Pause toggle

  • Secondary: Next Song

  • Scroll: Volume Up/Down

Note: The following actions are not Controller compatible.

  • Shift + Secondary: Previous Song

  • Ctrl + Secondary: Toggle Shuffle

  • Alt + Secondary: Cycle Loop modes

  • P: Activate Drone Mode

  • Local Volume Control: Is available via Pause Menu:

    This slider only affects your own playback.

Manual Installation

  1. Install BepInEx for PEAK
  2. Install required dependencies:
    • PEAKLib.Items
    • PEAKLib.Core
    • SoftDependencyFix
    • MonoDetour_BepInEx_5
    • MonoDetour
  3. Place the mod files in your BepInEx plugins folder
  4. Launch PEAK

Adding Music

After launching PEAK, your main music folder will be created:

.../plugins/onlystar-sPEAKer Music

You can place audio files directly in it, or you can use mixtapes.

๐Ÿ“€ Introducing: Mixtapes

A mixtape is simply a folder containing your collection of audio files.

Just create a new folder inside your main music folder (onlystar-sPEAKer Music) and drop your songs in it. The name of the folder will be used as the mixtape's name by default.

Optionally, you can also include a mixtape.json file inside your mixtape folder:

  {
    "name":  "Undertale Bosses",
    "author":  "onlystar"
  }

This takes priority over default naming, and will be shown in-game when a song from your mixtape starts playing.


Yes, it's "Mixtape Name - Song Name"

The idea behind mixtapes is that they are easy to share and organize.
Further updates will support extended metadata. Probably.

๐Ÿชฝ Featuring: Drone Mode

Instead of having a dedicated slot, you can make sPEAKer engage Drone mode and it will follow you around!

๐Ÿ‘‰ Drop it, press P and you will be followed anywhere you go.


Bundling a mixtape for Thunderstore

If you want to upload your own mixtape as a standalone mod, just put an empty sPEAKer.json file in the same folder as your mixtape folder.

You can follow the instructions in Manual Packaging as described here.

Your package should include manifest.json, README.md, /plugins folder and (hopefully) a 256x256 icon.png.

Your manifest.json should list sPEAKer as its dependency:

  {
    "name": "Demo_Mixtape",
    "author": "onlystar",
    "version_number": "1.0.0",
    "website_url": "",
    "description": "",
    "dependencies": [
      "onlystar-sPEAKer-1.8.0" // add this line
    ]
  }

This way, you can point your friends to your mixtape and their mod manager will install sPEAKer along with it.

The plugins folder of your package should look something like this:

plugins/
โ”œโ”€โ”€ sPEAKer.json
โ””โ”€โ”€ boss music/
    โ”œโ”€โ”€ a true hero.ogg
    โ”œโ”€โ”€ omega flowey.mp3
    โ”œโ”€โ”€ ...
    โ””โ”€โ”€ mixtape.json

sPEAKer.json is the way of telling sPEAKer "this folder contains music".

Once your package is ready, ZIP it and upload it to Thunderstore.

๐Ÿ’ก TIP: Don't delete your original package!

Updating your Thunderstore mixtape

If you wanna add songs to an already published mixtape, add your songs to the original (uncompressed) package and bump the version up in your manifest.json:

  {
    "name": "Demo_Mixtape",
    "author": "onlystar",
    "version_number": "1.0.1", // previously "1.0.0"
    "website_url": "",
    "description": "",
    "dependencies": [
      "onlystar-sPEAKer-1.8.0"
    ]
  }

ZIP it once again, and reupload it.

Disclaimer: Make sure you have permission to upload the audio files your mixtape contains to Thunderstore.

Config. Options ๐Ÿชš

These are options you can change before starting your game. You can find them in BepInEx/config/onlystar.sPEAKer.cfg or via your mod manager.

Key Category Description Default Value
ExternalAudioFolderPath ๐Ÿ’พ Audio Loading Folder path where sPEAKer will mainly load mixtapes and external audio from. It's recommended to leave unchanged. "..\onlystar-sPEAKer Music"
LoadDemoSong ๐Ÿ’พ Audio Loading Include a demo song in your track list. true
ExtendedFormatSupport ๐Ÿ’พ Audio Loading Enables loading of MP3 and WAV files. May impact performance. true
StartupLoadingIndicator ๐Ÿ’พ Audio Loading Shows a loading text during game start. true
ShowTrackDuration ๐Ÿ”Š Playback Shows every song's current time and length. true
DisplayMixtapeAuthor ๐Ÿ”Š Playback Displays mixtape author during mixtape playback. true
ShuffleOnStart ๐Ÿ”Š Playback Start with Shuffle enabled by default. Saves you a toggle if you only want shuffled playback. false
TurnOnAndPlay ๐Ÿ”Š Playback Make sPEAKer start playing immediately after turning it on. false
SpawnAtGameStart ๐Ÿ“ป Spawning Automatically spawn a sPEAKer around the crash site when a game starts. true
SpawnWithF4 ๐Ÿ“ป Spawning Allows the host to spawn a sPEAKer in their hands when pressing F4.
Only one sPEAKer may exist at a time.
true
RecallEnabled ๐Ÿ“ป Spawning Enables recalling existing sPEAKer when pressing F4.
Only works if SpawnWithF4 is also enabled. Also, a sPEAKer can only be recalled if it's in the ground (not in a slot).
true
DebugMode ๐Ÿ“œ Logging Enables custom verbose logging. If you want to report a bug, please include your BepInEx/LogOutput.log! false

๐ŸŽ›๏ธ Technical Notes

  • For the best experience, everyone in the room should have the same tracks and mixtapes.
  • In the current version, the host owns the tracklist canon, which means everyone must play the host's catalogue.
  • If you are missing a song your host has, don't worry! Every song is hashed by its contents on load. Playback will resume as soon as they start playing something you do have.
  • Large files (4MB+) and mp3/wav files can cause significant lag spikes when reading them. Because of this, loading was placed as soon as game awakes, so the lag spike happens when game is loading and not during gameplay.
  • Shuffle randomizes your list every time you toggle it on, so you might get repeated songs if you toggle it more than once.
  • Be aware of ExternalAudioFolderPath when moving your game to another folder, as it is generated only the first time the mod loads. If you're having trouble, delete config/onlystar.sPEAKer.cfg and it will find the correct path again (albeit losing your configs, if you changed any), UNLESS you installed sPEAKer through a shared profile.
  • When sPEAKer is installed through a profile code, it carries over its configurations too. This is intended Thunderstore behaviour, and unfortunately it breaks ExternalAudioFolderPath as the path will be from the original profile's machine. Each time the profile is updated with new mods, the configs will sync again, making it pointless to correct the configured path for your local machine. In other words, you cannot change any of your local configs in shared profiles.
  • If sPEAKer detects it has been installed through a shared profile, folder reading/creation will fallback to plugins/onlystar-sPEAKer Music permanently for that profile. This does not affect downloaded mixtapes (which is most likely the main source for music in shared profiles anyway).

Coming up next... ๐Ÿ”ฎ

  • [1.9.0] Input update (Keybinds and Controllers)
  • [2.0.0] [REDACTED]
  • [2.1.0] UI update (Song Selection and Queue)
  • A long break from modding

Created by onlystar - Bringing music to the PEAK experience!

CHANGELOG

Changelog

[1.8.2]

  • Added 9 DANCE Moves! Press O when in Drone Mode.
  • Removed unintended minimal volume hidden setting. You can now throw sPEAKer very far away and actually enjoy silence and find inner peace.
  • Changed how audio falloff curve feels. This is a manually crafted effect, so any feedback from any audiophiles out there in the wild is greatly appreaciated.
  • HUGE REFACTOR for [REDACTED]

[1.8.1]

  • Instead of binding to a single player forever, Drone Mode will now try to follow the nearest player in a radius every time the mode is engaged (Drop + P).
  • This, in turn, disabled the ability to throw it far away and have it come back to you. Don't worry, it will come back as a Recall ability soonโ„ข.
  • Added an indicator to show exact Drone search radius.
  • Fixed an issue where if Drone sPEAKer was following someone and they died, it would follow them to the afterlife.
  • Improved custom logging system.

[1.8.0]

  • Added DRONE MODE! Drop the sPEAKer and press P.
  • Fixed mixtape author incorrectly displaying as unknown.

[1.7.1]

  • Added Sound Effect when reaching max Volume
  • Added Sound Effect when entering [REDACTED]
  • Fixed UI state issues when entering [REDACTED]

[1.7.0]

  • NEW: Loop modes! Toggle with Alt + Secondary
  • NEW: Previous song! Use with Shift + Secondary
  • Netcode now correctly broadcasts most changes to playback state
  • Updated README (it's updated every patch but just in case you only read the changelog :P)

[1.6.0]

  • NEW CONFIG: StartupLoadingIndicator, enabled by default, to show an audio loading indicator at game boot. It lasts as long as the initial lag spike does.
  • NEW CONFIG: DisplayMixtapeAuthor, enabled by default, to show the mixtape author during playback.
  • Fixed an issue where audio loading would break when sPEAKer had been installed through a Thunderstore profile code.
  • Fixed an issue where sPEAKer would sometimes spawn below ground level at the Shore.

[1.5.0]

  • Added mixtape author below stamina bar.
  • Added indicator when songs and mixtapes are loading.
  • Fixed issue where in-game font would sometimes not load.
  • Changed song hashing method. This should fix song-syncing issues some people were still having, but will introduce more lag while songs are loading.
  • Optimized audio loading, albeit unnoticeable given the previous point.

[1.4.0]

  • Added Local Volume control to pause menu

[1.3.1]

  • Optimized netcode handling
  • Fixed state inconsistencies when getting back to the airport or main-menuing
  • Fixed next song not starting automatically when sPEAKer is pocketed (I refactored an entire class for this ๐Ÿ’€)

[1.3.0]

  • Added Track Duration (enabled by default)
  • Added new configs: ShuffleOnStart, TurnOnAndPlay, ShowTrackDuration.

[1.2.1]

  • Disabled unfinished feature

[1.2.0]

  • Added Shuffle
  • Added clarification to add sPEAKer as a dependency to uploaded mixtapes
  • Fixed an issue where downloaded mixtapes sometimes would not load for non-hosts
  • Fixed an issue where netcode would sometimes generate a duplicate photon ID
  • Fixed volume step being too aggressive when using a controller
  • Fixed some localization texts for Spanish, Korean and Japanese
  • Removed Herobrine

[1.1.5]

  • Many optimizations for upcoming 1.2.0
  • Removed Herobrine

[1.1.4]

  • Now sPEAKer looks for music on its own folder too (onlystar-sPEAKer), just in case.

[1.1.3]

  • Minor optimizations and code cleaning.
  • Added instructions to update an existing Thunderstore mixtape in README.

[1.1.2]

  • Bundle optimization for MESA update.
  • Some groundwork for upcoming feature.

[1.1.1]

  • Changed recalling with F4 to be enabled by default (host only).
  • Fixed a desync when dropped while paused.
  • Fixed files not loading if containing special characters.

[1.1.0]

  • Added MP3 and WAV support.
  • Removed ZIP format requirement for mixtapes.
  • Updated README.

[1.0.0]

  • Initial release, with mixtapes.