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

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

Postby Omnicoder » Tue Aug 02, 2011 12:13 pm

First, download my template from here.
Extract the files and copy the portal2_test folder to steam\steamapps\common\portal2\.
Image


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.)
Image


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.
Last edited by Omnicoder on Wed Aug 03, 2011 9:38 pm, edited 2 times in total.
User avatar
Omnicoder
Community Contributor
 
Posts: 308
Joined: Jun 19, 2009

Registered users don't see ads! Register now!
 

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

Postby Another Bad Pun » Tue Aug 02, 2011 12:27 pm

:potd:
User avatar
Another Bad Pun
Community Contributor
 
Posts: 498
Joined: Feb 26, 2011
Location: Definitely NOT Alaska

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

Postby Rubrica » Tue Aug 02, 2011 12:41 pm

So, is this a sign if things to come - are we going to be seeing a mod from you any time soon? :D I hope so, anyway.
Image
ImageImageImageImage
Rubrica
Community Contributor
 
Posts: 308
Joined: Jun 11, 2011

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

Postby lastnovember » Tue Aug 02, 2011 1:11 pm

OH..the possibilities.
User avatar
lastnovember
I was told I would get $60 if I posted on the forum
 
Posts: 7
Joined: Aug 1, 2011

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

Postby yohoat9 » Tue Aug 02, 2011 5:57 pm

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?
Portal 1.5 http://www.moddb.com/mods/portal-15
User avatar
yohoat9
Estás usando este software de traducción de forma incorrecta. Por favor consulta el manual.
 
Posts: 276
Joined: May 10, 2009

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

Postby Omnicoder » Tue Aug 02, 2011 7:29 pm

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.
User avatar
Omnicoder
Community Contributor
 
Posts: 308
Joined: Jun 19, 2009

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

Postby ChickenMobile » Tue Aug 02, 2011 10:28 pm

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.
                             Image
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,400
Joined: May 9, 2011
Location: Canberra, Australia

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

Postby yohoat9 » Wed Aug 03, 2011 5:03 pm

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.
Portal 1.5 http://www.moddb.com/mods/portal-15
User avatar
yohoat9
Estás usando este software de traducción de forma incorrecta. Por favor consulta el manual.
 
Posts: 276
Joined: May 10, 2009

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

Postby Omnicoder » Wed Aug 03, 2011 9:39 pm

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.
User avatar
Omnicoder
Community Contributor
 
Posts: 308
Joined: Jun 19, 2009

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

Postby yohoat9 » Wed Aug 03, 2011 10:36 pm

That stops the crashing, but is it normal to get the "NO STEAM" menu?
Portal 1.5 http://www.moddb.com/mods/portal-15
User avatar
yohoat9
Estás usando este software de traducción de forma incorrecta. Por favor consulta el manual.
 
Posts: 276
Joined: May 10, 2009

Registered users don't see ads! Register now!
 

Return to Hammer and Modding



Who is online

Users browsing this forum: wildgoosespeeder and 1 guest