09 October 2015

How to convert a .bru file to a .map file, to be used by Quark and BSP editors

I was trying to open a .bru file and import its contents to a .map file :
trying to open bru file made by bsp

I succeded by emailing Ben from bsp quake editor site, which helped me to figure out and resolve this problem. BSP editor is a older than Quark editor. No entities will be saved when you open the modified .map file with Quark or BSP (see below).
bspquakeeditor

I told him :
With BSP editor i can import a .bru file in a .map file and
 save it again as a .map. But than, BSP and Quark cannot open
 it, and the older version Line 5 and it it is saying that is
 a Quake map, but it is not Quake Anssi was working, but was
 making prefabs as a .bru files. for Quake 2.
He told me :


 Ok, I can see the
 problem when I open your prefab brushes. "Line 15 is
 incomplete" when compiling but that is because the map
 isn't loading into BSP correctly. I have to go to bed
 now, but I will take a look tomorrow and see what I can do
 to fix it.
 Here's one thing you can try as a
 workaround.Make a copy of the .bru file and
 rename it to .map. Then edit the new .map file in notepad.
 At the very beginning of the file, add a single { character
 on a new line, and at the very end add a new line with a
 single } character. This should change the .bru into a valid
 quake map file that you can load in bsp or
 quark.
 As an example, the start of the map file after
 you edit it should look like this, with two {
 characters:{{//"0010"
 "1"( 585 1698 483 ) ( 585 1698 481 ) (
 585 1904 467 ) main/sftrp006 -145 -159 355 -1.000480
 1.000480 134217728 0 0( 585 1698 481 ) ( 585 1698
 483 ) ( 587 1698 485 ) main/sftrp006 193 37 0 1.000000
 1.000000 134217728 0 0( 591 1698 483 ) ( 591 1902
 469 ) ( 591 1902 467 ) main/sftrp006 -27 88 3 1.096986
 0.996986 134217728 0 0( 585 1904 465 ) ( 585 1904
 471 ) ( 578 1904 471 ) main/sftrp006 191 22 0 0.999994
 0.999994 134217728 0 0( 587 1698 485 ) ( 587 1902
 471 ) ( 589 1902 471 ) main/sftrp006 -162 -91 359 -0.999999
 0.999999 134217728 0 0( 589 1698 479 ) ( 589 1902
 465 ) ( 587 1902 465 ) main/sftrp006 192 -91 0 0.999999
 0.999999 134217728 0 0( 589 1698 485 ) ( 589 1902
 471 ) ( 591 1902 469 ) main/sftrp006 -189 -90 0 -0.999999
 0.999999 134217728 0 0( 585 1698 483 ) ( 585 1902
 469 ) ( 587 1902 471 ) main/sftrp006 -140 -87 0 -1.000000
 1.000000 134217728 0 0( 591 1698 481 ) ( 591 1902
 467 ) ( 589 1902 465 ) main/sftrp006 188 -125 0 1.000000
 1.000000 134217728 0 0( 587 1698 479 ) ( 587 1902
 465 ) ( 585 1902 467 ) main/sftrp006 188 -123 0 1.000001
 1.000001 134217728 0 0( 592 1984 465 ) ( 584 1984
 465 ) ( 584 1904 465 ) main/sftrp006 78 222 355 -1.000480
 1.000480 134217728 0
 0}{//"0010"
 "0"etc...then
 the very end will look like this...
 ( 658 1733 482 ) ( 658 1711 558 ) ( 662 1711
 558 ) main/sftwd010 447 7 205 1.001703 1.001703 134217728 0
 0( 580 1754 414 ) ( 580 1760 394 ) ( 668 1760 394
 ) main/sftwd010 346 -284 334 1.000741 1.000741 134217728 0
 0}}



A .bru file is a prefab that you make in this editor, made with poly parts. A cube for example can simply be a crate.

I used BSP95c, but you can use the last version of the program, to edit Quake or Quake 2. I found it good next to Quark.

I figured that, after i renamed the extension .bru to .map with winrar, i added the next lines, (in red) with notepad:

{
"classname"    "worldspawn"
{

//"0002" "0"
( -600 -252 280 ) ( -600 -280 280 ) ( -600 -280 272 ) metal/hrdpl030 0 0 0 1.000000 1.000000 134217728 0 0
( -568 -256 280 ) ( -600 -256 280 ) ( -600 -256 272 ) metal/hrdpl030 0 0 0 1.000000 1.000000 134217728 0 0
( -568 -280 280 ) ( -568 -252 280 ) ( -568 -252 272 ) metal/hrdpl030 0 0 0 1.000000 1.000000 134217728 0 0
( -600 -280 280 ) ( -568 -280 280 ) ( -568 -280 272 ) metal/hrdpl030 0 0 0 1.000000 1.000000 134217728 0 0
( -600 -280 276 ) ( -600 -252 276 ) ( -568 -252 276 ) metal/hrdpl030 0 0 0 1.000000 1.000000 134217728 0 0
( -568 -252 272 ) ( -600 -252 272 ) ( -600 -280 272 ) metal/hrdpl030 0 0 0 1.000000 1.000000 134217728 0 0
}
}


BSP editor




Quark opened .map file, after i added the lines above

Prefab made by Anssi Hyytiäinen
 
BSP editor can open a .map file made with Quark, after you add the above lines i mentioned, trough notepad. A .bru file can be saved and loaded in a .map file with the BSP editor. BSP editor can make a .map file from scratch too.

No comments:

Post a Comment