Jump to content

[1.6.1] Soundtrack Editor 4.6 (2019-01-28)


pizzaoverhead

Recommended Posts

... are you trying to undermine me (especially since I'm NOT trying to promote music that HAS royalties for this group.. only personal)? :huh::mad:

Absolutely not. We're perfectly capable of using whatever music we might have on our own machines, but my previous post was only a thought that had occurred to me at one point as I was agreeing with the idea of a playlist that was triggered by more events in the game. Guess the humor was lost. :(

Link to comment
Share on other sites

That's one of the main features of the upcoming version 3 release: Situational playlists.

Sounds good. I found an amusing song for entering Eve's atmosphere on Incompetech called "The Complex" (sadly, it's not terribly vanilla, but it does, to me, sort of emphasize both "The Beauty" [purple world] and "The Beast" [the intense gravitational pull] when entering, as proot once called it, "The Candy-colored Hell"): http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1300025

Absolutely not. We're perfectly capable of using whatever music we might have on our own machines, but my previous post was only a thought that had occurred to me at one point as I was agreeing with the idea of a playlist that was triggered by more events in the game. Guess the humor was lost. :(

I suppose I was confused when you used ">_<", since that, when I've seen it, is used as a frustration emoticon. Anyways, I kinda see the humor in it now.

Link to comment
Share on other sites

I suppose I was confused when you used ">_<", since that, when I've seen it, is used as a frustration emoticon. Anyways, I kinda see the humor in it now.

You're not the first to interpret that as an angry emoticon, though I've always thought of it as a "squinty face", similar to :3 without the kiddie-ness.

Link to comment
Share on other sites

I found a bug, and I squashed it.

I installed this mod as part of Proot's Renaissance Compilation, but when I started KSP the game's music tracks remained unchanged. Checking my Player.log I got the following error:

STED Load error: Object reference not set to an instance of an object

The full Player.log can be found here:http://pastebin.com/MbEnxJER

Given my background in Java and C, I decided to fix it myself. Turns out that the track "Bathed in the Light" is missing from spacePlaylist and is replaced with a null value. When various methods later in the code try to read music.spacePlaylist, they throw an exception upon reaching the null value where "Bathed in the Light" should be. Hence the object reference (the position in music.spacePlaylist where "Bathed in the Light" should be) is not set to an instance of an object (is null instead of being a track). This issues occurs on a clean install with both 32 and 64 bit linux steam binaries.

I modified SoundtrackEditor.dll to print out music.spacePlaylist, then remove the null value from the array. I added the following lines to SoundtrackEditor.dll after music is initialized (line 23):

[FONT=Monospace][COLOR=#999988][I]//[/I][/COLOR][COLOR=#999988][I]Debug [/I][/COLOR][COLOR=#999988][I]code[/I][/COLOR][COLOR=#999988][I]:[/I][/COLOR][COLOR=#999988][I] display[/I][/COLOR][COLOR=#999988][I] tracks[/I][/COLOR][COLOR=#999988][I] in[/I][/COLOR][COLOR=#999988][I] spacePlaylist[/I][/COLOR]
[COLOR=#999988][I]//[/I][/COLOR][COLOR=#999988][I]this[/I][/COLOR][COLOR=#999988][I] is[/I][/COLOR][COLOR=#999988][I] done[/I][/COLOR][COLOR=#999988][I] to[/I][/COLOR][COLOR=#999988][I] find[/I][/COLOR][COLOR=#999988][I] null [/I][/COLOR][COLOR=#999988][I]values[/I][/COLOR][COLOR=#999988][I] in[/I][/COLOR][COLOR=#999988][I] spacePlaylist[/I][/COLOR][COLOR=#999988][I] that[/I][/COLOR][COLOR=#999988][I] cause[/I][/COLOR][COLOR=#999988][I] this[/I][/COLOR][COLOR=#999988][I] plugin [/I][/COLOR][COLOR=#999988][I]to[/I][/COLOR][COLOR=#999988][I] break[/I][/COLOR]
[COLOR=#009695]foreach[/COLOR][COLOR=#444444]([/COLOR][COLOR=#009695]var[/COLOR][COLOR=#444444] track [/COLOR][COLOR=#009695]in[/COLOR][COLOR=#444444]music[/COLOR][COLOR=#444444].[/COLOR][COLOR=#444444]spacePlaylist[/COLOR][COLOR=#444444])[/COLOR]
[COLOR=#444444]print[/COLOR][COLOR=#444444]([/COLOR][COLOR=#444444]track[/COLOR][COLOR=#444444])[/COLOR][COLOR=#444444];[/COLOR]
[COLOR=#999988][I]//[/I][/COLOR][COLOR=#999988][I]remove[/I][/COLOR][COLOR=#999988][I] null[/I][/COLOR][COLOR=#999988][I] values[/I][/COLOR][COLOR=#999988][I] from[/I][/COLOR][COLOR=#999988][I] music[/I][/COLOR][COLOR=#999988][I].spacePlaylist[/I][/COLOR][/FONT][FONT=Monospace][COLOR=#444444]
music[/COLOR][COLOR=#444444].[/COLOR][COLOR=#444444]spacePlaylist[/COLOR][COLOR=#444444].[/COLOR][COLOR=#444444]RemoveAll[/COLOR][COLOR=#444444]([/COLOR][COLOR=#444444]t[/COLOR][COLOR=#444444]=[/COLOR][COLOR=#444444]>[/COLOR][COLOR=#444444]t[/COLOR][COLOR=#444444]==[/COLOR][COLOR=#009695]null[/COLOR][COLOR=#444444])[/COLOR][COLOR=#444444];[/COLOR][/FONT]

Once the null value is gone, the plugin functions as advertised. This is my KSP.log file from a clean install with my changes:http://pastebin.com/Xf4LDAce. You can see the problem, as well as the plugin functioning correctly afterwords.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
Any idea when the next version will come out?
...and when the disk-stream thing will be finished? If that's finished, I'll download it. Otherwise my computer can't bear it...

0.24 is rumoured to have some changes in the audio system, so it'll likely be post-0.24 before the update is released.

Link to comment
Share on other sites

Howdy. Quick question: With kspx64 out, should we now be able to load up more music tracks in this mod?

Yup, updated my playlist to include the tracks I had originally wanted on it, will be even better once this is updated to load the songs as they play (saving even more memory).

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...