FAQ/zh: Difference between revisions

From DDraceNetwork
("Update to new autogenerated doxygen doc location")
(Updating to match new version of source page)
Line 1: Line 1:
{{DISPLAYTITLE:常见问题解答}}
<languages/>
{{LangNavBox}}
<div lang="en" dir="ltr" class="mw-content-ltr">
以下是有关'''《DDraceNetwork》常见问题的解答'''。如果您想知道如何贡献DDraceNetwork Wiki,可以看看[[How to contribute/zh|此页面]]
Here you can find a collection of '''''frequently asked questions'''''. If you want to know how to contribute to this wiki, you can take a look at [[Special:MyLanguage/How to contribute|How to contribute]].
</div>


如果您在这里没有找到您想了解的问题和答案,可以前往官方[https://ddnet.org/discord Discord]或者中文社区的[https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=1Z7IhB&businessType=9&from=246610&biz=ka QQ频道]里提问。
<div lang="en" dir="ltr" class="mw-content-ltr">
If you don't find the answers you want here, you can go to the [https://ddnet.org/discord official Discord]
</div>


==技术相关问题==
===《DDNet》的配置文件,配置目录在哪?===


'''<u>Windows</u>'''<br />
<div lang="en" dir="ltr" class="mw-content-ltr">
以前:<code>%appdata%\Teeworlds</code><br />
== Technical Questions ==
目前:<code>%appdata%\DDNet</code>
</div>


'''<u>Linux</u>'''<br />
以前:<code>~/.teeworlds</code><br />
目前:<code>~/.local/share/ddnet</code>


'''<u>macOS</u>'''<br />
<div lang="en" dir="ltr" class="mw-content-ltr">
以前:<code>~/Library/Application Support/Teeworlds</code><br />
===Where is the DDNet config, config directory or save directory?===
目前:<code>~/Library/Application Support/DDNet</code>
</div>


<code>settings_ddnet.cfg</code>里,您可以找到配置文件和游戏设定。配置文件目录也可以当作数据目录,用来取代皮肤和其他文件夹,而无需修改客户端的数据目录。(它具有与数据目录相同的目录结构)
<div lang="en" dir="ltr" class="mw-content-ltr">
'''<u>Windows</u>'''
</div>


===为什么我的游戏皮肤,实体,自动执行等等的文件在更新之后被重置了?===
<div lang="en" dir="ltr" class="mw-content-ltr">
开发的时候,我们会定期替换、更新或删除某些文件。更新之后,我们在开发时所更改的文件都会将您的数据和二进制目录覆盖。为了确保您的个人修改不会丢失,请使用配置目录,它和客户端的数据目录有相同的目录结构。
Old: <code>%appdata%\Teeworlds</code>
</div>


===有没有关于《DDNet》的代码文件?===
<div lang="en" dir="ltr" class="mw-content-ltr">
您可以在 https://codedoc.ddnet.org/ 中找到自动生成的文件。另外,[[Resources#Blog Posts|某些博文]]可能会对您有所帮助。
New: <code>%appdata%\DDNet</code>
</div>


===“纹理文件的宽度无法被整除,或者高度无法被整除,这可能会导致显示错误”?===
<div lang="en" dir="ltr" class="mw-content-ltr">
游戏想给予您和图像设计者最佳的体验,所以它规定了图像的外观尺寸,让设计者可以在创作时保持一致性。而在《Teeworlds》中,网格地图都是由一个个16*16的小图像组成,所以图像的长宽都需要被16整除才能渲染成功,不然就会出现所谓“纹理/像素出血”的情况。您可自行搜索以了解更多。
'''<u>Linux</u>'''
</div>


===“服务器无响应”?===
<div lang="en" dir="ltr" class="mw-content-ltr">
服务器可能已关闭或无法从客户端访问,这可能是由于DoS攻击(拒绝服务攻击)。您可以稍后再尝试。
Old: <code>~/.teeworlds</code>
</div>


==显卡相关问题==
<div lang="en" dir="ltr" class="mw-content-ltr">
===打字的时候输入法不显示或者会黑屏怎么办?===
New: <code>~/.local/share/ddnet</code>
有两种方法:
</div>
#游戏默认使用CPU处理图像,您可以将游戏设置为使用独立显卡处理,或者;
#在设置,图像里选择窗口化。


===图形出错、黑屏、游戏崩溃怎么办?===
<div lang="en" dir="ltr" class="mw-content-ltr">
一般来说,某些问题,包括但不限于闪屏、黑屏、游戏崩溃等各式故障,都因显卡故障而生,有关于如何解决这些问题请阅[[GFX_Troubleshooting/zh|显卡故障排除]]。
'''<u>macOS</u>'''
</div>


==游玩相关问题==
<div lang="en" dir="ltr" class="mw-content-ltr">
===怎么只和自己的朋友一起玩?===
Old: <code>~/Library/Application Support/Teeworlds</code>
有几种方法:
</div>
#进入没有玩家的官方DDNet服务器,按Esc,然后发起投票,选择您想要的地图;或者在聊天栏中使用<code>/map</code>来换地图。然后和您的朋友在聊天栏中都输入<code>/team [数字1-63]”</code>加入队伍(请务必输入同一数字),然后输入<code>/lock</code>锁定团队。这样其他人仅可观看您游玩而不会进入干扰您,另外当您完成地图时,您将获得官方[[Ranks and Points/zh|排名与分数]]。
#使用公共服务托管公共服务器,例如Trashmap:https://trashmap.ddnet.org/ ,您可以上传并游玩任何您想要的地图,但完成地图后您不会获得任何官方排名与分数。
#自行创建[[LAN Server/zh|LAN服务器]],并设置为公共服务器。


===为什么我拉不同人的时候钩索力度不同?/强弱钩是什么?===
<div lang="en" dir="ltr" class="mw-content-ltr">
拉人的力度取决与您和对方的存活时间不同,相关的概念请阅[[Hook/zh#强钩/弱钩|强弱钩]]。
New: <code>~/Library/Application Support/DDNet</code>
</div>


===游玩途中我可以存档吗?===
<div lang="en" dir="ltr" class="mw-content-ltr">
可以,但前提是您处在队伍中或者在游玩单人图。您可输入<code>/save [密码]</code>进行存档,之后再输入<code>/load [密码]</code>进入之前的存档。倘若您忘记了密码或者没有设置密码,您可去配置目录里找名为ddnet-saves.txt的文件,它记录了您所有的存档代码。
Inside the <code>settings_ddnet.cfg</code> file will be your configurations/settings. The config directory can also be used as data directory to replace skins or other files, without modifying the client's data directory (Note: it has the same directory structure as the data directory)
</div>  


此外,您需要注意:在您载入存档时,队伍内所有玩家的ID都需要与存档时的保持完全一致,同时不能有任何队员触碰过起点线。每个存档只能被载入一次,如果还有继续存档的需求,请重复上述步骤来新建存档。


==设计相关问题==
<div lang="en" dir="ltr" class="mw-content-ltr">
===怎么制作地图或皮肤?===
===How to save and load a run?===
详情请看条目:[[Mapping/zh|地图制作]]和[[Skin Creation|皮肤制作]]。另外,[[Resources#Tutorials|某些教程]]可能会对您有所帮助。
</div>


===怎么将我所做的地图上传到官方服务器?===
<div lang="en" dir="ltr" class="mw-content-ltr">
倘若您想将您所做的地图上传到官方服务器,您所做的地图应当符合并遵守[https://forum.ddnet.org/viewtopic.php?f=104&t=722 地图制作守则]。当您认为您的地图符合所有要求,则可以在Discord的submit-maps频道中提交审核。
With /save you can save your run in Team and get a code.
</div>


===怎么让其他玩家看到我的皮肤?===
<div lang="en" dir="ltr" class="mw-content-ltr">
有两种方法可以让其他玩家查看您的自定义皮肤:
Inside the config directory there is a file called ddnet-saves.txt, it will contain the save codes.
#将皮肤发给别人让他也放进配置目录的皮肤文件夹中。
</div>
#将皮肤上传至官方皮肤数据库中,让所有玩家自动下载。


如果您对第二个选项感兴趣,您的皮肤必须首先满足以下要求,便于和数据库的其他皮肤保持一致:
<div lang="en" dir="ltr" class="mw-content-ltr">
*分辨率为256*128
The run can be restored again with /load "code" in the chat.
*和其他皮肤轮廓尺寸一致
</div>
*符合Tee的碰撞箱
*没有缺少需要的部分
*没有锐化或浮动像素
*没有与游戏图像风格过于冲突的效果
*没有冒犯性元素
*非过于精细或过于平淡
*非对现有皮肤的二次创作


如果您认为您的皮肤符合所有要求,则可以在Discord的submit-skins频道中提交审核。
<div lang="en" dir="ltr" class="mw-content-ltr">
Make sure that every player has the same name to load. You and your team members need to be in a team and not have touched the start line to load a save game. Each save game can only be loaded once, so repeat the above steps if you need to save again.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
===My game skin, entities, autoexec or any other file was overwritten by an update, why?===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
During development we regularly replace, update, or remove files. The updater will overwrite any changes made to the data and binary directories. To make sure that your personal modifications don't get lost use the config directory instead, it has the same directory structure as the "data"-directory that comes with the client.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
===The game warns me about images, whose width or height are not divisible by #number, which causes visual bugs, what does it mean?===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The game tries to give you and graphic designers the best experience. In order to archive that, it defines what the layout of its graphics should look like, so the artists can rely on consistency during their creative work.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
For example: In Teeworlds the tile maps are small 16x16 images inside a bigger image. In order to render these tile maps correctly the game needs the image width and height to be divisible by 16, otherwise it can not determine where to split the tilemap into smaller tiles, else something called "texture bleeding" occurs, which is quite common in texture atlasses.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can search the internet for more information about that.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== Is there any documentation about the DDraceNetwork code? ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
See [[Special:MyLanguage/Development|Development]].
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can find auto-generated docs from Doxygen here: https://codedoc.ddnet.org/
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
There are also some [[Special:MyLanguage/Resources#Blog Posts|blog posts]] that may help you.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== "The width of texture ... is not divisible by 16, or the height is not divisible by 16, which might cause visual bugs." ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The game wants to give you and the image designer the best possible experience, so it specifies the dimensions of the image's appearance so that the designer can be consistent in his creation. In Teeworlds, the grid map is made up of small 16*16 images, so the length and width of the image needs to be divisible by 16 in order to render successfully, otherwise there will be what is called "texture/pixel bleeding". You can search for yourself to learn more.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== "No answer from server yet."? ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
It is likely the server is down or not reachable from the client, probably due to DoS attacks.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can try again later.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== Problems related to the graphics renderer? ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Check out [[Special:MyLanguage/GFX Troubleshooting|GFX Troubleshooting]]
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Gameplay Related==
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
===How to play with my friends only?===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
There are multiple ways to achieve this:
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
# Join an empty official DDNet server, and vote any map you want in Escape -> Call Vote, or use "/map" in chat to search for a map. Join a team using "/team 23" in chat, you can /lock the team and /invite others to join it too. This means others can watch you play, and you get official ranks when you finish the map.
# Use a public service to host a public server, like Trashmap: https://trashmap.ddnet.org/ You can upload any map you want, but you won't get official ranks this way.
# Create a [[Special:MyLanguage/LAN Server|LAN Server]], and set it up to be public.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
===What's weak and strong hook?===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can find information about this at the [[Special:MyLanguage/Hook#Weak Hook - Strong Hook|Hook]] page.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
== Design Related ==
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== How to make a map or skin? ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
See [[Special:MyLanguage/Mapping|Mapping]], [[Special:MyLanguage/Skin creation|Skin creation]] and [[Special:MyLanguage/Resources|Resources]] in general.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== How do I upload my map to the official server? ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
If you want to upload your map to the official server, your map should comply with and follow the map creation guidelines. Once you think your map meets all the requirements, you can submit it for review in the submit-maps channel on Discord.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== How can I get other players to see the skin that I created? ===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
There are two ways to get other players to see your custom skin:
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
# Others manually add your skin to their game files by pasting it in the skins folder in the config directory.
# Your skin gets added to the official skin database and automatically downloaded for all other players.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
If you are interested in the second option, your skin must meet a set of requirements in order to keep consistency with other skins in the database and the game's style:
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
* Resolution is 256x128
* Outline sizes consistent with other skins
* Fits the tee hitbox well
* No missing, misaligned or cut off parts
* No sharp or floating pixels
* No effects that clash with the game's art style (blur, glow etc.)
* Not too detailed or too plain
* Not an edit of an existing skin
* No elements that could be considered offensive
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
If you think your skin meets all of them, send it to one of the Skin Database Crew on discord for evaluation.
</div>

Revision as of 19:06, 11 February 2023

Here you can find a collection of frequently asked questions. If you want to know how to contribute to this wiki, you can take a look at How to contribute.

If you don't find the answers you want here, you can go to the official Discord


Technical Questions


Where is the DDNet config, config directory or save directory?

Windows

Old: %appdata%\Teeworlds

New: %appdata%\DDNet

Linux

Old: ~/.teeworlds

New: ~/.local/share/ddnet

macOS

Old: ~/Library/Application Support/Teeworlds

New: ~/Library/Application Support/DDNet

Inside the settings_ddnet.cfg file will be your configurations/settings. The config directory can also be used as data directory to replace skins or other files, without modifying the client's data directory (Note: it has the same directory structure as the data directory)


How to save and load a run?

With /save you can save your run in Team and get a code.

Inside the config directory there is a file called ddnet-saves.txt, it will contain the save codes.

The run can be restored again with /load "code" in the chat.

Make sure that every player has the same name to load. You and your team members need to be in a team and not have touched the start line to load a save game. Each save game can only be loaded once, so repeat the above steps if you need to save again.


My game skin, entities, autoexec or any other file was overwritten by an update, why?

During development we regularly replace, update, or remove files. The updater will overwrite any changes made to the data and binary directories. To make sure that your personal modifications don't get lost use the config directory instead, it has the same directory structure as the "data"-directory that comes with the client.


The game warns me about images, whose width or height are not divisible by #number, which causes visual bugs, what does it mean?

The game tries to give you and graphic designers the best experience. In order to archive that, it defines what the layout of its graphics should look like, so the artists can rely on consistency during their creative work.

For example: In Teeworlds the tile maps are small 16x16 images inside a bigger image. In order to render these tile maps correctly the game needs the image width and height to be divisible by 16, otherwise it can not determine where to split the tilemap into smaller tiles, else something called "texture bleeding" occurs, which is quite common in texture atlasses.

You can search the internet for more information about that.


Is there any documentation about the DDraceNetwork code?

You can find auto-generated docs from Doxygen here: https://codedoc.ddnet.org/

There are also some blog posts that may help you.


"The width of texture ... is not divisible by 16, or the height is not divisible by 16, which might cause visual bugs."

The game wants to give you and the image designer the best possible experience, so it specifies the dimensions of the image's appearance so that the designer can be consistent in his creation. In Teeworlds, the grid map is made up of small 16*16 images, so the length and width of the image needs to be divisible by 16 in order to render successfully, otherwise there will be what is called "texture/pixel bleeding". You can search for yourself to learn more.


"No answer from server yet."?

It is likely the server is down or not reachable from the client, probably due to DoS attacks.

You can try again later.


Problems related to the graphics renderer?


Gameplay Related


How to play with my friends only?

There are multiple ways to achieve this:

  1. Join an empty official DDNet server, and vote any map you want in Escape -> Call Vote, or use "/map" in chat to search for a map. Join a team using "/team 23" in chat, you can /lock the team and /invite others to join it too. This means others can watch you play, and you get official ranks when you finish the map.
  2. Use a public service to host a public server, like Trashmap: https://trashmap.ddnet.org/ You can upload any map you want, but you won't get official ranks this way.
  3. Create a LAN Server, and set it up to be public.


What's weak and strong hook?

You can find information about this at the Hook page.


Design Related


How to make a map or skin?

See Mapping, Skin creation and Resources in general.


How do I upload my map to the official server?

If you want to upload your map to the official server, your map should comply with and follow the map creation guidelines. Once you think your map meets all the requirements, you can submit it for review in the submit-maps channel on Discord.


How can I get other players to see the skin that I created?

There are two ways to get other players to see your custom skin:

  1. Others manually add your skin to their game files by pasting it in the skins folder in the config directory.
  2. Your skin gets added to the official skin database and automatically downloaded for all other players.

If you are interested in the second option, your skin must meet a set of requirements in order to keep consistency with other skins in the database and the game's style:

  • Resolution is 256x128
  • Outline sizes consistent with other skins
  • Fits the tee hitbox well
  • No missing, misaligned or cut off parts
  • No sharp or floating pixels
  • No effects that clash with the game's art style (blur, glow etc.)
  • Not too detailed or too plain
  • Not an edit of an existing skin
  • No elements that could be considered offensive

If you think your skin meets all of them, send it to one of the Skin Database Crew on discord for evaluation.