Replacing files in a Portal 2 Mod

Avatar
Aliensoldier
20 Posts
Posted Feb 11, 2012

Hey everybody!
Since the VPK addons don't work anymore I decided to ship my mappack as a mod for Portal 2 when it's done. But there's a little problem:
No matter which file I replace in the mod's subfolder, ingame the engine still uses the original files from Portal 2.
For example, I tried to replace the backgroundvideo in the mainmenu.
It's called "menu_act01.bik". My video got the same name, I've put it in the media folder and the pak01_dir.vpk, but it still does not show up ingame.
Is this problem familiar to someone?
Thanks for every answer! :smile:

btw, I used this tutorial:

http://www.se51.net/2011/09/15/how-to-m ... tal-2-mod/

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Feb 11, 2012
Replied 5 hours later
Try making an addon mod. Put your pak01_dir vpk in a portal2_dlc4 folder in portal 2
Avatar
Aliensoldier
20 Posts
Posted Feb 11, 2012
Replied 2 hours later
Does not work, the game does not read the files.
Is there really no way anymore to replace the original files in the mod...?
Avatar
Pitkakorvaa
200 Posts
Posted Feb 11, 2012
Replied 10 minutes later
What do you mean with replacing files? Menu background, menu music, fonts, what? If so, check out this tutorial if you haven't yet
Avatar
Lpfreaky90
2,842 Posts
Posted Feb 11, 2012
Replied 7 minutes later

Aliensoldier wrote:
Hey everybody!
Since the VPK addons don't work anymore I decided to ship my mappack as a mod for Portal 2 when it's done. But there's a little problem:
No matter which file I replace in the mod's subfolder, ingame the engine still uses the original files from Portal 2.
For example, I tried to replace the backgroundvideo in the mainmenu.
It's called "menu_act01.bik". My video got the same name, I've put it in the media folder and the pak01_dir.vpk, but it still does not show up ingame.
Is this problem familiar to someone?
Thanks for every answer! :smile:

btw, I used this tutorial:
http://www.se51.net/2011/09/15/how-to-m ... tal-2-mod/

That's odd: for me it's working!
let's see what I did:
I have my menu background in C:\Program Files (x86)\Steam\steamapps\sourcemods\portal_stories_demo\media\menu_act01.bik (so I didn't pack them to the vpk)

One thing you have to be careful with though is that your progress in portal 2 is read in the mod.
menu_act01 is the default one, 2 is loaded when you're in the escape chapter, 3 is loaded when you're at cave's time, 04 is after the return, and 05 is loaded after you finished the game. So replacing only one of those files will show it to some people and not to some other people.

So if you want one background in your mod make sure you re-name the movie 5 times to menu_act01.bik, menu_act02.bik etc.

Avatar
Lpfreaky90
2,842 Posts
Posted Feb 11, 2012
Replied 1 minutes later

Pitkakorvaa wrote:
What do you mean with replacing files? Menu background, menu music, fonts, what? If so, check out this tutorial if you haven't yet

This is the site which he followed.

@OP: The main advantage of a mod is actually the fact that you can override original files. If you want you can sent what you have so far and I can take a look :smile:

Avatar
Aliensoldier
20 Posts
Posted Feb 11, 2012
Replied 1 hour later

lpfreaky90 wrote:

That's odd: for me it's working!
let's see what I did:
I have my menu background in C:\Program Files (x86)\Steam\steamapps\sourcemods\portal_stories_demo\media\menu_act01.bik (so I didn't pack them to the vpk)

Yea, that's exactly what I did, but it does not work for some reason... :sad:
And yes, I know it works for you. I played your mod's demo, was pretty nice. :razz:

But back to topic:
Did ya copy any other files from the original Portal 2? From the bin folder or something? Maybe some scripts?

lpfreaky90 wrote:
If you want you can sent what you have so far and I can take a look :smile:

What exaclty do you mean? Sending you the files I've got in my mod folder, screenshots? :razz:

Advertisement
Registered users don’t see ads! Register now!
Avatar
Aliensoldier
20 Posts
Posted Feb 12, 2012
Replied 21 hours later
Alright, I got it working. Just had to make a little change in GameInfo.txt :razz: