[Guide] How to make a mod and replace VPK content
Quote from Omnicoder on August 2, 2011, 1:13 pmFirst, download my template from here.
Extract the files and copy the portal2_test folder to steamsteamappscommonportal2.To replace existing content:
Create a new folder named pak01_dir and put your content structure in there. (eg. pak01_dirmaterials, pak01_dirmodels.) Drag this folder onto portal2binvpk.exe. Copy your new pak01_dir.vpk into the mod template folder (portal2_test by default.)To launch the mod:
Either create a shortcut or batch file that launches portal2.exe -game portal2_test -steam (you'll need to change portal2_test when you rename the mod).
I've also made a batch file that allows you to launch a mod folder by dragging it onto the batch file for your testing convenience.Be aware the mod uses independent settings from Portal 2 (bindings, screen resolution, etc.)
If you get a crash:
Delete modelsounds.cache and replace bin and cfg with the ones from your portal2 folder.
First, download my template from here.
Extract the files and copy the portal2_test folder to steamsteamappscommonportal2.
To replace existing content:
Create a new folder named pak01_dir and put your content structure in there. (eg. pak01_dirmaterials, pak01_dirmodels.) Drag this folder onto portal2binvpk.exe. Copy your new pak01_dir.vpk into the mod template folder (portal2_test by default.)
To launch the mod:
Either create a shortcut or batch file that launches portal2.exe -game portal2_test -steam (you'll need to change portal2_test when you rename the mod).
I've also made a batch file that allows you to launch a mod folder by dragging it onto the batch file for your testing convenience.
Be aware the mod uses independent settings from Portal 2 (bindings, screen resolution, etc.)
If you get a crash:
Delete modelsounds.cache and replace bin and cfg with the ones from your portal2 folder.
Quote from Another Bad Pun on August 2, 2011, 1:27 pm
Quote from Rubrica on August 2, 2011, 1:41 pmSo, is this a sign if things to come - are we going to be seeing a mod from you any time soon?
I hope so, anyway.
So, is this a sign if things to come - are we going to be seeing a mod from you any time soon? I hope so, anyway.
Quote from lastnovember on August 2, 2011, 2:11 pmOH..the possibilities.
OH..the possibilities.
Quote from yohoat9 on August 2, 2011, 6:57 pmCan you get a little more detailed on how to create the batch file? Also when I try to launch it crashes, is that normal?
Can you get a little more detailed on how to create the batch file? Also when I try to launch it crashes, is that normal?
Quote from Omnicoder on August 2, 2011, 8:29 pmyohoat9 wrote:Can you get a little more detailed on how to create the batch file? Also when I try to launch it crashes, is that normal?I provided an example batch file. And take a screenshot of how Portal 2 looks when it crashes and I'll look into it.
I provided an example batch file. And take a screenshot of how Portal 2 looks when it crashes and I'll look into it.

Quote from ChickenMobile on August 2, 2011, 11:28 pmCreating vpk's for portal is the same as l4d2. I bet there are also tutorials on L42 mapping forums somewhere if you need extra information.
Creating vpk's for portal is the same as l4d2. I bet there are also tutorials on L42 mapping forums somewhere if you need extra information.
Quote from yohoat9 on August 3, 2011, 6:03 pmOmnicoder wrote:yohoat9 wrote:Can you get a little more detailed on how to create the batch file? Also when I try to launch it crashes, is that normal?I provided an example batch file. And take a screenshot of how Portal 2 looks when it crashes and I'll look into it.
I would take a screenshot, but it doesn't really show anything like an error or anything. It just closes right after the valve and source logos.
I provided an example batch file. And take a screenshot of how Portal 2 looks when it crashes and I'll look into it.
I would take a screenshot, but it doesn't really show anything like an error or anything. It just closes right after the valve and source logos.
Quote from Omnicoder on August 3, 2011, 10:39 pmyohoat9 wrote:Omnicoder wrote:yohoat9 wrote:Can you get a little more detailed on how to create the batch file? Also when I try to launch it crashes, is that normal?I provided an example batch file. And take a screenshot of how Portal 2 looks when it crashes and I'll look into it.
I would take a screenshot, but it doesn't really show anything like an error or anything. It just closes right after the valve and source logos.
See the bottom of my first post for a fix that has worked for most people.
I provided an example batch file. And take a screenshot of how Portal 2 looks when it crashes and I'll look into it.
I would take a screenshot, but it doesn't really show anything like an error or anything. It just closes right after the valve and source logos.
See the bottom of my first post for a fix that has worked for most people.
Quote from yohoat9 on August 3, 2011, 11:36 pmThat stops the crashing, but is it normal to get the "NO STEAM" menu?
That stops the crashing, but is it normal to get the "NO STEAM" menu?