Open David-Durst opened 11 months ago
if you add the workshop tools, does it then prompt an option?
Also true on my PC. There is no option to choose, playing the game opens cs2 directly instead (with or without workshop tools)
Adding the workshop tools does not fix the problem. The same behavior occurs: launching CS2 directly without a launch option to select CSGO. My steps were:
Attempting to run CSGO directly from the command line also fails. I tried i386 bash ./csgo.sh -steam -nojoy -windowed
from https://github.com/ValveSoftware/csgo-osx-linux/issues/3097. This yielded the below error:
$ i386 bash ./csgo.sh -steam -nojoy -windowed
FATAL: It appears CS:GO was not launched within the Steam for Linux scout runtime environment.
FATAL: Please consult documentation to ensure correct configuration.
If we locate what tells steam that there's multiple launch options in the windows build, it may be possible to modify the linux build to have the launch options. I tried to look into it but no luck so far.
I tried diffing the linux build and windows build
${LIBRARY_PATH}/steamapps/appmanifest_730.acf
looked promising, but steamdb tells me it isn't it
I was able to launch csgo.sh
with the scout runtime by adding it to steam as a non-steam game.
Make sure you add -steam
or it will launch in insecure mode:
The same for me. I have Mac on M1 and neither CS GO nor CS 2 work. That was so stupid to force upgrade Mac users if CS2 is not working there. Very very stupid. Allow us to play CS GO back!
I was able to launch
csgo.sh
with the scout runtime by adding it to steam as a non-steam game.Make sure you add
-steam
or it will launch in insecure mode:
Can you provide a little more instruction on what you did? I tried to add it as a non-steam game, and turned on compatibility GE-Proton8. And run it that way and nothing worked.
This is my script: that I derived from the other links.
declare -gr CSGO_LAUNCHER_PATH="/home/${USER}/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.exe"
#steamapps/common/Counter-Strike Global Offensive/csgo.exe
# Game arguments
declare -gr CSGO_ARGS="-steam -console -novid -nojoy -tickrate 128 +fps_max 0"
function launch_csgo() {
if [ -x "${CSGO_LAUNCHER_PATH}" ]; then
export STEAM_RUNTIME=1
i386 "${CSGO_LAUNCHER_PATH}" ${CSGO_ARGS}
else
echo "CSGO launcher '${CSGO_LAUNCHER_PATH}' not found."
exit 1
fi
}
launch_csgo
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3291#issuecomment-1741600249
As mentioned above, you have to use the scout runtime(Steam Linux Runtime 1.0(scout)). After it "updates" to the linux build, set the target as "${LIBRARY_PATH}/steamapps/common/Counter-Strike Global Offensive/csgo.sh"
.
"${LIBRARY_PATH}/steamapps/common/Counter-Strike Global Offensive/csgo.sh"
.
Can you please provide more instruction? what do you mean by "target"? Do you mean here? (where -steam
is?)
I don't have a csgo.sh file under steamapps/common/Counter-Strike Global Offensive. As I said above, I only have csgo.exe.
local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.exe
Can you please paste your script? Are you saving the csgo.sh under that directory above?
Do I need to install the runtime? According to the github: https://github.com/ValveSoftware/steam-runtime
I appreciate your help, but you really are not that clear with how you made it work. :/ There are so many variables to playing a game on Linux, it would be help if you were more explicit.
So this is what I have setup:
This is the error I get (in terminal) when I try to run it:
[S_API FAIL] SteamAPI_Init() failed; no appID found.
Either launch the game from Steam, or put the file steam_appid.txt containing the correct appID in your game folder.
pid 63332 != 63331, skipping destruction (fork without exec?)
This command works for me (just running from terminal):
/home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/home/$USER/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam"
AFTER installing scout steam linux runtime per 25pwn, and csgo_demo_viewer per OP.
I expect a different solution is needed if running csgo with proton as opposed to native but dunno.
This command works for me (just running from terminal):
/home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/home/$USER/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam"
AFTER installing scout steam linux runtime per 25pwn, and csgo_demo_viewer per OP. I expect a different solution is needed if running csgo with proton as opposed to native but dunno.
Thank you for a more explicit response. I am not sure why I don't have a csgo.sh
... Did you make that script or no? Are you 100% sure it's not csgo.exe
? I only have csgo.exe... I downloaded csgo_demo_viewer-1.38.7.9
@whompyjaw I think the .exe must mean you are running the windows version of csgo through proton rather than the native linux version. I did not make the .sh it is from valve, there is a csgo_linux64 executable that the script calls. Maybe remove proton under Library > Counter-Strike 2 > Properties > Compatibility and then Properties > Installed Files > Verify integrity of game files?
@apprehensivebob Ha! Ya... That was it (turning off Proton). Thank you so much! It was driving me crazy, haha. I couldn't make it work as a non-steam game, but idc. Terminal is easier.
So if anybody comes here to make this work, here is the summary:
/home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/home/$USER/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam"
/home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier
and you can then re-run the terminal command above and that should work.If none of that works above, unfortunately, I am not sure what else you would have to do. I am using (Arch with KDE Plasma). Please ask if you need more info!
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3291#issuecomment-1741935968
I guess that works but it could be a lot simpler. Here's what I did:
csgo_demo_viewer
beta"${LIBRARY_PATH}/steamapps/common/Counter-Strike Global Offensive/csgo.sh"
as a non-steam game
-steam
to launch options and force the use of the scout runtime(Steam Linux Runtime 1.0(scout))
Having a couple issues here
1) Launching with the csgo.sh as a non-steam app does not work
2) Launching with /home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/home/$USER/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam" "-vulkan" "-novid" "-nojoy"
does work, however it gives me audio issues. Example video here: https://streamable.com/94oq33
You can also see the game hitching which never happened in CS:GO nor CS2. No idea what could be happening but I'm going to try running my personal backup of CS:GO to test if it is an issue with csgo_legacy or just with running the game outside of steam for some reason.
EDIT: Running my backup of CS:GO, both inside (which for some reason now works, while the official csgo_legacy branch will not) and outside of steam, I still get the audio errors.
EDIT 2: Running the official csgo.sh as a non-steam app now magically works. Retains audio fuckery.
FINAL EDIT: turns out the bass boost is a known thing. I wanna say valve pls fix but I doubt it's gonna happen. Solution was: snd_mixahead 0.1
Now that csgo legacy is an official option, this really ought to be fixed.
This is still an issue after the release of csgo_legacy
. CS2 launches automatically when pressing Play in the library, with no option to choose CSGO.
Additionally, under 'Launch Options' in properties, there is no "Ask when starting game" setting like there is on other games with multiple launch options.
CS2: Other game:
they really should of just made CS2 Another title with its own steam page. this is just nonsense. I've tried looking for fixes for this for ages, and worst of all i can't actually launch CS2 due to my lack of Vulkan support. guess i''m stuck with CS Source until they add back the ability to use the launch options menu. which it seems to me its just gone completely.
they really should of just made CS2 Another title with its own steam page. this is just nonsense. I've tried looking for fixes for this for ages, and worst of all i can't actually launch CS2 due to my lack of Vulkan support. guess i''m stuck with CS Source until they add back the ability to use the launch options menu. which it seems to me its just gone completely.
There is a temporary fix for the time being by 25pwn earlier in this discussion. I do agree though, CS2 needs to be a separate game. I'm very frustrated with needing to have both games installed just to play Global Offensive. Global Offensive's server browser being broken is also unacceptable.
Yeah, when I'm trying to launch with compatibility options proton 8
it shows launch option, where I can select CSGO
, but it won't start.
Linux version of the game has no option for choosing CSGO
they really should of just made CS2 Another title with its own steam page
Yeah, and just link inventories for the most part.
The way they gave CSGO legacy a support period and then proceeded to never fix a bug that made it impossible to launch is wild
The way they gave CSGO legacy a support period and then proceeded to never fix a bug that made it impossible to launch is wild
Server browser is still broken as well, which is the only way to conveniently find a multiplayer game since matchmaking is offline. Would be nice if the game wasn't intertwined with Steam/DRM. Valve is never going to let the game be free though.
You could have simply left it alone, but they broke the fonts, they broke the launch from the Steam launcher for those who do not have the Vulkan API, and they broke the launch again by deleting libpng12, then they broke the launch again in this described case.
All these breakdowns do not happen on their own, they are done on purpose. It's annoying.
Is the solution still working? Not working for me, sadly :( I am on debian and none of the above described path seems to exists, they have made some changes and I can not find /home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier
instead for me it's now /root/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper
, inside there I can see run-in-sniper
and on doing what @JustASpeedrunner suggested, it gaves me an error :
cd /root/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper &&
./run-in-sniper -- "/$USER/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam" "-vulkan" "-novid" "-nojoy"
x86_64-linux-gnu-capsule-capture-libs: warning: we are assuming "_el_fn_sh_complete" to be private, but it's just a guess
i386-linux-gnu-capsule-capture-libs: warning: we are assuming "_el_fn_sh_complete" to be private, but it's just a guess
pressure-vessel-wrap[333243]: N: Not replacing "/etc/vulkan/explicit_layer.d" with tmpfs: Path "/etc" is reserved by the container framework
pressure-vessel-wrap[333243]: N: Not replacing "/etc/vulkan/implicit_layer.d" with tmpfs: Path "/etc" is reserved by the container framework
setlocale "en_US.UTF-8": No such file or directory
pressure-vessel-locale-gen: Missing locale en_US.UTF-8
pressure-vessel-locale-gen: Generating locale en_US.UTF-8...
pressure-vessel-locale-gen: Generated locale en_US.UTF-8 successfully
pressure-vessel-adverb[333324]: W: Container startup will be faster if missing locales are created at OS level
FATAL: It appears CS:GO was not launched within the Steam for Linux scout runtime environment.
FATAL: Please consult documentation to ensure correct configuration.
The solution @25pwn suggested, I can't seem to browse to hidden folders using the file explorer so I tried manually inserting the commands as shown below but it will not launch the game
And for some weird reason github won't let me see the images uploaded by @25pwn and return a 404 when trying to open it in new tab to enlarge :angry:
Please HELP !!
Thanks and Regards,
The run-in-scout
folder don't even exist anymore, what's wrong with valve :angry:
Okay I got the scout folder but it gives me below issue:
/root/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/root/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam" "-vulkan" "-novid" "-nojoy"
run-in-scout-on-soldier: Developer script, not for production use
run-in-scout-on-soldier: This convenience script assumes SteamLinuxRuntime and SteamLinuxRuntime_soldier are in the same directory
This seem to work but it says, I am running in insecure mode and VAC cannot be verified :thinking: , also not able to do full screen
steam & cd ~/.steam/steam/steamapps/common/"Counter-Strike Global Offensive"/
~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ./csgo.sh
Is the solution still working? Not working for me, sadly :( I am on debian and none of the above described path seems to exists, they have made some changes and I can not find
/home/$USER/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier
instead for me it's now/root/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper
, inside there I can seerun-in-sniper
and on doing what @JustASpeedrunner suggested, it gaves me an error :cd /root/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper && ./run-in-sniper -- "/$USER/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam" "-vulkan" "-novid" "-nojoy" x86_64-linux-gnu-capsule-capture-libs: warning: we are assuming "_el_fn_sh_complete" to be private, but it's just a guess i386-linux-gnu-capsule-capture-libs: warning: we are assuming "_el_fn_sh_complete" to be private, but it's just a guess pressure-vessel-wrap[333243]: N: Not replacing "/etc/vulkan/explicit_layer.d" with tmpfs: Path "/etc" is reserved by the container framework pressure-vessel-wrap[333243]: N: Not replacing "/etc/vulkan/implicit_layer.d" with tmpfs: Path "/etc" is reserved by the container framework setlocale "en_US.UTF-8": No such file or directory pressure-vessel-locale-gen: Missing locale en_US.UTF-8 pressure-vessel-locale-gen: Generating locale en_US.UTF-8... pressure-vessel-locale-gen: Generated locale en_US.UTF-8 successfully pressure-vessel-adverb[333324]: W: Container startup will be faster if missing locales are created at OS level FATAL: It appears CS:GO was not launched within the Steam for Linux scout runtime environment. FATAL: Please consult documentation to ensure correct configuration.
The solution @25pwn suggested, I can't seem to browse to hidden folders using the file explorer so I tried manually inserting the commands as shown below but it will not launch the game
And for some weird reason github won't let me see the images uploaded by @25pwn and return a 404 when trying to open it in new tab to enlarge 😠
Please HELP !!
I have not tried this solution in awhile, but assuming it does still work, here are some things you can try:
You can find the folder that CS is installed in by right clicking the game in your steam library, going to "manage", and going to "open game folder" or whatever it is called, that should help you find the folder paths you need. Keep in mind CSGO is installed under Counter Strike Global Offensive > csgo and CS2 is installed under Counter Strike Global Offensive > game
I did not need to follow anything that JustASpeedrunner did to get this working, just 25pwn's tutorial.
It does not appear that you have anything in /root/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper, I would stick with what folder you get by right clicking the game in your library and clicking "open game folder", which should be in your home folder. This is where steam installs things by default. It is not recommended to install games and stuff in your root folder. Home folder paths usually start with ~/
Under "properties" for csgo.sh, in the box labeled "start in", you put an incorrect folder, that path should be to the same folder that csgo.sh is located in, in the box above it, just remove the /csgo.sh at the end
Make sure you're using steam runtime 1.0 to run csgo.sh under force compatibility tool under properties for csgo.sh, if you dont have steam runtime 1.0, you can download it in your library by changing your game library to view games+tools+software instead of just games
Let me know if any of this helps! And sorry for bad typing, I'm at work on a phone right now and viewing everything is incredibly difficult
try check file (Your installation paths for the game and Steam may be different at the beginning.)
/home/$USER/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/libpng12.so.0
If not found, copy library from
/home/$USER/.steam/steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpng12.so.0.46.0
I don’t know if this is relevant now, but I used to detect this under the debugger.
openat(AT_FDCWD, "/home/dron/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "/home/dron/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 59
newfstatat(59, "", {st_mode=S_IFREG|0644, st_size=161263, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 161263, PROT_READ, MAP_PRIVATE, 59, 0) = 0x7f5103134000
close(59) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "/lib/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "/usr/lib/libpng12.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
Checking the cache did not help restore the files and I did it manually.
Right now I can't verify this. I've deleted the game for now.
Thanks @eightyninetytwo , I realized it was indeed an issue with my path, I was setting up /root/.steam...`` meanwhile the actual files were located at
/root/.local/.steam...```, works fine now.
Is it not possible to play community servers anymore? Whenever I try to open the community server option, it asks to update the client/game
Thanks and Regards,
Thanks @eightyninetytwo , I realized it was indeed an issue with my path, I was setting up
/root/.steam...
meanwhile the actual files were located at ``/root/.local/.steam...```, works fine now. Is it not possible to play community servers anymore? Whenever I try to open the community server option, it asks to update the client/gameThanks and Regards,
You'd have to find a community server running the same version of CSGO as you, probably listed online somewhere. The server browser built into CSGO is basically dysfunctional as it displays both CSGO and CS2 servers (which you'll be unable to join since you're on CSGO). Valve really doesn't want you to play CSGO. One solution I've been enjoying is Classic Counter (look it up YouTube). It's a private community on Discord, has an application process, and it is relatively small, but Valve doesn't seem to care about supporting this game anymore, so options like that might be all we have for the future of CSGO
HI @eightyninetytwo , Thanks for the info, so the classic counter comes with it's own binary and executable ? Is it available for linux or just windows, from what I have seen on youtube it seems to be a windows only thing. And running a 3rd party executable, is it safe ?
Thanks and Regards,
HI @eightyninetytwo , Thanks for the info, so the classic counter comes with it's own binary and executable ? Is it available for linux or just windows, from what I have seen on youtube it seems to be a windows only thing. And running a 3rd party executable, is it safe ?
Thanks and Regards,
They use the 2016 CSGO client. There is only a Windows version, but it runs perfectly through Proton on Steam
The
run-in-scout
folder don't even exist anymore, what's wrong with valve 😠Okay I got the scout folder but it gives me below issue:
/root/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/root/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam" "-vulkan" "-novid" "-nojoy" run-in-scout-on-soldier: Developer script, not for production use run-in-scout-on-soldier: This convenience script assumes SteamLinuxRuntime and SteamLinuxRuntime_soldier are in the same directory
Why are you using the root user for this? It's a bad idea to login as root. Steam and its games should only be run as a regular user.
Kali Linux is not recommended to be used as a general purpose Linux desktop. It's a distribution specifically meant for penetration testing. Use a distro like Linux Mint for gaming. Both of these are why you're running into problems.
The
run-in-scout
folder don't even exist anymore, what's wrong with valve 😠 Okay I got the scout folder but it gives me below issue:/root/.steam/steam/steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- "/root/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh" "-steam" "-vulkan" "-novid" "-nojoy" run-in-scout-on-soldier: Developer script, not for production use run-in-scout-on-soldier: This convenience script assumes SteamLinuxRuntime and SteamLinuxRuntime_soldier are in the same directory
Why are you using the root user for this? It's a bad idea to login as root. Steam and its games should only be run as a regular user.
Kali Linux is not recommended to be used as a general purpose Linux desktop. It's a distribution specifically meant for penetration testing. Use a distro like Linux Mint for gaming. Both of these are why you're running into problems.
lets move away from Ubuntu and debian and instead use something like Manjaro or Garuda. both are arch on easy mode (Manjaro if you don't touch anything from the AUR). they both have essentially the same easy to use driver and kernel manager and they are excellent performers,
Your system information
Steam
->Help
->System Information
) in a gist: https://gist.github.com/David-Durst/db4354a00d5d6dd26c3eba358462e4ccPlease describe your issue in as much detail as possible:
I'm not able to launch the CSGO demo viewer on Linux. I can launch it on Windows.
What I expect to happen:
What happens:
What debugging steps I tried:
Steps for reproducing this issue: