Xash3D Engine on Raspberry Pi


249 posts   Page 10 of 10   1 ... 6, 7, 8, 9, 10
by ptitSeb » Tue Oct 18, 2016 8:51 am
Yes, that should have fixed it.

What is happening now? Because there is nothing special in the log now.
Also, don't forget to compile XashXT and copy the client.so lib...
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Tue Oct 18, 2016 10:48 am
client.so is in it's place. The output didn't change at all. There is still no window popping up. I googled
Code: Select all
"Please add "defaultmap" cvar with default map name to your server.cfg!"

and read that I should add "-dedicated" to my launch options. Still no changes. Then I edited "server.cfg" and added
Code: Select all
defaultmap "boot_camp"

Now the output looks quite different:
Code: Select all
pi@raspberrypi:~/Half-Life $ LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/glshim/lib:. ./xash3d -console -debug -dedicated

[10:38:02] . is working directory now
================================================================================
    (build 3224) started at Oct18 2016 [10:38.02]
================================================================================
dlopen("hl.so", RTLD_LAZY)=0x452e80, error=(null)
dlopen("hl.so", RTLD_LAZY)=0x452e80, error=(null)
[10:38:04] Dll loaded for mod Half-Life
[10:38:04] execing skill.cfg
[10:38:04] execing config.cfg
[10:38:04] execing server.cfg
[10:38:04] Server IP address: 127.0.1.1:27015
[10:38:04] Spawn Server: boot_camp
[10:38:04] server: GAME SKILL LEVEL:1
[10:38:04] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_sqknest.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/v_hgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_hgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/p_hgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/v_hgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_hgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/p_hgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^3Warning:^7 Can't find decal C1A4_SILO2B
[10:38:04] ^3Warning:^7 Can't find decal C1A4_SILO2B
[10:38:04] ^1Error:^7 Mod_ForName: models/w_sqknest.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_sqknest.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[10:38:04] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[10:38:04] SV_LoadFromFile: 0 entities inhibited
[10:38:05] 8 player server started


But still, no window is coming up.
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Tue Oct 18, 2016 2:41 pm
Don't put -dedicated that will activate the "dedicated server" and that's not what you want.
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Tue Oct 18, 2016 2:53 pm
Even without "-dedicated" the output is still the same :(
Code: Select all
pi@raspberrypi:~/Half-Life $ LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:. ./xash3d -console -debug
[14:51:59] . is working directory now
================================================================================
    (build 3224) started at Oct18 2016 [14:51.59]
================================================================================
dlopen("hl.so", RTLD_LAZY)=0x9b4e80, error=(null)
dlopen("hl.so", RTLD_LAZY)=0x9b4e80, error=(null)
[14:52:01] Dll loaded for mod Half-Life
[14:52:01] execing skill.cfg
[14:52:02] execing config.cfg
[14:52:02] execing server.cfg
[14:52:02] Server IP address: 127.0.1.1:27015
[14:52:02] Spawn Server: boot_camp
[14:52:02] server: GAME SKILL LEVEL:1
[14:52:02] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_sqknest.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/v_hgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_hgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/p_hgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/v_hgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_hgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/p_hgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^3Warning:^7 Can't find decal C1A4_SILO2B
[14:52:02] ^3Warning:^7 Can't find decal C1A4_SILO2B
[14:52:02] ^1Error:^7 Mod_ForName: models/w_sqknest.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/p_rpg.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_sqknest.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_shotgun.mdl couldn't load
[14:52:02] ^1Error:^7 Mod_ForName: models/w_9mmAR.mdl couldn't load
[14:52:02] SV_LoadFromFile: 0 entities inhibited
[14:52:02] 8 player server started
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Tue Oct 18, 2016 3:25 pm
I think there is an issue with your data.
I didn't have to do anything on my side when I used the windows steam version data (but I haven't tried with the linux steam version, which I assume you are using).
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Tue Oct 18, 2016 7:53 pm
The valve folder comes from the windows version. It should work, though. The same folder worked before on my Pi.

May there be an issue with sdl or glshim?
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Wed Oct 19, 2016 9:27 am
glshim I hust retested with latest version, and xash3d is working with it on my side.
But I don't have all those Warning and not found you have with my data (and I don't remember having a hl_386.so reference in it either).

SDL I don't know, just be sure to have compiled it with OpenGL support (and so probably without RPI support).
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Thu Jan 12, 2017 4:00 pm
I recompiled SDL2, but this time I used a different tutorial, which uses the version 2.0.5 instead of 2.0.3. http://choccyhobnob.com/tutorials/sdl2-2-0-5-on-raspberry-pi/

And Half-Life works again :D
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Fri Jan 13, 2017 1:45 pm
Glad it works now!
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Fri Jan 13, 2017 4:30 pm
For some reason the crowbar and other weapons aren't displayed in the game. Have you got any ideas on how to fix this?
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Fri Jan 13, 2017 4:41 pm
Edit your valve.cfg and try this:
Code: Select all
cl_lw "0"
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Fri Jan 13, 2017 11:30 pm
Thanks, it worked :) I noticed that the game segfaults every time the player dies.

The console output looks like this:
Code: Select all
pi@raspberrypi:~/Half-Life $ LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/glshim/lib:. ./xash3d -console -debug -nosound
LIBGL: Initialising gl4es
LIBGL: Batch mode enabled
LIBGL: v0.9.3 built on Jan 12 2017 15:23:57
LIBGL: framebuffer output enabled
LIBGL:loaded: libbcm_host.so
LIBGL:loaded: libvcos.so
LIBGL:loaded: libGLESv1_CM.so
LIBGL:loaded: libEGL.so
LIBGL: Extension GL_OES_framebuffer_object detected and used
LIBGL: Extension GL_OES_depth24 detected and used
LIBGL: Extension GL_OES_rgb8_rgba8 detected and used
LIBGL: Extension GL_EXT_texture_format_BGRA8888 detected
LIBGL: Max texture size: 2048
LIBGL: Texture Units: 4, Max lights: 8
LIBGL: Implementation Read is GL_RGBA/GL_UNSIGNED_BYTE
LIBGL: Current folder is:/home/pi/Half-Life
glXGetProcAddress: glXGetSwapIntervalMESA not found.
[23:24:54] . is working directory now
================================================================================
    (build 3224) started at Jan13 2017 [23:24.54]
================================================================================
[23:24:54] execing video.cfg
[23:24:54] execing opengl.cfg
glXGetProcAddress: glXGetSwapIntervalMESA not found.
[23:24:54] Set: [1280x800]
glX stub: glGetClipPlane
[23:24:55] Video: GLES_CM wrapper
glXGetProcAddress: glStencilOpSeparate not found.
glXGetProcAddress: glStencilFuncSeparate not found.
glGetError 0x500
glGetError 0x500
glGetError 0x500
glGetError 0x500
glGetError 0x500
dlopen("./libxashmenu.so", RTLD_LAZY)=0x1ba9de0, error=(null)
dlopen("./libxashmenu.so", RTLD_LAZY)=0x1ba9de0, error=(null)
[23:24:55] AVI: Not supported
[23:24:55] UI_SetColors: colors.lst not found
[23:24:55] UI_LoadBmpButtons: btns_main.bmp not found
[23:24:55] Audio: Disabled
CL_Init, game = Half-Life
dlopen("./client.so", RTLD_LAZY)=0x1bc4750, error=(null)
dlopen("./client.so", RTLD_LAZY)=0x1bc4750, error=(null)
[23:24:55] Mobility interface not found
[23:24:55] joystick not found -- driver not present

[23:24:55] execing valve.rc
[23:24:55] execing language.cfg
[23:24:55] execing autoexec.cfg
[23:24:55] execing violence.cfg
[23:24:55] execing config.cfg
[23:24:55] execing keyboard.cfg
[23:24:55] execing config.cfg
[23:24:55] execing keyboard.cfg
LIBGL: warning, gles_glBlendFuncSeparate is NULL
[23:24:58] Loading game from save/quick.sav...
CL_Init, game = Half-Life
dlopen("./hl.so", RTLD_LAZY)=0x1bc4ce0, error=(null)
dlopen("./hl.so", RTLD_LAZY)=0x1bc4ce0, error=(null)
[23:24:58] Dll loaded for mod Half-Life
[23:24:58] Server loaded
[23:24:58] Spawn Server: c1a2
[23:24:59] Loading game from save/c1a2.hl1...
[23:24:59] execing skill.cfg
[23:24:59] server: GAME SKILL LEVEL:1
[23:25:00] Game started
[23:25:00] Spooling demo header.
[23:25:01] Level loaded in 2.60 sec
[23:25:01] loading: models/scientist01.mdl
Segmentation fault
pi@raspberrypi:~/Half-Life $
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Mon Jan 16, 2017 9:42 am
Ah it crashes at reload then.

If you provide me with a BackTrace from debug, I can try to find a fix...

Or stop dying ;)
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by CockPitt » Wed Jan 18, 2017 6:48 pm
When I prepared Xash3D, XashXT and hlsdk I noticed that hl.so won't compile correctly. Here is the output:
http://pastebin.com/KNYHKqVM

Do I need to fix this before I can provide you a debug BacktTrace?

In the Makefile.rpi the SDL_PATH is the same as in the Pandora Makefile. But the directory doesn't even exist on my Pi. May this be the cause of this error?

Code: Select all
SDL_PATH := /media/sda1/sources/git/halflife


I believe '/media/sda1' refers to an external storage device.
Posts: 107
Joined: Tue Jun 02, 2015 1:29 pm
by ptitSeb » Thu Jan 19, 2017 11:43 am
That SDL path is indeed not good, and I'll try to fix that, but I don't think it's the cause of the issue (in the mean time, you can fix it localy and put the correct absolute path to that include folder).

The error is in the assembly, so maybe you had a disk full in the /tmp folder?
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by raysaaron » Mon Apr 17, 2017 1:23 pm
I tested this with the OpenGL Driver and the problem is mouse dos'nt work on menus and in game the mouse does not fit in.
Posts: 30
Joined: Sun Feb 12, 2017 4:20 am
by raysaaron » Tue Apr 18, 2017 1:01 pm
how to play counterstrike?
Posts: 30
Joined: Sun Feb 12, 2017 4:20 am
by ptitSeb » Tue Apr 18, 2017 3:23 pm
You need that one at least: https://github.com/FWGS/cs16-client
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by raysaaron » Wed Apr 19, 2017 10:51 am
In the Repo it genrates only libclient.so it dos'ent genrate hl_cs.so
Posts: 30
Joined: Sun Feb 12, 2017 4:20 am
by ptitSeb » Mon May 01, 2017 4:24 pm
This repo can generate both.

You generate the client in cl_dll sub-folder and server lib in dlls sub-folder
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by beaut » Sat May 20, 2017 2:33 am
ptitSeb wrote:This repo can generate both.

You generate the client in cl_dll sub-folder and server lib in dlls sub-folder


What is the command to generate the server dlls in cs16client?.
Code: Select all
make -f  /path/to/Microndk.mk

works in the cl_dll folder. But doesn't work anywhere else.

The hldsdk generates both, but is it possible to generate the server dlls for counter-strike?
Posts: 2
Joined: Sat May 20, 2017 2:31 am
by ptitSeb » Mon May 22, 2017 8:19 am
I used a cmake && make type of command IIRC.
Posts: 132
Joined: Tue May 19, 2015 2:49 pm
by beaut » Mon May 22, 2017 9:53 am
Strange. Maybe something has changed in the repo?.

Using "cmake ../" in cl_dlls/build only produces a libclient.so

Did you get the server dlls from? https://github.com/FWGS/regamelite
I've managed to get this compiled, and it allows you to create new games.


Granted trying to join a CS game (even an internet one). Seems to cause the entire X server to crash (I get taken back to the RPI's login). But I'm wondering if thats the fault of the experimental graphics drivers in the rpi3.
Posts: 2
Joined: Sat May 20, 2017 2:31 am
by sora03 » Mon Jun 19, 2017 11:27 am
can anobody post on how to compile xash3d or just a xash3d dedicated server for cs16client. The author of the cs16client does not want to port it on other platforms such as linux, windows etc. I just want to create a xash3d cs16 server on the pi so I can play with my android device with bots.
Posts: 60
Joined: Mon Dec 29, 2014 4:11 pm