/MediaPlayer

A media player for BONELAB

Primary LanguageC#

MediaPlayer

MP3 Player that reads the file's metadata

IMPORTANT!

  • DEPENDING ON HOW MANY MP3 FILES YOU PUT IN THE FOLDER, THE GAME MAY TAKE LONGER TO START UP!
  • THIS IS INEVITABLE! PUTTING IT ON ANOTHER THREAD CRASHES THE GAME, AND IF IT WERE ASYNC IT MAY NOT BE FULLY LOADED BY THE TIME YOU SPAWN ONE IN, CAUSING PROBLEMS!

Setup

Mod

Installation

  • Place the dll in the Mods folder and run the game once

Preferences

  • In WeatherElectric.cfg, all preferences for the mod are in the MediaPlayer category
  • You can also edit them in game through BoneMenu.

Custom Audio

Requirements

File Setup

  • Drag your MP3 files into Mp3Tag
  • Select all of them image
  • Right click and hit "Actions"
  • Create a new action and name it anything
  • Add an "Adjust cover" action to it image
  • Set the max size to "336"
  • Deselect all action groups EXCEPT the one you just made image
  • Hit "OK"

Installation

  • Place your MP3 files into UserData/Weather Electric/MediaPlayer/Custom Music

Development

  • The TagLib wrapper has public methods in case you want to use them.
  • GetTag(string filepath, Tag tag)
  • GetCover(string filepath)
  • GetFilename(string filepath)
  • It is all explained within the documentation file.