Talk:PTS

From Valve Developer Community
Revision as of 07:56, 14 August 2006 by Nem (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Someone please fix this (don't have time at the moment). A portal (.prt) file is not used to find leaks, it is simply a list of the portals in your .bsp. Its a simple ASCII file and its format is as follows (off the top of my head - added support for this format to Craft the other day):

PRT1 <Leaf Count> <Portal Count> <Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)... <Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)... <Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)... ...

The PRT1 signature is specific to Source, older tools don't generate it. You can view these files in GLView.

A point file (.pts) is used for finding leaks. It is a list of points which can be used to generate lines as the author suggests. Its format is as follows:

X Y Z X Y Z X Y Z ...

--Nem 00:56, 14 Aug 2006 (PDT)