Garry's Mod

Garry's Mod

Not enough ratings
Referenced Map Files Lister
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
2.891 KB
7 Jul, 2017 @ 2:40pm
7 Jul, 2017 @ 3:20pm
2 Change Notes ( view )

Subscribe to download
Referenced Map Files Lister

In 1 collection by Cédric GÉRILLE [GiletJaune]
.bsp editing helpers
10 items
Description
This tool allows you to list files that are referenced in the given map file in your game or in your server.
On Source dedicated servers, there must be at least 1 player for the search to proceed.

Instructions
Type list_map_mdl_vmt_sound in the console and read the instructions!

Using cases
- You need to see referenced files in a map to check dependencies.

Lua functions
list_map_mdl_vmt_sound.scanBsp( bspPath, toLower, baseFolder, extension, tableToFill, isFirst, shouldYield )
return : (table) table with found files, stored as theTable[fileName]=true bspPath : (string) path to .bsp file relative to garrysmod/ folder + mounting (optional arguments) toLower : (bool) convert filenames to lowercase baseFolder : (string) "materials" or "models" or "sound" extension : (string) "vmt" or "vtf" or "mdl" or "mp3" or "ogg" or "wav" tableToFill : (table) if provided, this is the table that will be filled with found files (arguments only for use in a coroutine) isFirst : (bool) true if single map or for the first element of a loop, false otherwise shouldYield : (bool) true if using a coroutine, false otherwise

Notes
- This tool will not find non-embedded materials of embedded models.
- In compressed maps, this tool will only find embedded files.
12 Comments
Starvox 21 Jul, 2017 @ 10:55am 
non
Nogitsu 9 Jul, 2017 @ 2:59pm 
Moi je le connais enfin je crois xD
Cédric GÉRILLE [GiletJaune]  [author] 9 Jul, 2017 @ 2:56pm 
Et oui. xD
Nogitsu 9 Jul, 2017 @ 2:51pm 
Seuls ses amis savent son vrai nom lol
DrumSlayer 9 Jul, 2017 @ 2:49pm 
Momo le mec incertain de son nom :x
Cédric GÉRILLE [GiletJaune]  [author] 9 Jul, 2017 @ 9:49am 
xD
Nogitsu 9 Jul, 2017 @ 4:05am 
Momo l'utilitaire multi fonctions <3
DrumSlayer 8 Jul, 2017 @ 6:23am 
This is a very usefull addon :') :gmod:
Thomas 8 Jul, 2017 @ 3:10am 
Thank you very much =)
[Nexifi] John Sheppard 7 Jul, 2017 @ 4:05pm 
Good job :)