Custom Content Problem

EmNudge

L4: Comfortable Member
Sep 23, 2015
184
60
I was following TopHatWaffle's guide for custom content without contamination, but TF2's gameinfo.txt was a tad different, so I looked for a TF2 one. I followed the steps in this tutorial by @sevin and I keep running into the same error I ran into when using tophat's tutorial.

This one message would always pop up, preventing me from opening hammer:
6b466c3371564b4adafd3572225c4d33.png

This was with every directory I gave it, no matter which ones I removed.

The added text I use is as follows:
Code:
            //This is tf_dev and all of its sub-folders
            game+mod        tf_dev/*
            game+mod        tf_dev/content_packs/*
            game+mod        tf_dev/content_packs/jungle/*
            game+mod        tf_dev/content_packs/jungle/hangvine/*
            game+mod        tf_dev/content_packs/jungle/plant01/*
            game+mod        tf_dev/content_packs/jungle/tree01/*
            game+mod        tf_dev/content_packs/jungle/tree02/*
            game+mod        tf_dev/content_packs/jungle/tree03/*
            game+mod        tf_dev/misc/*
            game+mod        tf_dev/maps_dev/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_a5/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_a5/materials/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_a5/materials/overlays/*
            game+mod        tf_dev/maps_dev/rade_plaza_sg_a5/materials/portraits/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_a5/particles/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_a5/sound/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_old/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_old/overlays/*

any help is appreciated.
 

seth

aa
May 31, 2013
1,019
851
You haven't got your paths set up quite right. This is all you need:

Code:
            //This is tf_dev and all of its sub-folders
            game+mod        tf_dev/*
            game+mod        tf_dev/content_packs/*
            game+mod        tf_dev/misc/*
            game+mod        tf_dev/maps_dev/*

Remember the asterisk modifier makes the preceding folder act like the custom folder, so all those other entries you had were redundant. In the custom folder, you only need 1 outlier folder named whatever you want. Inside that you would have your standard materials, models, sound, etc. So in effect, for example, maps_dev can have your map folder in it, and then the materials folder inside that will be seen and referenced in Hammer. When you specified the materials folder inside the map folder with an asterisk, you're essentially telling Hammer that the materials folder is the custom folder and it's trying to find the next folder inside that to find your materials, which doesn't compute.
 
Last edited:

EmNudge

L4: Comfortable Member
Sep 23, 2015
184
60
You don't need to add /materials or /particles or /sound to /trade_plaza_sg_a5/*. The * is there to find it for you.
Same error, this is my added text:
Code:
            //This is tf_dev and all of its sub-folders
            game+mod        tf_dev/*
            game+mod        tf_dev/content_packs/*
            game+mod        tf_dev/content_packs/jungle/*
            game+mod        tf_dev/content_packs/jungle/hangvine/*
            game+mod        tf_dev/content_packs/jungle/plant01/*
            game+mod        tf_dev/content_packs/jungle/tree01/*
            game+mod        tf_dev/content_packs/jungle/tree02/*
            game+mod        tf_dev/content_packs/jungle/tree03/*
            game+mod        tf_dev/misc/*
            game+mod        tf_dev/maps_dev/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_a5/*
            game+mod        tf_dev/maps_dev/trade_plaza_sg_old/*

This is the current error:
ab9282b8f85df7a370a63f48a44768b7.png