[Tutorial] BSPzip for Portal 2
Quote from naitoookami on May 7, 2011, 4:13 pmAfter searching through google and trying a bunch of various commands i finally found a way to get your textures, sounds, models, etc into all of your portal 2 maps.
Required things
1. Alien Swarm ( its free! )
2. Portal 2 ( obviously )
3. Common sense ( cant do without! )NOTE: Anything in brackets you MUST replace with your own file names!
First open up notepad and type in the following.
- Code: Select all
START "" "C:Program Files (x86)Steamsteamappscommonalien swarmbinbspzip.exe"
That will simply open up bspzip, this bspzip supports portal 2's bsp version (21). The next thing you need to do is put in the parameters for bspzip to put your textures and sounds and such into your map simply type this in right next to what you typed before do not press enter at all during any of this.
- Code: Select all
"-addfile" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]" "[your sound, texture, etc]" "C:Program Files (x86)Steamsteamappscommonportal 2portal2[your sound, texture, etc]" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]"
Heres an example of everything put together
- Code: Select all
START "" "C:Program Files (x86)Steamsteamappscommonalien swarmbinbspzip.exe" "-addfile" "C:Program Files (x86)Steamsteamappscommonportal 2portal2mapssp_gravity_trials1.bsp" "soundbrepic.wav" "C:Program Files (x86)Steamsteamappscommonportal 2portal2soundbrepic.wav" "C:Program Files (x86)Steamsteamappscommonportal 2portal2mapssp_gravity_trials1.bsp"
Now that you have told bspzip what to do simply save the file anywhere your computer and name it "[yourname].bat", run it, open portal 2, open map, and enjoy your zipped in customs.
UPDATE
I almost forgot this, THE ABOVE WILL ONLY WORK FOR SINGLE FILES TO ADD MULTIPLE FILES VIEW BELOWAdding multiple files is not as easy as adding single files and is in fact alot more confusing.
First thing you need to do is type in the following into a notepad document
- Code: Select all
START "" "C:Program Files (x86)Steamsteamappscommonalien swarmbinbspzip.exe"
Yes it is the same as the single one but the parameters are where it gets harder because of the fact that BSPzip requires there to be a full list of all the files you want to add into your BSP. To make this work you will need to create one of these lists by doing the following
open up a new notepad window and type in the following again REPLACE ALL BRACKETS WITH YOUR FILES!
- Code: Select all
"[your first texture, model, sound, etc here]"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2[your first texture, model, sound ,etc here]"
"[your second texture, model, sound, etc here]"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2[your second texture, model, sound ,etc here"That is the basic structure of your list you can name it anything you want as long as its a txt file, heres an example of what it should look like.
- Code: Select all
"soundbrepic.wav"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2soundbrepic.wav"
"soundbrepic.wav"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2soundbrepic.wavIn a short explanation the shorter file paths are where the file will go after zipped into your BSP and the longer ones are where the files are located on your hard drive. Now that you have created your list and saved it the process gets a whole lot easier, just type the following text into your first notepad window
- Code: Select all
"-addorupdatelist" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]" "[file list location]" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]"
You can also replace -addorupdatelist with -addlist but the -addorupdatelist parameter will allow you to add new files to the same text file and then update your zipped files easily.
Hope this helps alot of you mappers out there!
After searching through google and trying a bunch of various commands i finally found a way to get your textures, sounds, models, etc into all of your portal 2 maps.
Required things
1. Alien Swarm ( its free! )
2. Portal 2 ( obviously )
3. Common sense ( cant do without! )
NOTE: Anything in brackets you MUST replace with your own file names!
First open up notepad and type in the following.
- Code: Select all
START "" "C:Program Files (x86)Steamsteamappscommonalien swarmbinbspzip.exe"
That will simply open up bspzip, this bspzip supports portal 2's bsp version (21). The next thing you need to do is put in the parameters for bspzip to put your textures and sounds and such into your map simply type this in right next to what you typed before do not press enter at all during any of this.
- Code: Select all
"-addfile" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]" "[your sound, texture, etc]" "C:Program Files (x86)Steamsteamappscommonportal 2portal2[your sound, texture, etc]" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]"
Heres an example of everything put together
- Code: Select all
START "" "C:Program Files (x86)Steamsteamappscommonalien swarmbinbspzip.exe" "-addfile" "C:Program Files (x86)Steamsteamappscommonportal 2portal2mapssp_gravity_trials1.bsp" "soundbrepic.wav" "C:Program Files (x86)Steamsteamappscommonportal 2portal2soundbrepic.wav" "C:Program Files (x86)Steamsteamappscommonportal 2portal2mapssp_gravity_trials1.bsp"
Now that you have told bspzip what to do simply save the file anywhere your computer and name it "[yourname].bat", run it, open portal 2, open map, and enjoy your zipped in customs.
UPDATE
I almost forgot this, THE ABOVE WILL ONLY WORK FOR SINGLE FILES TO ADD MULTIPLE FILES VIEW BELOW
Adding multiple files is not as easy as adding single files and is in fact alot more confusing.
First thing you need to do is type in the following into a notepad document
- Code: Select all
START "" "C:Program Files (x86)Steamsteamappscommonalien swarmbinbspzip.exe"
Yes it is the same as the single one but the parameters are where it gets harder because of the fact that BSPzip requires there to be a full list of all the files you want to add into your BSP. To make this work you will need to create one of these lists by doing the following
open up a new notepad window and type in the following again REPLACE ALL BRACKETS WITH YOUR FILES!
- Code: Select all
"[your first texture, model, sound, etc here]"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2[your first texture, model, sound ,etc here]"
"[your second texture, model, sound, etc here]"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2[your second texture, model, sound ,etc here"
That is the basic structure of your list you can name it anything you want as long as its a txt file, heres an example of what it should look like.
- Code: Select all
"soundbrepic.wav"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2soundbrepic.wav"
"soundbrepic.wav"
"C:Program Files (x86)Steamsteamappscommonportal 2portal2soundbrepic.wav
In a short explanation the shorter file paths are where the file will go after zipped into your BSP and the longer ones are where the files are located on your hard drive. Now that you have created your list and saved it the process gets a whole lot easier, just type the following text into your first notepad window
- Code: Select all
"-addorupdatelist" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]" "[file list location]" "C:Program Files (x86)Steamsteamappscommonportal 2portal2maps[yourmapname]"
You can also replace -addorupdatelist with -addlist but the -addorupdatelist parameter will allow you to add new files to the same text file and then update your zipped files easily.
Hope this helps alot of you mappers out there!
Quote from msleeper on May 7, 2011, 4:15 pmAwesome post!
Awesome post!
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Quote from Hober on May 7, 2011, 6:18 pmWe need some version of medals, the inverse of the old warning system, that we can award to people for stuff like this and Nacimota's demo maps. Excellent work, sir.
We need some version of medals, the inverse of the old warning system, that we can award to people for stuff like this and Nacimota's demo maps. Excellent work, sir.
Quote from msleeper on May 7, 2011, 6:21 pmI can probably use something with user ranks, like what I have at F7.
I can probably use something with user ranks, like what I have at F7.
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Quote from naitoookami on May 7, 2011, 8:01 pmGood news! My friend who is skilled in codeing is making a small GUI for this it will ONLY work for portal 2 though.
Good news! My friend who is skilled in codeing is making a small GUI for this it will ONLY work for portal 2 though.
Quote from msleeper on May 7, 2011, 8:05 pmThere's already a GUI for this, it's called Pakrat.
There's already a GUI for this, it's called Pakrat.
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Quote from naitoookami on May 7, 2011, 8:18 pmmsleeper wrote:There's already a GUI for this, it's called Pakrat.though pakrat doesn't work with portal 2 i have already tried it
though pakrat doesn't work with portal 2 i have already tried it