Implementing custom stuff into .bsp just doesn´t work!

Avatar
mcdaniels
50 Posts
Posted May 20, 2011
First I tried my own texture. Converted it into the valve-format, .vtf and wrote the corresponding .vmt. After several tries with "potato packer" which should pack these two files into the .bsp (mapping-help/bspzip-for-portal-2-t2396.html), it didnt work, the program made a batch-file, but it was 1 kb and didnt do anything when executed. then i tried it with the bspzip-tutorial (mapping-help/bspzip-for-portal-2-t2396.html), this worked so far that a valid batch-file was created. after beeing executed the texture still was black/pink in the map. then i thought i made sth wrong when i converted my texture, so i took a standard texture, light_orange001, and renamed it into light_orange003(which doesnt exist in the standard content). in hammer i covered several surfaces with light_orange003-of course hammer showed actually light_orange001, which i just renamed to 003. so, i thought, if i start the map, the game wouldnt be able to read the light_orange003, because its not in portal2?s standard content. so i tried to pack the light_orange003 into the .bsp via bspzip, so the game would get the texture and material directly from the .bsp, but I started the map and still the texture light_orange003 isnt found and shown as black/pink shit. The error must definitely happen when packing, but I checked everything 100 times! Is there any rule, where exactly the custom content or the .bsp I want to pack in is stored or is it enough, if all the directions are written correctly into the self-created batch file?
Is it important for you to know, that the bspzip.exe itself doesnt work if executed directly, even after deinstalling and re-installing? is that normal??
thanks a lot!!!
here are the two files, i made in order to pack my custom_blue.vtf and custom_blue into my small chamber13.bsp-MAP:
my batch-file:
START "" "C:\Program Files (x86)\Steam\steamapps\common\alien swarm\bin\bspzip.exe" "-addorupdatelist" "D:\meine portal 2 maps\in Arbeit\small chamber\small chamber13.bsp" "D:\meine portal 2 maps\custom textures\customzeugliste.txt" "D:\meine portal 2 maps\in Arbeit\small chamber\small chamber13.bsp"

my "customzeugliste.txt" :
"materials\lights\custom_blue.vtf"
"D:\meine portal 2 maps\custom textures\custom_blue.vtf"
"materials\lights\custom_blue.vmt"
"D:\meine portal 2 maps\custom textures\custom_blue.vmt"

THANKS!!

Advertisement
Registered users don’t see ads! Register now!
Avatar
Aldéz
221 Posts
Posted May 20, 2011
Replied 57 minutes later

I assume the material did work before you tested to embed it? Anyway, I just learned that you can make your own VPK file instead. Try that if bsp embedding doesn't work. VPK is better since you can share its content between several maps among other things. If I got it right, you can simply drag-and-drop the folder with the content onto the vpk.exe icon.

http://developer.valvesoftware.com/wiki/VPK

Avatar
mcdaniels
50 Posts
Posted May 20, 2011
Replied 2 minutes later
Hey Ald?z! I updated my post....
If I want the community to see my textures, they would have to download my custom .vpk, right? that would suck...i need the infos in my map....
Avatar
Aldéz
221 Posts
Posted May 20, 2011
Replied 2 hours later
You can put the map in the VPK too, and then release it as such.
Avatar
msleeper
4,136 Posts
Admin
Posted May 20, 2011
Replied 1 hour later
VPKs are basically packaged release files. You can put anything in them that the game needs to load - materials, sounds, and maps.
Avatar
ChickenMobile
2,460 Posts
Posted May 20, 2011
Replied 30 minutes later
I use PakRat and it's never failed for me.
It's handy cause it has an auto button where you don't need to search individually for all the custom content you put in.
Avatar
msleeper
4,136 Posts
Admin
Posted May 20, 2011
Replied 9 minutes later
Has Pakrat been updated for Portal 2? I remember it wasn't working because of a change in the BSP file format (not unheard of after a major release).
Avatar
ChickenMobile
2,460 Posts
Posted May 20, 2011
Replied 12 minutes later

msleeper wrote:
Has Pakrat been updated for Portal 2? I remember it wasn't working because of a change in the BSP file format (not unheard of after a major release).

I recently added a few custom textures to a .bsp not long ago. I can't remember if I downloaded an updated version. xD

Avatar
msleeper
4,136 Posts
Admin
Posted May 20, 2011
Replied 7 minutes later
I'm assuming that either it has been updated and you are using the most recent version, or you are a wizard.
Avatar
mcdaniels
50 Posts
Posted May 21, 2011
Replied 21 hours later
how can someone else start my vpk-release? it sure has to be in portal2's vpk directory, right? so if he types in "map <my mapname>" the game will find it automatically and start the map with all the custom content inside my vpk?
Avatar
msleeper
4,136 Posts
Admin
Posted May 21, 2011
Replied 3 hours later
It needs to be in the /addons/ directory I believe. But yeah you can just type "map <map name>" like normal and it will load.
Avatar
Aldéz
221 Posts
Posted May 21, 2011
Replied 3 minutes later
Yes, you place the VPK file in a folder called "addons" in "...\portal 2\portal2". You have to create the folder yourself. The game needs to be restarted before you can open the map.
Advertisement
Registered users don’t see ads! Register now!
Avatar
mcdaniels
50 Posts
Posted May 21, 2011
Replied 6 hours later
Thank you guys! hope i can reward you soon with my next release :smile: It's gonna be Coop :wink:
bb