Forum

> > CS2D > General > I tried again to launch CS2D under Linux
Forums overviewCS2D overviewGeneral overviewLog in to reply

English I tried again to launch CS2D under Linux

10 replies
To the start Previous 1 Next To the start

old I tried again to launch CS2D under Linux

sac op me
User Off Offline

Quote
I recently tested some scenarios of running CS2D on Linux.
I am using Arch Linux with a hybrid GPU laptop(Intel UHD630 and Nvidia GTX 1050Ti). When I try to open CS2D, it prompts "terminated by signal SIGSEGV (Address boundary error)" which means that at least on my setup, CS2D cannot be launched natively.
In addition to this, I tried to set up an Ubuntu environment in Docker and LXC containers with the following results:
1. If I do not specify the --driver, meaning using CPU rendering, CS2D can be launched with about 30-40 FPS. (Can't guarantee that CS2D will launch every time the same environment is set up. XD)(Maybe debian image can do it.)
2. If I specify the --driver using UHD630, it will prompt a Segmentation fault.
The story doesn't end there. I also used QEMU to create a true virtualized environment, enabling VirtIO GPU OpenGL 3D acceleration and a Spice server. The result is that both Ubuntu and Windows (I did GPU passthrough, which is quite complicated) can play normally with GPU acceleration, and the frame rate is stable at 62 FPS.
Therefore, I suspect that the inability to launch CS2D is largely related to the GPU driver, but this is as far as my analysis can go.
IMG:https://i.ibb.co/VYffJJX/20241124-174835.png

old Re: I tried again to launch CS2D under Linux

sac op me
User Off Offline

Quote
user Gaios has written
Just download Windows version of CS2D and run it via Proton

This is indeed the best approach, but I still hold a "slim hope". It would be better if I could play the game natively without having to install Steam, since I don't really need Steam.

user Ranu has written
Are you using Acer Nitro 5? maybe 515-xx?

Not exactly.it's a special edition laptop,HP Pavilion Gaming Laptop 15-cx0xxx

old Re: I tried again to launch CS2D under Linux

Gaios
Reviewer Off Offline

Quote
@user Hajt: I believe Proton is designed to work exclusively with Steam. I'm not sure if it's possible to run a game with Proton as a standalone solution. Wine could be an alternative, but Proton offers a significantly better experience.

old Re: I tried again to launch CS2D under Linux

Lernaean Hydra
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) 
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
(No debugging symbols found in ./CS2D)


(gdb) r
Starting program: /home/user/下载/cs2d_1014_linux/CS2D 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xf7d2e36a in FT_DivFix () from /usr/lib32/libfreetype.so.6


(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/user/下载/cs2d_1014_linux/CS2D 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xf7655321 in __glDispatchCheckMultithreaded () from /usr/lib32/libGLdispatch.so.0


(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/user/下载/cs2d_1014_linux/CS2D 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xf7e926f5 in _XSend () from /usr/lib32/libX11.so.6


(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/user/下载/cs2d_1014_linux/CS2D 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[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.

After using gdb debugging CS2D program file, I just found all you need just download following files from Ubuntu package search server and set "LD_LIBRARY_PATH" to the downloaded files saving path (include steam library if you don't have) before lunch CS2D:
libX11.so.6 libGLdispatch.so.0 libfreetype.so.6

Then it works fine.

I've updated these changes in AUR package counter-strike-2d, so you can install and run this game without breaking your system.
edited 3×, last 22.01.25 02:31:24 am
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview