Skip to content

TrenchBroom portal file (.prt) support#25

Open
G2Pavon wants to merge 1 commit intoseedee:masterfrom
G2Pavon:master
Open

TrenchBroom portal file (.prt) support#25
G2Pavon wants to merge 1 commit intoseedee:masterfrom
G2Pavon:master

Conversation

@G2Pavon
Copy link
Copy Markdown

@G2Pavon G2Pavon commented Jan 27, 2025

A new HLVIS compile parameter -tbprt for fix prt files for TrenchBroom.
The diffs from JACK .prt file is that TB .prt uses a header PRT1 and second line is 0.

Fixed .prt for JACK:

7
6
4 0 6 (208.000000 544.000000 192.000000) (208.000000 544.000000 0.000000) (208.000000 176.000000 0.000000) (208.000000 176.000000 192.000000) 
4 0 1 (688.000000 176.000000 192.000000) (416.000000 176.000000 192.000000) (416.000000 176.000000 0.000000) (688.000000 176.000000 0.000000) 
4 1 2 (512.000000 96.000000 0.000000) (608.000000 96.000000 0.000000) (608.000000 96.000000 128.000000) (512.000000 96.000000 128.000000) 
4 2 3 (512.000000 32.000000 0.000000) (608.000000 32.000000 0.000000) (608.000000 32.000000 128.000000) (512.000000 32.000000 128.000000) 
4 3 4 (416.000000 -304.000000 192.000000) (416.000000 -112.000000 192.000000) (416.000000 -112.000000 0.000000) (416.000000 -304.000000 0.000000) 
4 4 6 (208.000000 -112.000000 0.000000) (208.000000 -304.000000 0.000000) (208.000000 -304.000000 192.000000) (208.000000 -112.000000 192.000000)  

Fixed .prt for TrenchBoom:

PRT1
0
6
4 0 6 (208.000000 544.000000 192.000000) (208.000000 544.000000 0.000000) (208.000000 176.000000 0.000000) (208.000000 176.000000 192.000000) 
4 0 1 (688.000000 176.000000 192.000000) (416.000000 176.000000 192.000000) (416.000000 176.000000 0.000000) (688.000000 176.000000 0.000000) 
4 1 2 (512.000000 96.000000 0.000000) (608.000000 96.000000 0.000000) (608.000000 96.000000 128.000000) (512.000000 96.000000 128.000000) 
4 2 3 (512.000000 32.000000 0.000000) (608.000000 32.000000 0.000000) (608.000000 32.000000 128.000000) (512.000000 32.000000 128.000000) 
4 3 4 (416.000000 -304.000000 192.000000) (416.000000 -112.000000 192.000000) (416.000000 -112.000000 0.000000) (416.000000 -304.000000 0.000000) 
4 4 6 (208.000000 -112.000000 0.000000) (208.000000 -304.000000 0.000000) (208.000000 -304.000000 192.000000) (208.000000 -112.000000 192.000000) 

image
image

@oskarlh
Copy link
Copy Markdown

oskarlh commented Feb 10, 2025

JACK seems to accept the PRT1 (at least I didn't get any error messages), so perhaps it's just as good to always write the PRT1? (Writing this from my work Mac so I can't test with Hammer right now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants