Packing Custom Content in a .bsp

obsidiian

L1: Registered
Jul 6, 2013
40
5
I just finished making my jungle themed map only to find that many people were unable to see the custom textures and models. I've tried pakrat, VIDE, and packBSP, but none have worked correctly. Is there another program I should be using or am I just not using the programs correctly?
 

Mr.Late

L7: Fancy Member
Nov 27, 2009
408
157
Pakrat doesn't pack the textures of the models, I learned it the hard way.
 

obsidiian

L1: Registered
Jul 6, 2013
40
5
PackBSP also broke for me after steampipe, pakrat sorta works alright, but VIDE still works perfectly.

For VIDE:
Tools
Pakfile Lump Editor
Open <mapname.bsp>
Scan
Scan
Auto
Apply
Save

And it should work fine. :)

I did this and thought it worked, but when I opened up the .zip file, all I found was a folder named materials and a folder named models. Not even the .bsp file. I'm not sure what I'm doing wrong :bored:
 

henke37

aa
Sep 23, 2011
2,075
515
Just use bspzip with a list file. It's impossible for it to fail.
 

Egan

aa
Feb 14, 2010
1,375
1,721
I did this and thought it worked, but when I opened up the .zip file, all I found was a folder named materials and a folder named models. Not even the .bsp file. I'm not sure what I'm doing wrong :bored:

Are you using bspsrc to extract the embedded content? because if so then its not going to also place a copy of the bsp into the same area as the embedded content. Using VIDE it should work properly :p
 
T

The Asylum

If you ever want to see what's been packed in or not, download Crafty. You can explore your map without booting up TF2. It won't load TF2 textures, but it will load anything that's packed in the bsp. Things like sounds and other non-materials though obviously won't display
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Y'know, if someone wants to make the probably-not-that-hard fixes for PackBSP, I did make it all open-source, and you can submit pull-requests on Github... hint, hint.

I'm still abstractly interested in making PackBSP 3.0, but I've been pretty busy with my day-job.
 

fubarFX

The "raw" in "nodraw"
aa
Jun 1, 2009
1,720
1,978
Y'know, if someone wants to make the probably-not-that-hard fixes for PackBSP, I did make it all open-source, and you can submit pull-requests on Github... hint, hint.

I'm still abstractly interested in making PackBSP 3.0, but I've been pretty busy with my day-job.

if it was written in anything other than java I'd update it in a heart beat. might pick it up regardless at some point but idk...

or is it just feeding stuff into bspzip? because from experience, bsp and java don't go too well together
 
Last edited:

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
All that really needs doing, if I understand correctly, is adding VPK support (should be simple enough, since there are already tools that can read and write VPKs) and changing the default folder structure and archives to search in. I might take a peek at the source code myself, actually, just to see what's up.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
All that really needs doing, if I understand correctly, is adding VPK support

IIRC it already reads (or did read) VPK files.

changing the default folder structure and archives to search in
I haven't investigated at all (I don't recall anybody sending me debug logs either) but that sounds likely.

I might take a peek at the source code myself, actually, just to see what's up.

I'd start along the track of:


The list of AssetSearchLocation objects determines where it looks, with what prefix, and what importance it attaches to whatever it finds.

or is it just feeding stuff into bspzip? because from experience, bsp and java don't go too well together

Yes, because I really didn't want to take on the responsibility for making byte-by-byte changes to people's maps if I could help it. I'd rather point at bspzip and say: "I just made the list! Any corruption is all their fault!"
 
Last edited:

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
I used VPK in the beginning for my maps and learned it the hard way at that time that it breaks cubemaps and custom textures. So before doing any effort into automizing it i recommend some more testing.

When a vpk is put on a server it sends the files, but when installed localy it doesnt read the textures inside the bsp.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
IIRC it already reads (or did read) VPK files.
I was basing that off the lack of support for any of the post-Orange Box games mentioned in your FAQ.