Problem using -nowadtextures Created 6 months ago2023-10-21 18:41:53 UTC by MethanolSlurper MethanolSlurper

Created 6 months ago2023-10-21 18:41:53 UTC by MethanolSlurper MethanolSlurper

Posted 6 months ago2023-10-21 18:41:53 UTC Post #347966
User posted image
`Using mapfile wad configuration
Wadfiles not in use by the map will be excluded
Wadinclude list :
[zhlt.wad]

CreateBrush:
(0.02 seconds)
CSGBrush:
(0.12 seconds)

Including Wadfile: \Users\mikol\Downloads\vulzacn\tools\zhlt.wad
- Contains 2 used textures, 5.00 percent of map (19 textures in wad)
Using Wadfile: \Program Files (x86)\Steam\steamapps\common\Half-Life\de_heights\de_heights.wad
- Contains 38 used textures, 95.00 percent of map (38 textures in wad)

Wad files required to run the map: "de_heights.wad;"
Texture usage is at 1.31 mb (of 32.00 mb MAX)
0.24 seconds elapsed

----- END hlcsg -----
`

I can't find much info about the command at all, so I'm not sure what exactly I have to type in. I'm using Vluzacn's ZHLT v34 compile tools in J.A.C.K. hammer, and the texture file I'm trying to embed is in the maps folder of my ""mod"" which is just a counter strike map under the name of de_heights. Do I have to add a specific path? I know that the tutorials I've seen about this talked about some mysterious batch file, but I'm not sure what they mean.
Posted 6 months ago2023-10-21 20:50:00 UTC Post #347967
You're running CSG twice. Remove the first command from the list and add -nowadtextures to the second occurrence of CSG, like so:
User posted image
Posted 6 months ago2023-10-21 20:52:57 UTC Post #347968
After that just add the name of the wad after the argument. The entire command should look like
$csg_exe "$bspdir/$file" -nowadtextures de_heights
Posted 6 months ago2023-10-22 07:26:54 UTC Post #347969
Usually .wad files are placed in the mod folder, not in the maps folder, so for example you would place it in the cstrike folder, where cstrike.wad is. You can find information about all the commands here: http://zhlt.info/command-reference.html

You can also often find information about the commands of a tool, in this case hlcsg.exe, by just running it in a command prompt, so you would search for cmd.exe in Windows, drag and drop hlcsg.exe onto it, and you will see some basic information about it. In this case, it says this:

-nowadtextures : include all used textures into bsp
-wadinclude file : place textures used from wad specified into bsp

So -nowadtextures does not need a path specified, it will embed all the textures you used, even those from cstrike.wad. -wadinclude is different, it only embeds used textures from a specific .wad file. If your .wad file is located in the cstrike folder and is called mytextures.wad, you type it after -wadinclude without the .wad extension, like this: -wadinclude mytextures

A batch file is a text file that contains a list of commands, which is why it's called a batch file. It is also known as a script, or just a program. The compilation interface in your map editor is just a graphical way of running the multiple compilation tools in a specific order, with specific arguments, like -wadinclude, or the name of your map source file. You could do the same by making a batch file.
Posted 6 months ago2023-10-23 07:45:00 UTC Post #347971
Oh right, mixed up nowadtextures and wadinclude, my mistake.

Still, the main issue was CSG being run twice, the second time without the command, so it was the latter that counted for the rest of the compilation.
You must be logged in to post a response.