[Guide] How to make a mod and replace VPK content

Avatar
Omnicoder
299 Posts
Posted Aug 02, 2011
First, download my template from here.
Extract the files and copy the portal2_test folder to *steam\steamapps\common\portal2*.
img

To replace existing content:
Create a new folder named pak01_dir and put your content structure in there. (eg. pak01_dir\materials, pak01_dir\models.) Drag this folder onto portal2\bin\vpk.exe. Copy your new pak01_dir.vpk into the mod template folder (portal2_test by default.)
img

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.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Another Bad Pun
516 Posts
Posted Aug 02, 2011
Replied 14 minutes later
:potd:
Avatar
Rubrica
305 Posts
Posted Aug 02, 2011
Replied 13 minutes later
So, is this a sign if things to come - are we going to be seeing a mod from you any time soon? :biggrin: I hope so, anyway.
Avatar
lastnovember
6 Posts
Posted Aug 02, 2011
Replied 30 minutes later
OH..the possibilities.
Avatar
yohoat9
274 Posts
Posted Aug 02, 2011
Replied 4 hours later
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?
Avatar
Omnicoder
299 Posts
Posted Aug 02, 2011
Replied 1 hour later

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.

Avatar
ChickenMobile
2,460 Posts
Posted Aug 02, 2011
Replied 2 hours later
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.
Avatar
yohoat9
274 Posts
Posted Aug 03, 2011
Replied 18 hours later

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.

Avatar
Omnicoder
299 Posts
Posted Aug 03, 2011
Replied 4 hours later

yohoat9 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.

Advertisement
Registered users don’t see ads! Register now!
Avatar
yohoat9
274 Posts
Posted Aug 03, 2011
Replied 57 minutes later
That stops the crashing, but is it normal to get the "NO STEAM" menu?