XLabsProject / iw4-zone-asset-finder

IW4 zone asset finder & source builder
GNU General Public License v3.0
2 stars 2 forks source link

iw4-zaf IW4 Zone Asset Finder

This small CLI tool is a very useful ally in building patches for existing zones that are missing assets, or finding which zone to include in your zone_source to obtain a specific asset.

How to use

You can download a release in the Releases section or build one yourself. Once you have a .exe, put it at the root folder of iw4x. This tool needs the latest version of iw4x (zonebuilder) to work. You can then launch the program.

Useful commands

For search term "bushtree" : Found in the following zones:

image:~foliage_pacific_bushtree01_b~598da624 mp_afghan mp_arkaden_sh mp_awp_arena mp_battlecity_mountains mp_battlecity_mountains_td mp_boneyard

* FIND => Finds an asset by exact type and name. The format is: `type`:`name`. Example:

FIND xmodel:com_barrel_metal

For asset "xmodel:com_barrel_metal" : Found in the following zones:

xmodel:com_barrel_metal mp_strike_sh mp_strike


* BUILDREQ => This command will build an optimized zone_source.csv with a minimal set of imports for every asset you give it. For example, if you give it three models, present in multiple maps, it will generate a zone source containing these models & the minimal set of maps required to build this source. The format is: `"type:name type:name type:name ..."` (enclosed with a " character). Example:

BUILDREQ "xmodel:com_barrel_metal xmodel:com_barrel_shard1 material:mc/mtl_barrel_tan"

The following dependencies are suggested: mp_strike(2 assets), mp_highrise(1 assets),

Source requirements: require,mp_strike require,mp_highrise

xmodel,com_barrel_metal xmodel,com_barrel_shard1 material,mc/mtl_barrel_tan



* IWDFILES => Lists the IWD files (iwi + streamed sounds) used by a map, and outputs them in `mapname_iwd.txt`.