搜索
查看: 2888|回复: 3

地图RES文件生成

[复制链接]
发表于 2005-12-4 08:08:22 | 显示全部楼层 |阅读模式 来自 中国–福建–龙岩
RES文件控制并告诉服务器当前地图需要的资源,以便服务器将这些资源发送给客户端。

http://www.thezproject.org/projects.php?pid=2
RESGen 2.0.1

RESGen is a tool to create res (resource) files for Half-Life.

If a Half-Life map has a corresponding res file, Half-Life is able to send all resources the map uses to the clients, if they don't already have them. This helps a great deal when running a server with custom maps, rather than the default ones. Most players do not have these custom maps and the resources that should go with them. The res file enables them to download the map from the server via Half-Life and start playing right away. The problem with res files, however, is that it can take hours to create one if the resources used by a map are not known.

RESGen can shorten this time to mere seconds. It reads the maps BSP file and searches it for used resources. The results of this search are then used to create the res file.

Changelog:

2.0.1:

    * Bugfix: Fixed minor bug in VString class that could occur if an empty string was concatenated with an existing. No know instances of this have occured because RESGen uses several sanity checks before doing string operations.
    * Fix: RESGen only supported BSP files generated on Windows or Unix/Linux because of the way line endings are handeled. Support for BSP files generated on a Mac/Apple (or using Apple style newlines) has been added.
    * Note: Decided to release this version as 'final' version 2. Note that this doesn't exclude any future bugfixes. It's just to indicate the current maturity of RESGen 2.

2.0 RC2:

    * Bugfix: Fixed bug in exclude file parsing. When the parser encountered a comment it would consider every following line a comment as well because it failed to clear the line buffer.
    * Bugfix: Fixed bug with loading exclude files. Forgot to convert backslashes to slashes, which means that any exclude located in a folder would never be matched if the exclude file used Windows format.

http://www.thezproject.org/downloads/resgen/resgen_2.0.1.zip
 楼主| 发表于 2005-12-4 08:19:33 | 显示全部楼层 来自 中国–福建–龙岩

回复: 地图RES文件生成

使用方法介绍。

resgen -o -d C:\Valve\Counter-Strike\cstrike\maps -b .\rfa\res_cstrike.rfa
将自动搜索maps目录下的所有bsp文件,并生成地图的res文件。
:D
回复

使用道具 举报

发表于 2005-12-4 13:39:05 | 显示全部楼层 来自 中国–广东–广州–天河区

回复: 地图RES文件生成

:burn: 虽然早就下了,还是顶下!
回复

使用道具 举报

发表于 2005-12-7 23:09:19 | 显示全部楼层 来自 中国–广西–百色

回复: 地图RES文件生成

很有用的工具,顶 ! ! !
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表