Loading...
  OR  Zero-K Name:    Password:   

Stop SteamAPI calls?

5 posts, 294 views
Post comment
Filter:    Player:  
sort

4 years ago
Is there any way to start Zero-K in a way where it doesn't attempt to call the SteamAPI like the following?

quote:

[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 steamclien
t.so.
Zero-K.exe Information: 0 : Chobby closed connection



Is there the way to trap SteamAPI calls for every application that attempts to call the SteamAPI and force them to function?
+0 / -0


4 years ago
Surely, since ZK has a standalone install. Are you asking about running ZK without Steam (which seems fine) or hacking the Steam API itself (which doesn't)?
+0 / -0

4 years ago
When I run the standalone version with a terminal based evocation I can see the calls in the terminal. Yes, it starts fine. Yes, I can drop the output in the bit bucket. I just want to know if I can disable or null route those calls without configuring mandatory access control.
+0 / -0
4 years ago
You can start spring directly, bypassing the wrapper and all of the slow update checks it does before launching spring. I tend to do this to quickly recover after a crash and get back to rejoining a game, for example:

env DISPLAY=:0 SPRING_WRITEDIR=/home/user/Zero-K SPRING_ISOLATED=/home/user/Zero-K SPRING_DATADIR=/home/user/Zero-K:/home/user/Zero-K/engine/linux64/104.0.1-1435-g79d77ca/ /home/user/Zero-K/engine/linux64/104.0.1-1435-g79d77ca/spring --menu 'Chobby $VERSION'


...substituting your home directory for /home/user, and the current engine version for 104.0.1-1435-g79d77ca.

If you don't have a development version of Chobby available (most probably don't), you can replace 'Chobby $VERSION' with the Chobby version to use.

This command invocation was deduced by running strace to take a look at how the standalone wrapper was launching spring, and should be exactly equivalent (aside from the deliberate absence of SPRING_NOCOLOR=1, since I quite like having a color coded infolog).

Because the wrapper isn't used, the lobby will behave roughly like it does after the wrapper has crashed. For example, it won't automatically download new maps, game versions, or thumbnails; and it won't attempt to connect to steam or discord to update your statuses. It'll still download replays, though, and everything you've previously downloaded will continue to work fine.

There's probably a windows equivalent if you use windows, but I'm not sure of the specifics.
+3 / -0

4 years ago
to find the Chobby version used by the wrapper, you can use

grep "Chobby v" Zero-K/infolog.txt


as for now it gives

[f=-000001] [LuaMenuController::Reset] using menu archive "Chobby v1.8.2.2"


so the end of the command NZrankesainane suggested will be:

... --menu "Chobby v1.8.2.2"
+1 / -0