Jump to content

tay

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation

10 Good

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Enceos Wow, thanks for the heads up! This is exactly what I needed. Time to take a look at my game log monitoring code... Edit: Okay, looks like the log file is buffered so it can't be reliably used for scene changes, but I'll see if I can get main menu music to work... Edit: Main menu music is working!
  2. Thanks! Yeah, similar story here. Didn't want to get into the whole mono business Yup, good eye I might've been a little bit inspired by a music program I wrote for dwarf fortress after I gave up trying to make SoundSense work. I guess the same thing happened to me again with Soundtrack Editor. I'm actually thinking about a soundsense-like way to somehow use the KSP game log to figure out when to play the main menu music while waiting to connect to the kRPC server.
  3. Sadly I don't use (or know how to use) planet mods...just browsing the forums. Looks pretty though!
  4. It seems like your SpaceDock link 401s?
  5. Music Hack I made a short kRPC script that plays music based on in-game events and figured I'd share it here and maybe get some feedback. It's an alternative to Soundtrack Editor for people low on memory. It'll also be easier to add new music events for people who'd rather not dive into full-on add-on development. I've found this better than the "mute and play space music" strategy I was using earlier. Features As an external program, no impact on game memory usage Can play anything that VLC can play, such as Youtube URLs Can play dramatic music during docking or rendezvous a la Interstellar Play custom music while editing, above the atmosphere, at the space center, or at the tracking station, eg play the Normandy galaxy map theme at the tracking center Play main menu music Configurable via music.yaml Comes with stock music Requirements Python 2.7 or later LibVLC for Python (pip install python-vlc) - currently only supports 32 bit python kRPC (pip install krpc) PyYAML (pip install PyYAML) Downloads Github | Source Configuration Edit music.yaml Individual files or directories with music inside are allowed To disable music for a label, just delete all the bullets underneath it Backslashes must be doubled for Windows style paths Mute KSP music Usage Run the program (python music_hack.py or ./music_hack.py) and start the game, in whatever order Start kRPC server (or set to autostart) after loading a save Accept connection from KSP (or set KRPC server to auto-accept) Crashes of the music player only require a restart of the music player Limitations Can only distinguish the tracking center. The rest of the space center scenes all play music from the space center label. Doesn't come with stock tracking or main menu music (licensing limitations) Can't play KSP theme when the program launches Youtube playback depends on whether LibVLC has up-to-date Youtube capabilities. Space music continues after switch to space center till next scene change.
×
×
  • Create New...