FunkinCrew / Funkin

A rhythm game made with HaxeFlixel
https://www.newgrounds.com/portal/view/770371
Other
2.97k stars 2.29k forks source link

Bug Report: Unable to load Video Cutscenes when using `Paths.videos()` in mods #2446

Open AbnormalPoof opened 6 months ago

AbnormalPoof commented 6 months ago

Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as clearing cookies, clearing AppData, trying another browser) before submitting an issue.

If you are playing the game in a browser, what site are you playing it from?

What version of the game are you using? Look in the bottom left corner of the main menu. (ex: 0.2.7, 0.2.1, shit like that)

0.3.2

Please describe your issue. Provide extensive detail and images if possible.

Title pretty much explains it all. It appears as if the game is looking for the video in assets/ instead of the mod's root directory. Specifying the path manually appears to work, it's only when using Paths.videos

Screenshot 2024-05-10 at 9 30 42 PM Screenshot 2024-05-10 at 9 31 18 PM Screenshot 2024-05-10 at 9 32 15 PM

gamerbross commented 4 months ago

https://github.com/FunkinCrew/hxCodec/pull/5 fixes this

AbnormalPoof commented 1 month ago

Still occurs in v0.5.1. The getPath method still works #2249 (comment):

As a temporary solution, OpenFL Assets has a getPath() function that returns the full path of an asset. Import openfl.utils.Assets and modify the Video Cutscene code as such:

Assets.getPath(Paths.videos('myVideo')); (Note that Paths.videos() expects the MP4 to be in mods/My Mod/videos/videos.)

(FunkinCrew/hxCodec#5 is still open which fixes this!)