FunkinCrew / Funkin

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

Compiling help: Compiling for Linux / couldn't find a match for this asset library: (vlc) #2521

Open znemux opened 6 months ago

znemux commented 6 months ago

(Fedora Linux)

I want to build the game to make a Linux version since it hasn't been updated for years and I want to play offline. After successfully compile the game after reading COMPILING.md, I executed "Funkin" in export/release/linux/bin, the game window appears at loading screen, then it crashes, on terminal this error shows up:

source/funkin/modding/PolymodErrorHandler.hx:84: [ERROR] Your Lime/OpenFL configuration is using custom asset libraries, and you provided frameworkParams in Polymod.init(), but we couldn't find a match for this asset library: (vlc)
source/funkin/modding/PolymodHandler.hx:158: An error occurred! Failed when loading mods!
source/funkin/util/logging/CrashHandler.hx:62: Error while handling crash: Null Object Reference

Command I used to build: lime build linux -release

I thought I had to install vlc and it's development libraries on my OS, so I did it but it had no effect, same crash.

Full logs: crashlog.txt or pastebin

HTML5 build works fine though, I am still able to play offline but I'd prefer a native version for performance reasons.

NotHyper-474 commented 6 months ago

Do this to fix it https://github.com/FunkinCrew/Funkin/issues/2428#issuecomment-2106080642

znemux commented 6 months ago

Do this to fix it #2428 (comment)

I now have a compile error:

 ERROR  source/funkin/modding/PolymodHandler.hx:294: characters 7-24

  294 |       coreAssetRedirect: CORE_FOLDER,
      |       ^^^^^^^^^^^^^^^^^
      | { coreAssetRedirect : Null<String>, assetLibraryPaths : haxe.ds.Map<String, String> } has extra field coreAssetRedirect
NotHyper-474 commented 6 months ago

Now it has to do with #2299

znemux commented 6 months ago

Now it has to do with #2299

Didn't fix the issue 😭 Maybe I just better wait until devs fix that

NotHyper-474 commented 6 months ago

If you just want to play I can give you my build, but I can't guarantee it'll work seamlessly

znemux commented 6 months ago

If you just want to play I can give you my build, but I can't guarantee it'll work seamlessly

Thanks

NotHyper-474 commented 6 months ago

If you just want to play I can give you my build, but I can't guarantee it'll work seamlessly

Thanks

There you go

NotHyper-474 commented 5 months ago

Do this to fix it #2428 (comment)

I now have a compile error:

 ERROR  source/funkin/modding/PolymodHandler.hx:294: characters 7-24

  294 |       coreAssetRedirect: CORE_FOLDER,
      |       ^^^^^^^^^^^^^^^^^
      | { coreAssetRedirect : Null<String>, assetLibraryPaths : haxe.ds.Map<String, String> } has extra field coreAssetRedirect

Also seems like this is caused by a bad install of Polymod, so you can try hmm reinstall -f polymod to fix that error.

Hundrec commented 2 weeks ago

Hyper, do you believe this issue is stale?

NotHyper-474 commented 2 weeks ago

I guess so. The hxCodec issue was solved by bumping the version and the other issue was just a bad hmm install.