Ansible2 / Outward-CCM-Project

0 stars 0 forks source link

[BUG] In rare instances combat music can play over top of regular music #17

Closed Ansible2 closed 3 years ago

Ansible2 commented 3 years ago

Describe the bug If combat music and say an ambient track are started at almost identical times, they seem to be capable of playing over top of one another.

Expected behavior Combat music will not play over top of the ambient tracks. Ambient will stop.

BepInEx Log File:

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_getTrackType: Found that object ow - region enmerkar forest matched tracks for ambient day

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: CCM_currentTrackType was set to ambientDay
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: _fn_requestTrack: was called...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: _fn_requestTrack: CCM_syncOnline is ON
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: _fn_requestTrack: Local Machine IS Master Client. Starting routine for track type ambientDay

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: was called for scene emercar with track type: ambientDay
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: CCM_fnc_stopMusicRoutine: was called
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: CCM_fnc_stopMusicRoutine: CCM_currentRoutine was NOT null, stopping...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: was called for scene
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_grabRandomTrack: Selected track file: vindsvept - homeward bound.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: New track has been selected for current scene: vindsvept - homeward bound.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: Sync Online is true, RPCing CCM_event_playMusic_RPC to all players

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_playMusic_RPC: was called...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_playMusic_RPC: Sync Online is ON, continuing with remotely triggered event...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_playMusic: was called for file vindsvept - homeward bound.ogg
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Called for song: vindsvept - homeward bound.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: sleep time will be: 199
[Message:CCM_project] 06/06/2021 03:02:56--: _tracklength int: 198

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_getTrackType: Found that object ow - combat enmerkar matched tracks for combat

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: CCM_currentTrackType was set to combat
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: _fn_requestTrack: was called...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: _fn_requestTrack: CCM_syncOnline is ON
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_onVanillaMusicPlayed: _fn_requestTrack: Local Machine IS Master Client. Starting routine for track type combat

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: was called for scene emercar with track type: combat
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: CCM_fnc_stopMusicRoutine: was called
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: CCM_fnc_stopMusicRoutine: CCM_currentRoutine was NOT null, stopping...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: was called for scene
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_grabRandomTrack: Selected track file: vindsvept - ragnarok, fate of the gods.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: New track has been selected for current scene: vindsvept - ragnarok, fate of the gods.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: Sync Online is true, RPCing CCM_event_playMusic_RPC to all players

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_playMusic_RPC: was called...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_event_playMusic_RPC: Sync Online is ON, continuing with remotely triggered event...
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_playMusic: was called for file vindsvept - ragnarok, fate of the gods.ogg
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Called for song: vindsvept - ragnarok, fate of the gods.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_spawn_startMusicRoutine: _fn_beginRoutine: sleep time will be: 235
[Message:CCM_project] 06/06/2021 03:02:56--: _tracklength int: 234

[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_playMusic: _fn_createAndPlayClip: Web request is done for vindsvept - homeward bound.ogg
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Music handler for vindsvept - homeward bound.ogg is named: CCM_musicHandler_1
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Music handler audiosource for vindsvept - homeward bound.ogg is named: CCM_musicHandler_1 (UnityEngine.AudioSource)
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Handler told to play: vindsvept - homeward bound.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_fadeAudioSource: Was called to fade CCM_musicHandler_1 (UnityEngine.AudioSource) to 0.5
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_fadeAudioSource: Now fading audioSource: CCM_musicHandler_1 (UnityEngine.AudioSource)
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_playMusic: _fn_createAndPlayClip: Web request is done for vindsvept - ragnarok, fate of the gods.ogg
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Music handler for vindsvept - ragnarok, fate of the gods.ogg is named: CCM_musicHandler_2
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Music handler audiosource for vindsvept - ragnarok, fate of the gods.ogg is named: CCM_musicHandler_2 (UnityEngine.AudioSource)
[Message:CCM_project] CCM_fnc_playMusic: _fn_createAndPlayClip: Handler told to play: vindsvept - ragnarok, fate of the gods.ogg
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_fadeAudioSource: Was called to fade CCM_musicHandler_2 (UnityEngine.AudioSource) to 0.5
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_fadeAudioSource: Now fading audioSource: CCM_musicHandler_2 (UnityEngine.AudioSource)
[Message:CCM_project] 06/06/2021 03:02:56--: CCM_fnc_fadeAudioSource: AudioSource: CCM_musicHandler_2 has finished its fade to 0.5
[Message:CCM_project] 06/06/2021 03:02:59--: CCM_fnc_fadeAudioSource: AudioSource: CCM_musicHandler_1 has finished its fade to 0.5

CCM Version