Jump to content

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


pizzaoverhead

Recommended Posts

The current release doesn't decide what track to play; that's still managed by the stock MusicLogic. Check that you haven't given it the same tracks twice.

I've done some listening and it appears to play every song it chooses twice in a row. I only have 4 songs in the construction playlist and none are repeated. Here's the config code:

astroComplexAmbience = KSP_AstronautComplexAmbience
credits = KSP_Credits
menuAmbience = KSP_MenuAmbience
menuTheme = SoundtrackEditor/Music/Dream
researchComplexAmbience = SoundtrackEditor/Music/about u
spaceCenterAmbience = SoundtrackEditor/Music/Coca Dorm Root
SPHAmbience = SoundtrackEditor/Music/ambience outside of warehouse
trackingAmbience = KSP_TrackingStation
VABAmbience = SoundtrackEditor/Music/ambience outside of warehouse
SpacePlaylist
{
track = SoundtrackEditor/Music/Seaside Breeze
track = SoundtrackEditor/Music/Scripp's Pier (Epilogue)
track = SoundtrackEditor/Music/Scripp's Pier (Prologue)
track = SoundtrackEditor/Music/y.av
track = SoundtrackEditor/Music/L'appel Du Vide
}
ConstructionPlaylist
{
track = SoundtrackEditor/Music/Sitka Heart Lake
track = SoundtrackEditor/Music/Mitre Peak
track = SoundtrackEditor/Music/Hang Son Doong
track = SoundtrackEditor/Music/Cherry Blossoms
}
UnusedTracks
{
track = KSP_Construction01
track = KSP_Construction02
track = KSP_Construction03
track = KSP - VAB_SPH_SneakyAdventure
track = Groove Grove
track = Brittle Rille
track = KSP_SpaceAmbience01
track = KSP_SpaceAmbience02
track = KSP_SpaceAmbience03
track = KSP_SpaceAmbience04
track = Arcadia
track = Bathed in the Light
track = Dreamy Flashback
track = Frost Waltz
track = Frost Waltz (Alternate)
track = Frozen Star
track = Impact Lento
track = Wizardtorium
track = KSP_MainTheme
track = KSP_ResearchAndDevelopment
track = KSP_SpaceCenterAmbience
track = KSP_SPHAmbience
track = KSP_VABAmbience
}

Link to comment
Share on other sites

  • 2 weeks later...

After two days, I FINALLY managed to the mod work with 100% less crashes!

But I have just one question. Why does it load only 15 custom songs? I tried moving files out and inside the music folder for both Construction and Space, and it will always only allow me to load only 15 custom songs. Past that, the songs that aren't in that 15 won't even appear in the UnusedTracks. Here is what it looks like:

-------------------------------------------------------------

astroComplexAmbience = KSP_AstronautComplexAmbience

credits = KSP_Credits

menuAmbience = KSP_MenuAmbience

menuTheme = SoundtrackEditor/Music/Space/01 Peaceful Desolation

researchComplexAmbience = KSP_ResearchAndDevelopment

spaceCenterAmbience = SoundtrackEditor/Music/dobroide-forest

SPHAmbience = KSP_SPHAmbience

trackingAmbience = SoundtrackEditor/Music/Space/01 Numinous Shine

VABAmbience = KSP_VABAmbience

SpacePlaylist

{

track = SoundtrackEditor/Music/Space/01 Creative 1 _ Biome Fest

track = SoundtrackEditor/Music/Space/01 Darkest Child

track = SoundtrackEditor/Music/Space/01 FairyTale Waltz

track = SoundtrackEditor/Music/Space/01 Maritan Cowboy

track = SoundtrackEditor/Music/Space/01 Mysterioso March

track = SoundtrackEditor/Music/Space/01 On the Shore

track = SoundtrackEditor/Music/Space/01 Strauss Jr. (J)_ The Blue Danube

track = SoundtrackEditor/Music/Space/02 Creative 2 _ Blind Spots

track = SoundtrackEditor/Music/Space/06 Miner Stories

track = SoundtrackEditor/Music/Space/09 Red Glowing Dust

track = SoundtrackEditor/Music/Space/15 Surplus Of Rare Artifacts

}

ConstructionPlaylist

{

track = SoundtrackEditor/Music/Construction/Investigations

track = KSP_Construction01

track = KSP_Construction02

track = KSP_Construction03

track = KSP - VAB_SPH_SneakyAdventure

track = Groove Grove

track = Brittle Rille

}

UnusedTracks

{

track = KSP_SpaceAmbience01

track = KSP_SpaceAmbience02

track = KSP_SpaceAmbience03

track = KSP_SpaceAmbience04

track = Arcadia

track = Bathed in the Light

track = Dreamy Flashback

track = Frost Waltz

track = Frost Waltz (Alternate)

track = Frozen Star

track = Impact Lento

track = Wizardtorium

track = KSP_MainTheme

track = KSP_SpaceCenterAmbience

track = KSP_TrackingStation

}

-------------------------------------------------------------

If you count, only 15 custom songs appear, is there a way to have more songs play? Overall, I am in LOVE with the mod.

Edited by AgentRG
Make the code clearer to understand
Link to comment
Share on other sites

Update: New glitch appeared. For some reason, the Track Station crashes whenever I click on it. I switched to Aggressive ATM, and the crash stopped... BUT, now the hanger started crashing with the same error!

The error basically says that I am out of memory, which doesn't make sense because I am running at 6GB/16GB Ram:

[HighLogic]: =========================== Scene Change : From SPACE CENTER to (Hanger or Tracking Station) (Async) =====================

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

UnloadTime: 102.141975 ms

DynamicHeapAllocator out of memory - Could not get memory for large allocationCould not allocate memory: System out of memory!

Trying to allocate: 1048588B with 4 alignment. MemoryLabel: TempOverflow

Allocation happend at: Line:61 in

Memory overview

[ ALLOC_DEFAULT ] used: 1574427149B | peak: 0B | reserved: 1614626164B

[ ALLOC_GFX ] used: 332407270B | peak: 0B | reserved: 370092688B

[ ALLOC_CACHEOBJECTS ] used: 473540B | peak: 0B | reserved: 12582912B

[ ALLOC_TYPETREE ] used: 20472B | peak: 0B | reserved: 4194304B

[ ALLOC_PROFILER ] used: 447840B | peak: 0B | reserved: 8388608B

Could not allocate memory: System out of memory!

Trying to allocate: 1048588B with 4 alignment. MemoryLabel: TempOverflow

Allocation happend at: Line:61 in

Memory overview

[ ALLOC_DEFAULT ] used: 1574427149B | peak: 0B | reserved: 1614626164B

[ ALLOC_GFX ] used: 332407270B | peak: 0B | reserved: 370092688B

[ ALLOC_CACHEOBJECTS ] used: 473540B | peak: 0B | reserved: 12582912B

[ ALLOC_TYPETREE ] used: 20472B | peak: 0B | reserved: 4194304B

[ ALLOC_PROFILER ] used: 447840B | peak: 0B | reserved: 8388608B

(Filename: Line: 909)

DynamicHeapAllocator out of memory - Could not get memory for large allocationCould not allocate memory: System out of memory!

Trying to allocate: 1048576B with 4 alignment. MemoryLabel: Default

Allocation happend at: Line:74 in

Memory overview

[ ALLOC_DEFAULT ] used: 1574427149B | peak: 0B | reserved: 1614626164B

[ ALLOC_GFX ] used: 332407270B | peak: 0B | reserved: 370092688B

[ ALLOC_CACHEOBJECTS ] used: 473540B | peak: 0B | reserved: 12582912B

[ ALLOC_TYPETREE ] used: 20472B | peak: 0B | reserved: 4194304B

[ ALLOC_PROFILER ] used: 447840B | peak: 0B | reserved: 8388608B

Could not allocate memory: System out of memory!

Trying to allocate: 1048576B with 4 alignment. MemoryLabel: Default

Allocation happend at: Line:74 in

Memory overview

[ ALLOC_DEFAULT ] used: 1574427149B | peak: 0B | reserved: 1614626164B

[ ALLOC_GFX ] used: 332407270B | peak: 0B | reserved: 370092688B

[ ALLOC_CACHEOBJECTS ] used: 473540B | peak: 0B | reserved: 12582912B

[ ALLOC_TYPETREE ] used: 20472B | peak: 0B | reserved: 4194304B

[ ALLOC_PROFILER ] used: 447840B | peak: 0B | reserved: 8388608B

(Filename: Line: 909)

Crash!!!

ERROR: Error while initializing dbghelp.dll, GetLastError: 'The operation completed successfully.' (Address: 00000000)

========== OUTPUTING STACK TRACE ==================

ERROR: Error while initializing dbghelp.dll, GetLastError: 'The operation completed successfully.' (Address: 00000000)

========== END OF STACKTRACE ===========

**** Crash! ****

---------------------------------------------------------

Running normal ATM with the above playlist crashes the Space Center with the error saying that I am out of memory.

Running aggressive ATM with the above playlist crashes the Hanger with the error saying the same thing.

Link to comment
Share on other sites

As much as I like this mod in concept (and the music included is great). It's a really bad investment to your Kerbal mod collection, it simply uses too much memory.

I've discovered putting your Kerbal soundtrack in a playlist of a music player program (I use foobar2000) is a much better way, as that memory does not count against Kerbal's hard limit.

Hope this helps people's crashes. Thanks for the music included in this mod, I'm still using it!! :)

Link to comment
Share on other sites

I've been making progress with the version 3 release, but there is still lots to be done before it's ready for general usage. In the meantime, here's a preview to allow for testing memory usage and the new playlist format:

http://www./download/ur95c6sa21y2bg4/STED_V3_preview.zip

Mirror:

https://drive.google.com/file/d/0B7wRgLdaxUSdNEJKYUFCaWZxc3M/view?pli=1

This is a work-in-progress experimental preview. It contains bugs, and many features are incomplete or missing. Do not install it on your main save. Please report any issues you find.

Features

  • Completely rewritten playback management, playlists and memory management.
  • Dynamic loading of tracks: Only the current track needs to be in memory.
  • Environment-aware playlists: Have a specific track play when you go supersonic or splash down.
  • Looping and shuffling.
  • Track preloading.

Multiple channel sound support for ambient tracks played alongside music (such as the background machinery in the VAB and SPH) is incomplete, so these sounds are missing in this version.

This preview does not include a GUI, but work on the media player GUI has already begun, with the in-game playlist editor to come later:

oBSxJE8.png

settings.cfg options:

playlist
name
loop
shuffle
preloadTime
playNext
tracks
track
playWhen
scene
Loading
LoadingBuffer
MainMenu
Settings
Credits
SpaceCentre
VAB
SPH
TrackingStation
Flight
PSystem
Any
bodyName
situation
LANDED
SPLASHED
PRELAUNCH
FLYING
SUB_ORBITAL
ORBITING
ESCAPING
DOCKED
cameraMode
Flight
Map
External
IVA
Internal
Any
inAtmosphere
maxVelocitySurface
minVelocitySurface
maxVelocityOrbital
minVelocityOrbital
maxAltitude
minAltitude

Options explanation:

  • name - Whatever name you want to give to the playlist. Use this name for the "playNext" field.
  • loop - If true, on reaching the end of a playlist, the first track will be played again. If false, the playlist specified by "playNext" will be played. Default: true
  • shuffle - If true, any time this playlist starts playing, the order that the tracks in it will be played is randomised. Default: false
  • preloadTime - Loading WAVs and OGGs via the Unity methods is much slower (several seconds) than loading MP3s (fraction of a second). If you don't want gaps in your playback, you can specify that the next track to be played should be loaded into memory before the current one has finished playing. Default: 5
  • playNext - If this playlist is not set to be looped via "loop", the playlist named here will be played next.
  • track - The name of each audio file in this playlist. Do not use "quotation marks" or file extensions here, i.e. it should be
    track = My awesome song


    and not

    track = "My awesome song.mp3"


  • playWhen - This section contains settings for the circumstances under which this playlist should be switched to.
  • scene - Which game scenes this playlist should play in. Default: Any. These are the options, as defined by stock KSP (you'll have to discover what the loading and PSystem ones mean):
    • Loading
    • LoadingBuffer
    • MainMenu
    • Settings
    • Credits
    • SpaceCentre
    • VAB
    • SPH
    • TrackingStation
    • Flight
    • PSystem
    • Any

    [*] bodyName - The planet, moon or sun whose sphere of influence this playlist should be played within. e.g. bodyName = Eeloo

    [*] situation - The vessel situation during which this playlist should be played, as defined by stock KSP:

    • LANDED
    • SPLASHED
    • PRELAUNCH
    • FLYING
    • SUB_ORBITAL
    • ORBITING
    • ESCAPING
    • DOCKED

    [*] cameraMode - The camera viewpoint at which this playlist should be played, as defined by stock KSP.

    • Flight
    • Map
    • External
    • IVA
    • Internal
    • Any

    [*] inAtmosphere - Whether this playlist should be played inside or out of atmosphere (defined by an atmospheric density greater than zero):


    • Yes
    • True
    • No
    • False
    • Either

    [*] maxVelocitySurface - If you go above this velocity relative to the surface (navball Surface mode), this playlist won't be played.

    [*] minVelocitySurface - If you go below this velocity relative to the surface (navball Surface mode), this playlist won't be played.

    [*] maxVelocityOrbital - If you go above this orbital velocity (navball Orbit mode), this playlist won't be played.

    [*] minVelocityOrbital - If you go below this orbital velocity (navball Orbit mode), this playlist won't be played.

    [*] maxAltitude - If you go above this altitude above sea level (main altimeter display, not radar), this playlist won't be played.

    [*] minAltitude - If you go below this altitude above sea level (main altimeter display, not radar), this playlist won't be played.

Edited by pizzaoverhead
Added mirror link from OP.
Link to comment
Share on other sites

This new prerelease is looking awesome!

Some questions about the playlisting:

1) If there are two playlists that fit the current situation, which one is chosen?

2) Does 'playnext' point to a track or a playlist?

3) Do you plan on adding support for the current biome?

Anyway, thanks for making this wonderful mod!

Edit: Okay, bodyName does not seem to be working properly. Here is a link to the .cfg file I'm using. I tried to give each planet its own music, but it doesn't seem to respect the bodyName tag. Any suggestions?

Edited by Trainzack
Link to comment
Share on other sites

Replace the main menu theme with [url=]

and it suddenly changes the whole mood of KSP. Especially if you get the screen with Jeb crashed on Mun. Great work on this mod, thank you very much. I can finally listen to Space Oddity and Heavy Metal while playing without having to tab out to iTunes.
Link to comment
Share on other sites

Some feedback: right now its running really good. Takes a bit of work with editing the config, but the handling and the small ram footprint is really nice. Great work! And, boy, how the right music enhances the game experience :)

Link to comment
Share on other sites

This new prerelease is looking awesome!

Some questions about the playlisting:

1) If there are two playlists that fit the current situation, which one is chosen?

2) Does 'playnext' point to a track or a playlist?

3) Do you plan on adding support for the current biome?

Anyway, thanks for making this wonderful mod!

Edit: Okay, bodyName does not seem to be working properly. Here is a link to the .cfg file I'm using. I tried to give each planet its own music, but it doesn't seem to respect the bodyName tag. Any suggestions?

Excellent questions! At the moment, only the first matching playlist is chosen, but in future, playlists will merge or be able to be assigned a priority. "playNext" points to a playlist. Current biome is a great suggestion, I'll add it to the list. Thanks for the bug report. It may be that the quotation marks aren't required, but I'll check it out.

Thanks! That song reminds me of Darkest Child.

Good idea. Managing how multiple valid playlists are handled is the next task to be handled.

Excellent! Thanks for the feedback! :)

Link to comment
Share on other sites

I dunno if I did something wrong, but none of my new tracks are playing (including the ones that come with the download), and the music continues to play even when I go back to the Space Centre.

EDIT: Never mind, I put the Music folder in the wrong place. :P

Trainzack, the planet names don't need to have quotes around them iirc.

Oh also, could there be an option to only play a certain track only once per flight?

ANOTHER EDIT: I tried putting the 'Menu Ambience' playlist/track back in, the looping track that plays after the main KSP theme at the title screen, but it goes into an infinite loading loop right before the title screen should appear, after it's finished initially loading everything. The loading icon thing spins really fast but I don't know if that means anything.

Edited by yorshee
Link to comment
Share on other sites

  • 2 weeks later...
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...