Template:TextFile

来自Valve Developer Community
跳转到导航 跳转到搜索
Broom icon.png
此物品需要清理以符合更高的质量标准,因为:
Modernize, and make more generic
如需帮助,请参阅 VDC 编辑帮助维基百科清理过程。另外,请记住在本文的讨论页检查标记者留下的任何笔记。
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.png模板文档 [查看] [编辑] [创建 中文 (zh)]
Icon-translate.png Available doc translations
Info.png
文档页面 Template:TextFile/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
Icon-translate.png
本模板使用字符串子页面
请遵循该子页面上的格式添加翻译。

Usage

Default appearance

This is a text file used internally by a Valve Software technology, such as GoldSrc GoldSrc, Source Source, and/or 起源2 起源2引擎.
To save this to a file, copy the following text into a text editor such as Windows Notepad, Notepad++ Notepad++ or Visual Studio Code Visual Studio Code, and save it with "save as type" being "all files" and .{{{1}}} appended to the file name. Then open the file in the appropriate tool.
Tip.pngTip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold Shift, and click at the end of the line to select all.


File name specified

This is a text file used internally by a Valve Software technology, such as GoldSrc GoldSrc, Source Source, and/or 起源2 起源2引擎.
To save this to a file, copy the following text into a text editor such as Windows Notepad, Notepad++ Notepad++ or Visual Studio Code Visual Studio Code, and save it with "save as type" being "all files" and .txt appended to the file name. Then open the file in the appropriate tool.
Tip.pngTip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold Shift, and click at the end of the line to select all.


RAD file

This is a RAD file, that can be used to manipulate the way QRAD, HLRAD, and VRAD handle given brush textures when compiling static lighting. In Source, this can be also used to forcing props to cast texture shadows.
To add a RAD file to the map editor, copy the following text into a text editor such as Windows Notepad, Notepad++ Notepad++ or Visual Studio Code Visual Studio Code, and save it with "save as type" being "all files" and .rad appended to the file name.
Tip.pngTip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold Shift, and click at the end of the line to select all.


FGD file

This is a FGD (Forge Game Data) file used to define all of the entities of a game for a map editor (such as Hammer).
To add a FGD file to the map editor, copy the following text into a text editor such as Windows Notepad, Notepad++ Notepad++ or Visual Studio Code Visual Studio Code, and save it with "save as type" being "all files" and .fgd appended to the file name. Then open your map editor and add the FGD to your game configuration (Example for HL:S).
Tip.pngTip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold Shift, and click at the end of the line to select all.


VMF file

This is a VMF (Valve Map Format) file used to store raw (pre-compiled) map data, used by map editors (such as Hammer).
To save a VMF file and use it on map editor, copy the following text into a text editor such as Windows Notepad, Notepad++ Notepad++ or Visual Studio Code Visual Studio Code, and save it with "save as type" being "all files" and .vmf appended to the file name. Then open your map editor, in this case, Valve Hammer Editor, go to File > Open..., then select the .vmf file. In Hammer++, you can also drag & drop the .vmf file into a window and Hammer++ will automatically open them.
Tip.pngTip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold Shift, and click at the end of the line to select all.
This is a text file used internally by a Valve Software technology, such as GoldSrc GoldSrc, Source Source, and/or 起源2 起源2引擎.
To save this to a file, copy the following text into a text editor such as Windows Notepad, Notepad++ Notepad++ or Visual Studio Code Visual Studio Code, and save it with "save as type" being "all files" and .{{{1}}} appended to the file name. Then open the file in the appropriate tool.
Tip.pngTip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold Shift, and click at the end of the line to select all.