Closed Lyghfe closed 2 weeks ago
Hm, that should only happen if the music list (the regular one, not the one specific to mounts) is empty. A check for that is missing when playing music.
Are you emptying the normal music list and using only the feature with custom songs per mount?
"Are you emptying the normal music list and using only the feature with custom songs per mount?" Spot on, that's been the issue! I didn't want the chocobo song playing in any case at all, so I thought going the extra mile of not only disabling but also removing them to prevent any instance of unwanted music, would do the trick. Turns out it bricked the addon.
I didn't think it was something like this causing the problem so I straight up deleted those from their list and didn't make the connection of ChatGPT telling me that the range for random music was 'empty' effectively meaning this list needs entries. So then: re-downloading also did nothing for me cuz it saved the variables of the addon and saved that I emptied the list - so its excluding them by default now.
So then: re-downloading also did nothing for me cuz it saved the variables of the addon and saved that I emptied the list - so its excluding them by default now.
You should be able to use the "Reset" button to bring back the default list of songs.
In any case, I should probably add a check there so that if the list is empty, it just plays nothing if there's no custom song for the mount configured.
There's now a fix for it pushed. No release made for it yet, but if you enable alpha versions in your AddOn manager it should be available there (v4.10.9-4-gb9e67b6). (Notably not on WoWInterface though since they don't support alpha versions.)
Describe the bug
After entering the world, when I try to mount on anything other than the mounts I assigned a custom song to (didn't try the OG bird mounts that are supposed to work by default like riding cranes and such), Chocobo will have this lua error and won't work until I reload and it remount on only mounts that I assigned.
Lua Error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Shouldn't "crash" the addon
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information)
Additional context
I again don't assume its all the addons fault and something might be faulty on my end as well but I couldn't find anything even after reinstalling chocobo and only having it run by itself. I also think that when it results in an error, that something happens with the background music - dunno if its playing the actual zone song or something random but I do notice it starting primarily after crash - might be me tripping tho, because I am anticipating something to happen
Will you be working to fix this problem yourself in a PR?
I asked ChatGPT to help me out to at least have an error thrown to show what went wrong and to also handle the error in a way that would allow the addon to still be running - it added this snippet:
or as explained by itself:
Which works for now but I don't want to rely on a band aid that I don't fully understand. Hope this is somewhat of help and I'm looking forward to (hopefully) your next patch :D