Prism Launcher - MineCraft instance missing VLC

Hello,

I’m trying to use the watermedia mod on an online MineCraft server that requires it.

The mod is installed and the game does not crash. I can also join the server without issues. But the mod does not work and I am unable to watch media from within the MineCraft server.

Although VLC is indeed installed and usable on my machine, the minecraft instance logs contain an error regarding VLC:

[14:36:21] [modloading-worker-0/FATAL] [watermedia/PlayerAPI]: [VLC IS MISSING]: Cannot create MediaPlayerFactory instance
[14:36:21] [modloading-worker-0/FATAL] [watermedia/PlayerAPI]: [VLC IS MISSING]: Cannot create MediaPlayerFactory instance

I see in the wiki page for prism launcher that I can provide extra programs and/or libraries by overriding the package definition. I tried this:

home.packages = with pkgs; [
  ...
  (prismlauncher.override { # alternative minecraft launcher
      additionalLibs = [ vlc ];
      additionalPrograms = [ vlc ];
    })
  ...
];

(I know the wiki uses environment.systemPackages and not home.packages, I tried both but could not see any difference)

But that did not change the error message in the instance logs. I’m not sure the override behaves the way I expect it to but I do not know how I could debug this.

I also tried:

  • Prepending vlc with pkgs.;
  • Backing up the ~/.local/share/PrismLauncher and reinstalling the instances from scratch.

None of them changed anything about the error in the instance logs.

Did anyone run into similar issues ? If so, how can one begin to solve it ?

I could provide the full instance logs (which are riddled with other error messages, although I do not think they relate to that specific VLC problem. I’m trying to fix one problem at a time) but I do not want to flood the question with potentially useless information. Please let me know if I the full logs are useful and I shall provide them here.

Thanks