Packing .bik and scripts with pakrat?
1) Pack everything into a .zip and have the player drop all of it into the correct folders.
(This kills my custom light board script as it would need to overwrite a gamefile, and it's tough for the player to install)
2) Create a mod.
(This seems like overkill for just one map)
3) Pack everything extra into your .bsp using pakrat
(I love this option it keeps everything down to one file and keeps all of my custom content working)
The problem, and the reason I am posting is, I have no idea what paths to give the files inside of pakrat to have them work in game.
I am trying to include a .bik video, a .nut screen splitter script, and a light board .txt script.
Their names respectively are:
"pneumatic_diversity.bik", "optics_and_pneumatics_video_splitter.nut", and "sp_lightboard_icons.txt"
At this point I have included these files into my bsp manually with pakrat and set their paths to the standard file structure of the "portal 2" folder. Their current respective paths are:
"media", "scripts/vscripts/videos", and "scripts/vscripts/transitions"
The path for the "optics_and_pneumatics_video_splitter.nut" script is set correctly in my map and the master vgui_movie_display's are set with no movie file name (this seems to make no difference when the files are in the correct place and I assume that the "optics_and_pneumatics_video_splitter.nut" decides what video to play overall anyway). Additionally all of the scripts and video have been tested when not packed in the .bsp and worked perfectly.
What to do? Do the files have incorrect paths? If so does anyone know the correct ones?
now open your file in pakrat and drag the files on... it will ask you if it can change the file path... say yes, the program is smarter than you.
if you don't want to make a separate folder for your custom content... if you've placed these files in the portal2 file architecture just drag them straight from there over to your bsp, again pak rat will ask to change the file path.. let it
all content filepaths are all in relation to your \Steam\steamapps\common\portal 2\portal2 folder
so yes those filepaths seem fine
quick note: sp_lightboard_icons.txt (actually all .txt files) don't work with pakrat, see this topic:
mapping-help/custom-sp-lightboard-icons-txt-in-a-map-t5726.html
Didn't someone mention what order the vpk's are used? DLC, Update, then the normal portal folder?
If that is the case, create a portal2_dlc2/3/... folder and dump your .vpk there (with all the appropriate folders). Very sure that Valve will not release their second DLC anytime soon, but I would make it portal2_dlc3 just in case.
chickenmobile wrote:
Well if it worked packed I think Valve would have made all their files packed into their main vpk instead of including some of the files inside physical folders. (All of their media is in actual folders too).Didn't someone mention what order the vpk's are used? DLC, Update, then the normal portal folder?
If that is the case, create a portal2_dlc2/3/... folder and dump your .vpk there (with all the appropriate folders). Very sure that Valve will not release their second DLC anytime soon, but I would make it portal2_dlc3 just in case.
I don't know about that since there are already people in the beta. But yea; I've also been in the CS:GO beta since november and the game is also planned for a Q2 release.
So I'd go for portal2_dlc_3 or portal2_dlc_4 so you're sure it won't give a problem any time soon.
EDIT: Tested the .nut... no cigar.