Thursday, September 18, 2014

Source compiling issues AGAIN

So I recently tried to compile a model for source and received a semi-cryptic error in the form of:

WARNING: *** Encountered VTF file with an invalid minor version!
WARNING: *** Encountered VTF file with an invalid full header!

I also had two materials on my model. The materials were in separate directories. I don't think either of those points were the problem. Considering it said the vtf file has issues I figured it was the vtf at fault. I had been using vtfedit to convert my png's to vtf's and I guess I hit a flag somewhere or something.

I fixed the problem by exporting my vtf from GIMP instead of converting it with vtfedit. I get the feeling I did something else too though. If that doesn't work for you, read on.

Tuesday, September 2, 2014

Perfui!

I just spent an hour searching for the console command for source that shows your areaportals and visleafs in-game. I'm putting it here in case I ever forget and lest it's memory be stricken from the net.

Monday, September 1, 2014

FindPortalSide: How to fix a tricky Hammer editor compile error

FindPortalSide: Couldn't find a good match for which brush to assign to a portal

Look farmiliar? This error can be from an array of things, but most of them have an easy solution on the net. I got this error when trying to compile my map so I loaded up a pointfile only to find the pointfile points at some random direction and never enters my BSP level. Perplexing. After a little bit of googling I fixed it.

Go to edit > select all, and then tools > center origins.

The reason this exists is because all the brush entities and world geometry brushes have 'origins', the place that they were created. Sometimes after some editing, you may move the brush but the origin point stays the same. If the origin point is outside the map it will leak, but you'll never be able to see why. Try the above solution.