Still can’t get Hashlink to load with any assets.
If I don’t use a swf library and just plain old assets, then it fails too.
It outputs:
Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of “default”
So it’s not managing to detect any assets or libraries when it runs in Hashlink debugger.
But it will run if I just use: openfl test hl or if I run the generated exe wrapper, haven’t figured out a way to connect the debugger with either of these commands though.
If I use the “lime” launch type, assets correctly load in HashLink for me. You just need to ensure that the Lime target is set to HashLink/Debug in VSCode’s status bar:
The “lime” launch type is designed to automatically populate the JSON with the correct values for the currently selected Lime target, so that you don’t need to do it manually. Getting the file systems paths correct when you do it manually can be a little tricky, as you discovered!
Wow, that certainly works. Thanks, Josh.
I don’t know how I spent this long without realising the VS Code Lime extension also handled debugging… And somehow I’ve never come across a launch.json in other openfl/lime projects like that.