Please or Register to create posts and topics.

Packing custom textures with BSPZIP

Hi,

After messing up with Portal 2 puzzle maker, I've just returned to Hammer, where I had made some maps for CS 1.6. Then, I gave up due to a lack of time.
Now, I'm trying to make a custom map for Portal 2 which heavily relies on custom textures. When I want to launch my map which successfully compiled itself, the game shuts down as soon it finishes to load the level. The crash log does not seem to be very explicit from my side.

I've read DamaGepy's FAQ on how to pack external files to a .BSP file via BSPZIP. The problem is that this tutorial only explains how to add sounds, which are stored in one file, no how to add custom textures, which are divided in .VTF and .VMT files.

What am I doing wrong?

FYI, the level I'm currently making is this: http://twitter.yfrog.com/z/5ojeubj

You'll want to use Pakrat instead of BSPZIP. You can just drag files onto it and it will add them with the correct paths. :)

Falsi sumus crusto!

Hey 240-185! Welcome to the forums!
I agree completely with FelixGriffin. The easiest way to use it (that's worked for me) is to open your map, click on "Scan", and then scroll down through the list to make sure that the files marked "On Disk" are checked. Then, click Add Selected. If it asks you to fix-up file paths, say "Yes to All." Now hit File > Save BSP... and select a file name. Boom, you're done!

Released Maps
[spoiler]WOM Test 1
Laser Cube Quest
Mho' Power - Community Spotlight!
Four Corners[/spoiler]

Yep, thanks for your replies, I downloaded Pakrat, and it seems to do the job ;)
(Now, I must wait Steam to finish the update of the authoring tools...)

Hmmm...
Despite compiling and then adding the custom textures with Pakrat, Portal 2 still shuts down when I want to launch my map.

The last lines of "console.log" show me these:

Code: Select all
--- Missing Vgui material vgui/hud/commands/gesture_smallwave
Unknown command "cl_thirdperson"
Failed to init 'maps/soundcache/_master_french.cache'
Unknown command "cl_thirdperson"
C_GameInstructor::ReadSaveData failed to read GI.lesson.Swap_Split_Screen_Control
CGameUIConVarRef mp_gamemode doesn't point to an existing ConVar
maxplayers set to 1
---- Host_NewGame ----
Network: IP 192.168.1.49, mode SP, dedicated No, ports 0 SV / 0 CL
Opened Steam Socket NS_SERVER ( socket 1628 )
Opened Steam Socket NS_CLIENT ( socket 1616 )
Network: IP 192.168.1.49, mode MP, dedicated No, ports 27015 SV / 27005 CL
env_cubemap used on world geometry without rebuilding map. . ignoring: metal/metalwall_bts_001b
Host_NewGame on map bendy_portalem
exec: couldn't exec skill1.cfg
==== calling mapspawn.nut
Unable to load sprite material materials/sprites/gunsmoke.vmt!
Unable to load sprite material materials/sprites/bubble.vmt!
PrecacheScriptSound 'Fire.Plasma' failed, no such sound script entry
Commentary: Could not find commentary data file 'maps/bendy_portalem_commentary.txt'.
1.000:  Sending UDP connect to public IP 127.0.0.1:27015
Server using '<none>' lobbies, requiring pw no, lobby id 0
RememberIPAddressForLobby: lobby 0 from address loopback
Can't find factory for entity: wearable_item
NULL Ent in UTIL_PrecacheOther
[PORTAL2 PUZZLEMAKER]  --------START loading assets--------

[PORTAL2 PUZZLEMAKER]  ---------END loading assets---------

==== calling mapspawn.nut
Connection to Steam servers successful.
   VAC secure mode is activated.
***********************************
*         NO GAME SESSION         *
* some features might be disabled *
* (achievements, stats, UI, etc.) *
***********************************
289 gametitle fade
Redownloading all lightmaps

I must do something wrong, but what?

I'd suggest you to read this tutorrial about pakrat because it looks like there are missing materials that you might not include into the bsp...

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

In fact, this was not a problem related with custom textures.
If, in the Map Properties, you set a fade in and force the title of the map to be displayed, Portal 2 crashes!