#vbsp, specifying material path

1 messages · Page 1 of 1 (latest)

wicked slate
#

When trying to compile with custom textures located at C:/whatever/resources (inside: materials/ models/) the compiler cannot find the material path since its not being specified. There seems to be no material path argument so I assume it requires some modification of gameinfo.txt but I cannot find the correct thing to put in the file to make the compiler recognise the additional resources.

Any suggestions would be appriciated. Thanks

wooden spoke
#

it's only able to recognize materials that are present in the game folder
and all paths in the gameinfo are relative to the location of the EXE
or the gameinfo, in the case of |gameinfo_path|

#

so you'll have to put them in the game folder no matter what

wicked slate
#

can I not have a copy of the gameinfo file to the C:/whatever and structure the directories to be found that way?

#

or does it literally have to be moved into the game directory

#

(trying to set this up all within a github pipeline so localising it as much as possible would be good)

wooden spoke
#

oh you can run the game directly from the github folder, by using Crowbar
use that as your working dir

#

you can configure Hammer to use the gameinfo in there too

wicked slate
#

oh damn thanks man

thorn valley
#

in the gameinfo you just at the bottom add a new SearchPath

#

with your directory

wooden spoke
#

oh right, absolute paths work