# Difference between revisions of "Talk:PTS"

From Valve Developer Community

(I didn't preview. :() |
|||

Line 1: | Line 1: | ||

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): | 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 | + | PRT1 |

− | <Leaf Count> | + | <Leaf Count> |

− | <Portal 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)... | + | <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. | The PRT1 signature is specific to Source, older tools don't generate it. You can view these files in GLView. | ||

Line 13: | Line 13: | ||

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: | 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 | + | X Y Z |

− | X Y Z | + | X Y Z |

− | ... | + | ... |

--[[User:Nem|Nem]] 00:56, 14 Aug 2006 (PDT) | --[[User:Nem|Nem]] 00:56, 14 Aug 2006 (PDT) |

## Revision as of 07:58, 14 August 2006

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)