FWGS / xash3d-fwgs

Xash3D FWGS engine
1.59k stars 242 forks source link

OPENGL EOL (end of live) #1306

Closed gittadarling closed 1 year ago

gittadarling commented 1 year ago

got some vulkan drivers for me ... or a fresh rewrite for vulkan drivers lol freeglut3-dev installed but i dont know why ... heres the errorlog of compiling and running running(): ./start.sh [22:08:04] Console initialized. [22:08:04] /home/oem/.xash3d is working directory now [22:08:04] FS_Init: done [22:08:04] FS_LoadGameInfo( valve ) [22:08:04] FS_Rescan( Half-Life ) [22:08:04] FS_AddGameHierarchy: 1 valve valve [22:08:04] Adding wadfile: valve/cached.wad (2 files) [22:08:04] Adding wadfile: valve/decals.wad (222 files) [22:08:04] Adding wadfile: valve/fonts.wad (3 files) [22:08:04] Adding wadfile: valve/gfx.wad (7 files) [22:08:04] Adding wadfile: valve/halflife.wad (3116 files) [22:08:04] Adding wadfile: valve/liquids.wad (32 files) [22:08:04] Adding wadfile: valve/spraypaint.wad (14 files) [22:08:04] Adding wadfile: valve/xeno.wad (264 files) [22:08:04] InitDecals: 222 decals [22:08:04] Joystick: SDL GameController API [22:08:04] IN_TouchInit() [22:08:04] Base networking initialized. [22:08:04] Cannot load xashcomm.lst [22:08:04] SV_LoadProgs: initailized extended EntityAPI ver. 140 [22:08:04] Dll loaded for game "Half-Life" [22:08:04] SV: hull0, player_mins: -16 -16 -36, player_maxs: 16 16 36 [22:08:04] SV: hull1, player_mins: -16 -16 -18, player_maxs: 16 16 18 [22:08:04] SV: hull2, player_mins: 0 0 0, player_maxs: 0 0 0 [22:08:04] Error: Cmd_AddCommand: log already defined [22:08:04] execing skill.cfg [22:08:04] couldn't exec video.cfg [22:08:04] Found renderer gl: OpenGL [22:08:04] R_CollectRendererNames: can't load library libref_gles1.so: libref_gles1.so: cannot open shared object file: No such file or directory [22:08:04] R_CollectRendererNames: can't load library libref_gles2.so: libref_gles2.so: cannot open shared object file: No such file or directory [22:08:04] R_CollectRendererNames: can't load library libref_gl4es.so: libref_gl4es.so: cannot open shared object file: No such file or directory [22:08:04] Found renderer soft: Software [22:08:04] Loading renderer: gl -> libref_gl.so [22:08:04] couldn't exec opengl.cfg [22:08:04] Trying safe opengl mode 0 [22:08:04] bpp 24 libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: radeonsi libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 112 Current serial number in output stream: 113

a1batross commented 1 year ago

Looks like it's issue in your GPU drivers.

gittadarling commented 1 year ago

could be i think rather not ... i think i need a better so loader start.sh currently i have cat start.sh LD_LIBRARY_PATH=. ./xash3d -dev 5

[14:53:54] R_CollectRendererNames: can't load library libref_gles1.so: libref_gles1.so: cannot open shared object file: No such file or directory [14:53:54] R_CollectRendererNames: can't load library libref_gles2.so: libref_gles2.so: cannot open shared object file: No such file or directory [14:53:54] R_CollectRendererNames: can't load library libref_gl4es.so: libref_gl4es.so: cannot open shared object file: No such file or directory

what library files archives tarballz do i need to compile to get gles1 gles2 gl4es ? thkx i think missing libraries PS.everything else 3d just works as usuall lutris

nekonomicon commented 1 year ago

GLES renderers exists for embedded systems at least. Check waf --help anyway.

gittadarling commented 1 year ago

the current working directory content

ls -l total 62040 -rw-r--r-- 1 oem oem 1532 mrt 23 19:39 activities.txt -rw-rw-r-- 1 oem oem 960749 mrt 23 19:39 core.so -rw-rw-r-- 1 oem oem 658817 mrt 23 19:39 crashhandler.so drwxrwxr-x 14 oem oem 4096 mrt 23 19:39 cstrike -rw-rw-r-- 1 oem oem 306167 mrt 23 19:39 demoplayer.so -rw-rw-r-- 1 oem oem 2995362 mrt 23 19:39 engine_i486.so -rw-rw-r-- 1 oem oem 395639 mrt 23 19:39 filesystem_stdio.so -rwxrwxr-x 1 oem oem 107274 mrt 23 19:39 hlds_linux -rwxrwxr-x 1 oem oem 7778 mrt 23 19:39 hlds_run -rwxrwxr-x 1 oem oem 173713 mrt 23 19:39 hltv -rw-rw-r-- 1 oem oem 370070 mrt 23 19:39 icon-xash-material.ico -rwxr-xr-x 1 oem oem 73784 mrt 23 19:39 libfilesystem_stdio.so -rw-rw-r-- 1 oem oem 322152 mrt 23 19:39 libgcc_s.so.1 -rwxr-xr-x 1 oem oem 4279320 mrt 23 19:39 libmenu.so -rwxr-xr-x 1 oem oem 1355728 mrt 23 19:39 libref_gl.so -rwxr-xr-x 1 oem oem 1255292 mrt 23 19:39 libref_soft.so lrwxrwxrwx 1 oem oem 16 mrt 23 19:39 libSDL2.so -> libSDL2-2.0.so.0 -rw-rw-r-- 1 oem oem 3769939 mrt 23 19:39 libstdc++.so.6 -rw-rw-r-- 1 oem oem 76032 mrt 23 19:39 libsteam_api.so -rw-rw-r-- 1 oem oem 4383138 mrt 23 19:39 libsteam.so -rw-rw-r-- 1 oem oem 474299 mrt 23 19:39 libtier0.so -rwxr-xr-x 1 oem oem 407916 mrt 23 19:39 libvgui_support.so -rw-rw-r-- 1 oem oem 441221 mrt 23 19:39 libvstdlib.so -rwxr-xr-x 1 oem oem 7252260 mrt 23 19:39 libxash.so drwxrwxr-x 2 oem oem 4096 mrt 23 19:39 linux64 -rwxr-xr-x 1 oem oem 200104 mrt 23 19:39 mdldec -rw-rw-r-- 1 oem oem 951038 mrt 23 19:39 proxy.so -rwxrwxr-x 1 oem oem 34 mrt 23 19:39 start.sh drwxrwxr-x 5 oem oem 4096 mrt 23 19:39 steamapps -rw-rw-r-- 1 oem oem 29456421 mrt 23 19:39 steamclient.so drwxrwxr-x 16 oem oem 4096 mrt 23 19:39 valve -rw-rw-r-- 1 oem oem 900553 mrt 23 19:39 vgui2.so -rw-rw-r-- 1 oem oem 976013 mrt 23 19:39 vgui.so -rw-rw-r-- 1 oem oem 54955 mrt 23 19:39 voice_miles.so -rw-rw-r-- 1 oem oem 664256 mrt 23 19:39 voice_silk.so -rw-rw-r-- 1 oem oem 135312 mrt 23 19:39 voice_speex.so -rwxr-xr-x 1 oem oem 29244 mrt 23 19:39 xash3d -rw-rw-r-- 1 oem oem 312 mrt 23 19:39 Xash3D_020.desktop -rwxrwxr-x 1 oem oem 1329 mrt 24 14:52 xash3d.sh

im guess i need to figure out to load the soft renderer in start.sh

gittadarling commented 1 year ago

with dll-loader approach

./startdll.sh [19:15:53] Console initialized. [19:15:53] /home/oem/.xash3d is working directory now [19:15:53] FS_Init: done [19:15:53] FS_LoadGameInfo( valve ) [19:15:53] FS_Rescan( Half-Life ) [19:15:53] FS_AddGameHierarchy: 1 valve valve [19:15:53] Adding wadfile: valve/cached.wad (2 files) [19:15:53] Adding wadfile: valve/decals.wad (222 files) [19:15:53] Adding wadfile: valve/fonts.wad (3 files) [19:15:53] Adding wadfile: valve/gfx.wad (7 files) [19:15:53] Adding wadfile: valve/halflife.wad (3116 files) [19:15:53] Adding wadfile: valve/liquids.wad (32 files) [19:15:53] Adding wadfile: valve/spraypaint.wad (14 files) [19:15:53] Adding wadfile: valve/xeno.wad (264 files) [19:15:53] InitDecals: 222 decals [19:15:53] Joystick: SDL GameController API [19:15:53] IN_TouchInit() [19:15:53] Base networking initialized. [19:15:53] Cannot load xashcomm.lst [19:15:53] SV_LoadProgs: initailized extended EntityAPI ver. 140 [19:15:53] Dll loaded for game "Half-Life" [19:15:53] SV: hull0, player_mins: -16 -16 -36, player_maxs: 16 16 36 [19:15:53] SV: hull1, player_mins: -16 -16 -18, player_maxs: 16 16 18 [19:15:53] SV: hull2, player_mins: 0 0 0, player_maxs: 0 0 0 [19:15:53] Error: Cmd_AddCommand: log already defined [19:15:53] execing skill.cfg [19:15:53] couldn't exec video.cfg [19:15:53] Found renderer gl: OpenGL [19:15:53] R_CollectRendererNames: can't load library libref_gles1.so: libref_gles1.so: cannot open shared object file: No such file or directory [19:15:53] R_CollectRendererNames: can't load library libref_gles2.so: libref_gles2.so: cannot open shared object file: No such file or directory [19:15:53] R_CollectRendererNames: can't load library libref_gl4es.so: libref_gl4es.so: cannot open shared object file: No such file or directory [19:15:53] Found renderer soft: Software [19:15:53] Loading renderer: gl -> libref_gl.so [19:15:53] couldn't exec opengl.cfg [19:15:53] Trying safe opengl mode 0 [19:15:53] bpp 24 libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: radeonsi libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 112 Current serial number in output stream: 113

witch is atrtdll.sh cat startdll.sh LD_LIBRARY_PATH=~/.xash3d ./xash3d -dev 5 -vguilib vgui.so -clientlib valve/cl_dlls/client.so -dll dlls/hl.so

mittorn commented 1 year ago
libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 112
Current serial number in output stream: 113

just fix this in your system. Maybe use zink (gallium driver) if your system somehow only support vulkan

mihail2245 commented 1 year ago

you planned continue work on engine or no??

a1batross commented 1 year ago

Fix your GPU drivers yourself or use ref_soft.