07th-mod / umineko-question

94 stars 9 forks source link

Failed loading libpng12.so.0 #148

Closed furanzoni closed 4 years ago

furanzoni commented 4 years ago

OS: Manjaro Linux (Arch-based distro) Installed game like in the past week. Voices only patch using the automatic installer. I have the latest libpng on my laptop (libpng-1.6.37-1 as of now). However when starting the Umineko1to4 executable it throws a bunch of falied loading libpng12.so.0 errors and when the game is fully started there aren't any menu screen buttons (start episode, etc...) Here's the output of the game when run in debug mode:

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
Unable to initialize steam; cloud and achievements won't work
Adding: .
Adding: ..
Unable to get steam's save path; falling back to relative save path.
Adding: /home/furanzoni/Games/UminekoWhenTheyCry/mysav/
Adding: ./:../
Couldn't initialize SDL gamecontroller: There are 0 joysticks available
Error at line 12: unknown command [language]
(*define line 9)
Error at line 16: unknown command [errorsave]
(*define line 13)
Error at line 60: unknown command [addkinsoku]
(*define line 57)
Warning: alias `on' may conflict with some barewords
Warning: alias `off' may conflict with some barewords
Error at line 49365: unknown command [setlayer]
(*define line 49362)
Warning: alias `white' may conflict with some barewords
Warning: alias `black' may conflict with some barewords
Error at line 49375: unknown command [menu_click_def]
(*start line 1)
 *** can't load file [bmp\cursor0.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\cursor1.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
Error at line 312984: unknown command [menu_waveon]
(*check_game line 1)
Error at line 307856: unknown command [c4]
(*b_sakuru_logo line 15)
 *** can't load file [bmp\title\Circle_logo\circle_logo.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [Bmp\cursor0.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [Bmp\cursor1.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [Bmp\cursor0.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [Bmp\cursor1.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\title\hana.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\title\logo.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\title\title_menu\start.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\title\website.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\title\title_menu\web.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [bmp\title\title_menu\exit1.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ep1.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ep2.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ep3.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ep4.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\load.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\web.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\music.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\start.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\exit.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\warning.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\unlock.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ura_tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ura_tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ura_tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ura_tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\ura_tea.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tips.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tips.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tips.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tips.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
 *** can't load file [en\bmp\title\txt_box\tips.png]: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory ***
drojf commented 4 years ago

I haven't looked carefully at your error message yet, but have you looked at this FAQ:

Linux/MacOSX - Missing libpng.so libraries when launching game outside Steam

If you try to launch the Steam version of the game directly through the executable, the game will complain about missing libpng libraries and will show a black screen. You must launch the game directly through steam to avoid this error.

(from http://07th-mod.com/wiki/Umineko/Umineko-Part-0-TroubleShooting-and-FAQ/#linuxmacosx-missing-libpngso-libraries-when-launching-game-outside-steam)


The first line of your log also suggests you are not running steam. Try running the game through steam.

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.

If you don't have the steam version of the game (you have the GOG/MG version), ... uh...let me get back to you.

drojf commented 4 years ago

I'm going to record some information here, as this might not get resolved for some time:

On discord, there was some discussion: tellokrinkle:

Yeah they forgot to bundle libpng with the GOG version Different libpng versions aren't ABI compatible so it needs the exact version the game was compiled against, 1.2 Though if you have steam (not the steam version of Umi, just steam), it should have that version of libpng somewhere in it and you can copy it to the lib64 dir of Umineko to make it work

drojf

can I just add it to the umi installer and put it in every install? uh i mean, to the "update archive" which is extracted last, like sticking it in the higurashi patch archive and just always extract it to the lib64 folder if that does work, and if someone sends me the file and confirms it fixes the problem, I'll add it

tellowkrinkle

Yeah that should work, we just need someone to go look through their steam install for a libpng12.so.0 Also I don't know if we have any jpegs in umineko but if we do, also find libjpeg.so.8

In summary, we need someone who's running Steam on Linux to search find their libpng12.so.0 and libjpeg.so.8 so we can include it in the patch.

I could probably do this at some point, but I wanted to record this down before it gets lost in discord history. Or if someone else has steam installed on their Linux system they can jump in and do it.

verfutur

cp ~/.local/share/Steam/ubuntu12_32/steam-runtime/lib/x86_64-linux-gnu/libpng12.so.0 /path/to/game/lib64/ indeed seems to have solved the issue

libjpeg-libpng.so.zip

drojf commented 4 years ago

this should be fixed now, but I'll wait until OP confirms the fix works before closing the issue.

furanzoni commented 4 years ago

Thanks! Extracting the new archive fixed the error. Also, I'm running the MG version.