Skip to content

Commit

Permalink
update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 15, 2024
1 parent c3c0070 commit eab49f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ There is no VAC ban reported yet.

The binaries or executables of Sven Co-op are not signed with digital signatures thus no integrity check from VAC would be applied for them.

## FAQ

1. Why the game process hangs up / freeze occasionally for few seconds when playing on legacy / pirated version of GoldSrc game ?

Q: This is because Valve uses `gethostbyname` with an non-existing hostname to query maters servers. which is known to block the whole game loop for few seconds if the hostname is not available.

You can either add `-nomaster` to launch paramaters to prevent engine from querying invalid hostname or add `-steam` launch paramaters to force engine to use a valid master server source (which probably not gonna work on pirated game).

2. Why the game process hangs up for abount tens of seconds on exiting / on restarting ?

Q: This is because ThreadGuard.dll is waiting for Valve's network threads or similiar things to exit before actually exiting the game. See [ThreadGuard](https://github.com/hzqst/MetaHookSv#threadguard) for more details.

## One Click Installation

1. Download from [GitHub Release](https://github.com/hzqst/MetaHookSv/releases), then unzip it.
Expand Down
12 changes: 12 additions & 0 deletions READMECN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@

如果你实在不放心,那么请使用小号进行游戏,毕竟Sven Co-op是免费游戏。

## 常见问题

1. 为什么使用盗版/旧版引擎进行游戏时,游戏进程会周期性卡住几秒?

Q: 因为V社在引擎的主循环中使用了一个阻塞式API `gethostbyname` 来请求域名。该API在请求已失效的域名的时候就是会阻塞当前进程直到超时返回的,这是Windows的设定。

你可以通过在启动项中添加 `-nomaster``-steam` 来缓解该问题。( `-steam` 在某些NoSteam盗版版本上可能导致游戏无法启动)

2. 为什么游戏进程会在退出/重启时卡住很久 ?

Q: 因为 ThreadGuard.dll 会在游戏退出时强制等待 V社创建的网络线程退出,以防游戏意外崩溃。具体见 [ThreadGuard](https://github.com/hzqst/MetaHookSv#threadguard)

## 一键安装方式 (推荐)

1.[GitHub Release](https://github.com/hzqst/MetaHookSv/releases) 下载压缩包。(可利用GitHub的国内加速镜像加速下载),然后解压。
Expand Down

0 comments on commit eab49f1

Please sign in to comment.