Tutorial Others Playing On Linux - Tutorials, Tools And Help

5.00 star(s) 3 Votes

cyberpred

New Member
Aug 23, 2018
11
11
HI,
I am having issues running multiple renpy games in Kali running on WSL2.

I connect to my instance using " kex --esm --ip -s" which enables sound and i can watch youtube so sound is working. (pulse audio)
My issue is not related tot sound at all but rather video's playing in the games I am playing.

All the games play okay but non of them play any videos.
I did install VLC just to ensure I have all the codex and this did not work.

When the game plays a video the screen is just blank.
WLS2 and Kali do not have wine installed so I do not know if that is the issue.

Code:
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
I do not know if the sound issues is stopping the videos but here is the error I get when running games anyway.
any help will be appreciated
 
Last edited:

john1230

Active Member
Oct 6, 2020
869
764
HI,
I am having issues running multiple renpy games in Kali running on WSL2.

I connect to my instance using " kex --esm --ip -s" which enables sound and i can watch youtube so sound is working. (pulse audio)
My issue is not related tot sound at all but rather video's playing in the games I am playing.

All the games play okay but non of them play any videos.
I did install VLC just to ensure I have all the codex and this did not work.

When the game plays a video the screen is just blank.
WLS2 and Kali do not have wine installed so I do not know if that is the issue.

Code:
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
I do not know if the sound issues is stopping the videos but here is the error I get when running games anyway.
any help will be appreciated
I don't know about linux but on windows VLC don't install any codecs, it has them in the VLC program folder where only VLC knows about and can use them.

So if you try to play a video with mediaplayer after installing VLC, mediaplayer will not play the video as the codecs will not be installed on the system.

For your problem you can try and install "ubuntu-restricted-extras" in the app manager (if you have one), this is the codec pack for linux, if you don't have a app manager on your distro you'll need to apt-get it with the command line.

Installing "ubuntu-restricted-extras" will allow you to play videos in other video players (mplayer, smplayer) other than VLC, so ren'py games should be able to use it to play the videos.
 
Last edited:
  • Like
Reactions: HypnoKitten

Arikania

Well-Known Member
Feb 10, 2023
1,031
442
I have some RPGM games whose animations on in a separate mediaplayer window, making them next to impossible to play. Is there any fix or work-around for this issue?
 

UnstableV

Newbie
Apr 1, 2021
84
70
Have you guys had any success running RPGM games on the latest versions of NWJS? The latest version that works for me with any RPGM game is 0.72.0. Every new version just crashes with different errors. For example, I try to run Milfairy Tales and with 0.72.0 everything works fine, but with 0.94.0 i get this error:
Code:
./nw
[1226/021429.293089:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[278823:278823:1226/021429.355048:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.portal.Secret.RetrieveSecret: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.UnknownMethod: Не существует интерфейса “org.freedesktop.portal.Secret” на объекте по пути /org/freedesktop/portal/desktop
[278823:278823:1226/021429.355059:ERROR:secret_portal_key_provider.cc(150)] Failed to retrieve secret: No response from portal.
 
Jul 28, 2019
262
174
I think that is right; apparently 0.72.0 is the latest to work with linux.

(I found this comment: "I had been using a much older version that does work (v0.45) from when I originally learned this trick, but after a bit of trial and error I've found that 0.72.0 seems to be the last version that launches the games without error." )

As to why that might be I'd speculate it has something to do with the update to a newer chromium version and/or dropping support for windows 7 which happened after 0.72.0. (See: - first comment may well point to the underlying issue.)

Sorry I can't comment directly since I'm still using 0.45.1 and not playing RPGM games recently.
 

Mitsuna

Active Member
Jun 21, 2019
536
706
Have you guys had any success running RPGM games on the latest versions of NWJS? The latest version that works for me with any RPGM game is 0.72.0. Every new version just crashes with different errors. For example, I try to run Milfairy Tales and with 0.72.0 everything works fine, but with 0.94.0 i get this error:
Code:
./nw
[1226/021429.293089:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[278823:278823:1226/021429.355048:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.portal.Secret.RetrieveSecret: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.UnknownMethod: Не существует интерфейса “org.freedesktop.portal.Secret” на объекте по пути /org/freedesktop/portal/desktop
[278823:278823:1226/021429.355059:ERROR:secret_portal_key_provider.cc(150)] Failed to retrieve secret: No response from portal.
Yes everything is perfect with every game so far, just replace nwjs files. I've used 087 089 091 and now updated everything to 093, there are parameter name alterations now and then. You might need to change some settings in package.json (generally it's optional) and "name" cannot be empty, also glx is not supported anymore (which doesn't really matter at this point since newer versions come with the better performance and shader crashes are rare). Probably wanna keep 072 around for some ancient games due to some changes. Not sure if you have to add anything to disable portals, as I don't use any. There are some chromium args like --password-store=basic too. This could be a problem with your DE (if you use kde most programs will work properly) and do note xwayland can be problematic so it's better to ditch it asap (it will use xwayland if you don't add --ozone-platform-hint=auto), but 072 will probably need it still.
 
Last edited:
  • Like
Reactions: UnstableV

Flugelbozz

Member
Nov 12, 2018
307
241

this works quite ok for automating it, even with 0.94

where do you put chromium args tho, can give some examples?
 

camper88

Member
Feb 14, 2023
361
375
...

Install Packages :
  • ffmpeg
  • nwjs-ffmpeg-codecs-bin (for Arch -> AUR) which will install nwjs-bin (AUR too) consequently
Then, launch the game this way (and not the way everybody says):


  1. cd <game_dirpath>
  2. LD_PRELOAD=/opt/nwjs/libffmpeg.so /usr/bin/nw .
...
This worked. How do I make this permanent or systemwide? Is there a way?
 

Axeleen

Member
May 1, 2018
337
417
This worked. How do I make this permanent or systemwide? Is there a way?
Dude, don't ping me after 4 years for a basic linux question that could be answered instantly via an AI chat. Have some respect for others and do your own work.
 

RareAPE

New Member
Dec 17, 2023
14
4
Hello /g/entoomen, it appears the OP guide for RPG Maker VX Ace is a bit outdated. I cannot find the gstreamer or directmusic library in Winecfg anymore (WINE 10 RC1). I have installed the runtimes for all the RPGMs and all work with the common exception of VX Ace games, which techinally do run, capable of playing sound/music and reading input, but they lack any picture, just a black screen. Switching locale to JP does not appear to change things and neither does any JIS decompression matter as I use UNAR which can correctly identify and automatically extract such cases. I know I can just add these games to Steam or Lutris and run them via Proton, which I have tried and it does indeed work flawlessly, but I would rather play my games with vanilla WINE. Any pointers?
 

Arikania

Well-Known Member
Feb 10, 2023
1,031
442
Hello /g/entoomen, it appears the OP guide for RPG Maker VX Ace is a bit outdated. I cannot find the gstreamer or directmusic library in Winecfg anymore (WINE 10 RC1). I have installed the runtimes for all the RPGMs and all work with the common exception of VX Ace games, which techinally do run, capable of playing sound/music and reading input, but they lack any picture, just a black screen. Switching locale to JP does not appear to change things and neither does any JIS decompression matter as I use UNAR which can correctly identify and automatically extract such cases. I know I can just add these games to Steam or Lutris and run them via Proton, which I have tried and it does indeed work flawlessly, but I would rather play my games with vanilla WINE. Any pointers?
I did find gstreamer in the ArchLinux repo, but only after I included the version number in the package name (you won't find it in the graphic package manager, I had to use the terminal command pacman). Google may give you more details about how to install it for your specific distro.
 

RareAPE

New Member
Dec 17, 2023
14
4
I did find gstreamer in the ArchLinux repo, but only after I included the version number in the package name (you won't find it in the graphic package manager, I had to use the terminal command pacman). Google may give you more details about how to install it for your specific distro.
I appreciate the help but I still have yet to succeed. I will admit I did make one mistake on my previous post where I said I could not find directmusic, my eyes must have skipped over having to use winestricks and not Winecfg. I did manage to find those and installed them. As for the winegstreamer issue, the soluition still eludes me. I am using the terminal and my Fedora DNF package manager (I am a bit of a terminal purist in that regard) but I still cannot find it under Winecfg to disable from there. I know I have some version of gstreamer already in my system, I have spotted it in updates via terminal before, and I tried also installing the latest dev version on top of those yet nothing inside Winecfg to disable it. I have tried putting arguments to disable gstreamer directly into the command for launching the games under a 32-bit prefix and still no dice.
 

Thermophob

Well-Known Member
Apr 10, 2018
1,930
2,625
I did find gstreamer in the ArchLinux repo, but only after I included the version number in the package name (you won't find it in the graphic package manager, I had to use the terminal command pacman). Google may give you more details about how to install it for your specific distro.
Emh... I am not sure you understood what RareApe was asking for. Gstreamer is multimedia framework for Linux. It provides you with set of codecs, which enable you to play almost any video or audio format It's available at any Linux distro, but it maybe either split in dozen of small packages like in Debian/Ubunutverse, or in single like in Arch.. But, he was asking for a library winegstreamer which enables wine to use gstreamer. Winegstreamer is windows type dll library, and it's not available in Linux repos.
 
Jan 13, 2022
94
130
I chose to disable .NET framework when I installed wine, but now I need it because I want to install morrowind.
How can I go back and enable it?
 

Mitsuna

Active Member
Jun 21, 2019
536
706
I chose to disable .NET framework when I installed wine, but now I need it because I want to install morrowind.
How can I go back and enable it?


otherwise, it will probably ask whether you want to download it again on the next prefix update
 

KanekiKan222

New Member
Oct 21, 2018
4
1
Did you guys try using bottles? like i run almost every game from here, just some specific ones that use the windows media player didn't find any solution yet -_-
 
5.00 star(s) 3 Votes