Troubleshooting/zh: Difference between revisions

From DDraceNetwork
(Created page with "如果你想要找到一个更好的解决方案,可以访问GFX故障排除页面,其中更详细的分析了各种图像问题并且给出了更多的细节。")
(Created page with "== ALT + TAB 问题 ==")
Line 54: Line 54:
''<small>提示:在有些系统上会有副作用。比如,在Windows系统中它可能会让Windows桌面合成器保持运行,并降低游戏的fps(帧率),并且在更坏的情况中提高输入延迟。</small>''
''<small>提示:在有些系统上会有副作用。比如,在Windows系统中它可能会让Windows桌面合成器保持运行,并降低游戏的fps(帧率),并且在更坏的情况中提高输入延迟。</small>''


<div lang="en" dir="ltr" class="mw-content-ltr">
<pre>
<pre>
Inside the client go on Settings -> Graphics
在客户端内找到设置->图像
Click on "Fullscreen" (or whatever you last selected) and choose "Windowed Fullscreen" instead
点击“全屏”(或是你的当前窗口设置选项)并且选择“窗口化全屏”
</pre>
</pre>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 17:12, 27 May 2023

這篇文章旨在幫助你解決在DDNet中遇到的問題。

對於開發者進行故障排除的實用信息有:

  1. 崩潰/警告日誌文件
  2. 硬體信息(GPU,CPU,內存,運行系統(比如Windows, Linux等等))-所使用的GPU可以在客戶端啟動後按下f1打開控制台來查看,會以紫色文本顯示。
  3. 問題產生前的步驟


崩潰

崩潰就是預料外的中斷,或者說遊戲突然關閉退出,通常由一個DDNet代碼中的bug,或是其他軟體引起。

經驗法則是,如果你能重現崩潰,就嘗試與開發人員聯繫。

外部連結或者在GitHub中創建一條問題。

自Windows系統的DDNet 16起,客戶端會創建一份崩潰日誌或是警告日誌,可以在配置路徑的"dumps"目錄下找到。

如果客戶端在啟動時就發生了崩潰,通常會是圖像驅動出了問題(見GFX故障排除),或是殺毒軟體誤殺(上網搜索如何將特定應用,即DDNet,設置為受信任的程序)。

提示:不是所有的崩潰/bug都時由DDNet代碼引起的,你應該始終保持系統和驅動程序是最新狀態。只有可復現的或是有崩潰日誌的bug,才標誌著DDNet的代碼中出現了一些問題,並且可以被輕鬆修復。


圖像問題

如果你發現畫面有卡頓,並且開發人員可以復現這些問題,那麼大概率是你的圖像驅動版本太老,含有bug,或是被硬體廠商所拋棄。

你仍然可以嘗試以下方法:

如果你有一個不是太老的GPU(顯卡),嘗試去更新一下它的驅動程序。以下所有方案都只是有副作用的補救措施(可能會使畫面變得更差)。

在客户端内找到设置->图像
在渲染设置中选择OpenGL
重启游戏

如果你想要找到一個更好的解決方案,可以訪問GFX故障排除頁面,其中更詳細的分析了各種圖像問題並且給出了更多的細節信息。


ALT + TAB 問題

最大的可能是圖像驅動的問題。不過你仍然可以使用窗口化全屏來嘗試解決這個問題。

這是一種特殊的全屏模式,並使遊戲窗口如同全屏時一樣運作,儘管它不是。

提示:在有些系統上會有副作用。比如,在Windows系統中它可能會讓Windows桌面合成器保持運行,並降低遊戲的fps(幀率),並且在更壞的情況中提高輸入延遲。

在客户端内找到设置->图像
点击“全屏”(或是你的当前窗口设置选项)并且选择“窗口化全屏”

(if you experience bugs changing this mode, just restart the game once and make sure "Windowed Fullscreen" is still selected)


Broken streaming

When you experience a bug with streaming DDNet over discord, you are most likely using a nvidia graphics card.

A user already reached out to discord, and they told him to:

If you have problems finding DDNet in nvidia shadow play.

Make sure you actually use the nvidia card to play DDNet (press F1 after a client start and see the purple text saying something like "gfx [...] Vendor:", it should mention nvidia)

Under Windows you can usually select the preferred graphics card under Windows' graphics options, or directly in the control panel of your graphics driver (e.g. nvidia control panel)

Network / Connection problems

DDNet and Teeworlds network code requires a stable connection with as less ping jitter as possible.

If you experience problems make sure to:

  1. Use a LAN cable instead of Wifi
  2. Turn off other applications on your computer and other computers in your network to tell if they are the source of the problem
  3. Prefer DSL/Fiber over cable internet
  4. Make sure it is not a DoS/DDoS attack on the server (did it ever work before, do other servers work fine?)
  5. Try ping -t ger2.ddnet.org in cmd.exe for a few minutes, stop it with ctrl-c, and check the if the ping jumps there too or you have packet loss
  6. Try to trace route the connection to the DDNet server (using tracert ger2.ddnet.org in cmd.exe) and see if there is bad routing (ask your ISP to fix it)