User:Profiteer/Sandbox5

From Team Fortress Wiki
Jump to: navigation, search
Ico camera.png

绝大多数文章都至少使用了一张游戏内截图。这篇关于如何获取截图的指南会帮助你截取高质量且清晰的游戏内截图。这篇指南着重于获取用于地图页面上的截图,但是其设置可以运用于其他有使用游戏内截图的页面。

准备

确保你的电脑可以在高画质设定下运行游戏。帧率并不重要,但是高帧率能让你的截图过程更舒适。启用开发者控制台,打开设置,点击“高级...”按钮然后勾选“启用开发者控制台”。然后控制台就能通过按下`来打开了,该按键一般位于ESC下方。

读取地图

在控制台输入map <地图名称>(地图文件名称可在地图页面和本地文件中找到)即可建立一个运行该地图的本地服务器。默认设置下,其他玩家无法加入该服务器。在地图加载完成后,在控制台内输入mp_tournament 1来禁用地图内置的计时器同时输入sv_cheats 1

如果你的截图需要其他玩家的协助,一般情况下木偶机器人就能胜任这个工作。如果真的必须要另一名玩家来协助的话,请不要使用sv_lan 1。先为服务器设置一个密码然后通过 Steam 让其他玩家加入。

画面设置

游戏内画质设置:

  • 下载这个 cfg 并将其移动至 TF2 的 cfg 文件夹内 steamapps\common\Team Fortress 2\tf\cfg
  • 如果下载不可用也可以手动设置,打开steamapps\common\Team Fortress 2\tf\cfg文件夹,创建一个新的 .txt 文件并将其命名为wiki_screenshots.cfg。确保你将其后缀改为 .cfg。打开 cfg文件并将以下内容复制粘贴进去。
// 移除地图上的烟雾
fog_override 1
fog_enable 0

// 打开全部 area portals 使整张地图被渲染
// 如果帧数过低也可删除该条
r_portalsopenall 1

// 最高画质
r_lod 0

// 最高材质质量
mat_picmip -10

// 在观察时禁用火焰兵幻境
tf_spectate_pyrovision 0

// 增强远距离情况下的材质质量
mat_mipmaptextures 1

// 禁用物体(战车/情报)轮廓
glow_outline_effect_enable 0

// 最高抗锯齿设置
mat_antialias 8
mat_aaquality 2

// 使光线的轮廓更加平滑
r_lightmap_bicubic 1

然后打开游戏,并在控制台内输入exec wiki_screenshots来应用以上指令。

截图前的准备

Most map screenshots require the HUD and viewmodel to be hidden. These can be disabled with cl_drawhud 0 and r_drawviewmodel 0 respectively, or alternatively be toggled by creating a bind for it using bindtoggle <key> cl_drawhud and bindtoggle <key> r_drawviewmodel. noclip is a crucial command to take map screenshots, allowing you to move freely around the map. You can add the following commands to the config, replacing the bound keys with keys of your choice, if you wish to have them executed at the same time as the graphics settings:

// Viewmodel toggle
bindtoggle i r_drawviewmodel

// HUD toggle
bindtoggle o cl_drawhud

// noclip toggle
bind p noclip

On Windows

Taking a screenshot under Windows is simple. By default, pressing F5 (command: screenshot) saves the image as a TGA (Targa) file in your \Steam\steamapps\common\team fortress 2\tf\screenshots directory.
Do not use Steam screenshots (F12) as these are saved as low quality JPEGs instead.

Before uploading the image, you first need to convert the image into PNG format.

  • There are numerous websites that do this for you. Here is a quick link to one.
  • Most image editors can perform the conversion. IrfanView and Paint.NET are free and easy to use.

On OS X

Taking a screenshot under OS X is slightly simpler than above. By pressing ⇧ Shift+⌘ Cmd+3 at the same time, OS X automatically takes a full-screen screenshot. It is also possible to take a screenshot of a certain part of your screen using ⇧ Shift+⌘ Cmd+4.

Any images taken via this method appear on the Desktop. Alternatively, you can press fn+F5 for the same result as Windows (screenshot).

On Linux

Taking a screenshot on Linux is similar to Windows. By default, pressing F5 saves the image as a TGA (Targa) file in your ~/.steam/steam/steamapps/common/Team Fortress 2/tf/screenshots directory.
Do not use Steam screenshots (F12) as these are saved as low-quality JPEGs instead.

Before uploading the image, you first need to convert it into PNG format:

  • Use a simple terminal command, from a package such as ImageMagick: convert screenshot.tga screenshot.png
    • This package can be installed with sudo apt install imagemagick.
  • Similarly to Windows, most image editors can perform the conversion. GIMP or XnViewMP are free and easy to use.

Uploading

Main article: Uploading images

Upload the screenshot to the Wiki by going to Special:Upload, clicking "Browse...", and selecting the image. For an image intended to show off the map (such as in the "gallery" or "locations" sections), the filename should always contain the map's name. Make sure the title is descriptive of the location, such as Upward BLU spawn 1 outside.png instead of "Upward 1.png". In the Summary substitute the {{mapimg}} template by typing {{subst:mapimg|mapname}}, replacing mapname with the map's name (i.e. {{subst:mapimg|Upward}}). This template automatically adds the correct licenses and categories and removes the need to select a license from the drop-down menu. Click the "Upload file" button at the bottom, and your image is uploaded.

See also