|
|
|
|
|
|
|
|
| Links |
|
|
|
Embedding Files into BSPs with BSPZIP - By Raeven0 |
|
This tutorial was last updated on Feb 26, 2006.
BSPZIP is a program for embedding a file, such as a texture, into a BSP (a HL2 map file). This allows the texture to be sent along with the BSP, almost as if the BSP were a folder that could hold files. Instead of sending 10 textures and a BSP, for example, you could simply send the BSP with the textures embedded into it. Much easier.
This tutorial covers the use of BSPZIP through a command line interface. There also exist much easier-to-use GUI alternatives to the command prompt BSPZIP, like BspZipGUI, WinBSPZip, and my personal favorite: Pakrat.
If you know how to use a command line interface/command prompt, you can skip this section. Pull up cmd and browse to your sourcesdk/bin folder.
A command line interface is a black box in which you type commands:

A command line interface is a great way of doing things to your computer without using a mouse. Right now we'll use it to run BSPZIP. Open a command line interface session by clicking your Start button, then Run; type cmd in the box, and press ENTER.
You know the path to your Steam folder, right?
If Steam is on the same drive as Windows (probably C), type cd c: in the box, and press ENTER. If not, type Q: in the box, and press ENTER (where Q is the letter of the drive on which you have Steam; for instance, E:).
Next, type cd somewhere, where somewhere is the path to Steam's sourcesdk/bin folder. For instance, my command line interface would read:
C:/Documents and Settings/rae/>e:
E:/>cd Steam/SteamApps/Raeven0/sourcesdk/bin
Also, if you can't type all that without making a mistake, you can break it up:
C:/Documents and Settings/rae>e:
E:/>cd Steam
E:/Steam/>cd SteamApps
E:/Steam/SteamApps/>cd Raeven0
etc.
When you make it to the sourcesdk/bin folder, your prompt should read:
Q:/Steamfolders/sourcesdk/bin/>
Those who know how to work command line interfaces should start reading again here.
Get ready for a lot more typing. If you like, you can write in Notepad, then copy the text from Notepad and paste it into the command line interface.
Type the following:
bspzip -addfile "MyBSP" "RelativePath" "DirectPath" "NewBSP"
Where:
- "MyBSP" is the full path to your BSP file (Q:/Steamfolders/mybsp.bsp);
- "RelativePath" is the path and filename of the file you'd like to embed, relative to the mod directory (materials/myfolder/mytexture.vtf, for instance);
- "DirectPath" is the full and complete path to the file you'd like to embed (Q:/Steamfolders/materials/myfolder/mytexture.vtf); and
- "NewBSP" is the new BSP you'd like to save (Q:/newbsp.bsp).
You can copy the new BSP over the old one, if you like, or you can create a new BSP.
Congratulations, you've just embedded one file into your BSP!
Still need help? Ask your questions in one of our HELP FORUMS
|
|
|
| Comments |
| 3nD - Jun 21, 2009 |
| I'm not very familiar with the command line, but I think I have done everything right. And it shows me up with an error, like this: SteamStartup() failed: SteamStartup(0xf,0x0012db5c) failed with error 1: failed to take master pipe connetion lock. I am connected to my steam account but something is wrong, and I don't why (noob). I haven't tried the map though, but I think it won't work. By the way, I was trying to embed a '.txt' file. |
| zak - Feb 21, 2009 |
"A command line interface is a black box in which you type commands:"
When can the world be presumed 'not retarded'?
Can we set a deadline of say... 2010? Or maybe even like, tomorrow?
|
| Pandan - Jan 3, 2009 |
| This was a good tutorial. i needed this. Although pakrat is a tutorial in its self. its sooo easy to use :D |
| Luc Skyrunner - Dec 8, 2008 |
BSP heu je n'aime pas les patates frites au vinaigre mais si quelqu'un dit que la capitale de france est madrid alors le père noel mange les petits enfants avec les lutins grillés. La dindon de la farce est michael shumacher ainsi que michel g33k.
Now you may be worried about what does this mean.
Be sure, that it has no real importance.
Now I've got to go for a piss.
Sorry. I'm leaving. Hurry ! |
| Rasch - Nov 21, 2006 |
Now - i have pulled of all my hair on top of my head - I am sp frustrated..
I can't get this to work.. I have made a well working texture (.VTF and .VMT) and put them in the materials folder - in my own folder.
I have tried all suggested applications such as Pakrat, bspzip, and WinBspZip - but none of it works - still purple/black cubes.. The spray works fine when i create my own server but not when my friends run it.. Help help help please.. |
| Raeven0 - Jul 29, 2006 |
| Tyler, the maps as seen in Hammer are converted to BSP format when you compile via the F9 hotkey or the option under the File menu. If a BSP is not created, there was an error during compilation, typically because of a mistake made in mapping. The compile log is written upon compilation in reasonably basic English; look for strange messages in it. |
[5 extra comments]
|
|
|
|