Page MenuHomeFeedback Tracker

[Feature Request] MusicForcedStop Event Handler
Feedback, NormalPublic

Description

None of the current music event handlers fire on playMusic "" It would be nice to have one. Be that by either adding support for it in one of the existing ones or as a "MusicForcedStop" EH.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

dedmen set Ref Ticket to AIII-55746.Jul 4 2023, 12:08 PM
dedmen added a subscriber: dedmen.

This isn't a feature request this is a bug. MusicStop should trigger when music is stopped.

dedmen changed the task status from New to Feedback.Jul 4 2023, 12:27 PM

Fixed next dev

Thanks for fixing this.

I wasn't sure if this was a bug or not as on the MusicStop event handler wiki it states:

Note that it will not be triggered if the music is stopped forcefully using playMusic "".

Making it seem like intended behavior.

wiki has been fixed to match the new behaviour ;-)

mrzorn added a subscriber: mrzorn.Oct 4 2023, 8:48 PM

soooo.... playMusic "" is supposed to trigger a "MusicStop" Eventhandler if i understand the wiki right.

but it doesnt?

After further testing, i noticed that it will only trigger when when playMusic "" actually interrupts a currently played music track.

Idk if that is intended behavior or not, but maybe it would be worth while to clarify that detail in the biki, esp. on the https://community.bistudio.com/wiki/addMusicEventHandler entry.

The question is, if music is not playing, can it be stopped? I will pass this ticket to our wiki guru to see if this can be clarified, thanks for reporting.

wiki amended at Event Handlers - MusicStop
indeed, playMusic "" cannot stop music if no music is playing (-:

LouMontana closed this task as Resolved.Oct 5 2023, 12:28 PM
BIS_fnc_KK reopened this task as New.Nov 17 2023, 10:22 PM
BIS_fnc_KK claimed this task.

since Revision: 151156 both EHs will return current track position and total length

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 18 2023, 1:08 PM
BIS_fnc_KK changed the task status from New to Feedback.