how do i make a portal 2 sourcemod?

Avatar
tile
380 Posts
Posted Nov 08, 2013
hi. i know there's maybe a thread here already somewhere, but...

how do i make a stand alone portal 2 mod? like, the kind that shows up in steam library with custom logo etc. the system error 51 thing doesn't work for me.

Advertisement
Registered users don’t see ads! Register now!
Avatar
iWork925
1,080 Posts
Posted Nov 09, 2013
Replied 2 hours later

http://bit.ly/1dTCtHd

Avatar
Lpfreaky90
2,842 Posts
Posted Nov 09, 2013
Replied 4 hours later
Actually; the vdc page about this is totally silly, I should update it, but I don't have the time atm.

Anyways:
Step 1: Create a folder in your sourcemods folder:
so steam/steamapps/sourcemods/myfirstmod

Step 2: in that folder; create a cfg folder and a maps folder.

Step 3: in the maps folder create a soundcache folder
(so steam/steamapps/sourcemods/myfirstmod/maps/soundcache) and copy your _master.cache from your original portal 2.

Step 4:
Write your gameinfo.txt:

"GameInfo"
{
    game        "My first mod"
    title       "My first mod"
    
    gamelogo    1

    SupportsDX8     0
    SupportsXbox360 1

    FileSystem
    {
        SteamAppId 620      // Portal 2 has ID 620
        ToolsAppId 211      // Hammer

        SearchPaths
        {
            Game                |gameinfo_path|.
            Game                portal2
        }
    }
}

Step 5:
use gcfscape to grab mainmenu_new.res from the portal2/portal2_dlc2 vpk.
(in there it's resource/ui/basemodui ) ; edit it, and make it into a vpk with the same structure.

Step 6:
restart steam

Step 7:
profit!

WARNING: for some reason mods download all the workshop content again -_- so you might want to keep that in mind; it might take up more space than you planned. You can create a /workshop/ folder in maps and revoke write access to it to prevent it, this will spam red errors in the console though.

Avatar
tile
380 Posts
Posted Nov 09, 2013
Replied 18 hours later
thanks. :smile:
Avatar
ezio160324
33 Posts
Posted Nov 19, 2013
Replied 9 days later
just a thought here, but isn't the play button broken in the main menu?
Avatar
Gemarakup
1,183 Posts
Posted Nov 19, 2013
Replied 11 minutes later
Do you mean replacing it with the extras menu? I don't know, because there are some Portal 2 mods out there that use the regular play button.
Avatar
ezio160324
33 Posts
Posted Nov 19, 2013
Replied 9 hours later

yishbarr wrote:
Do you mean replacing it with the extras menu? I don't know, because there are some Portal 2 mods out there that use the regular play button.

nah I mean that it gets you stuck in a black screen loop that you can do nothing with. maybe it's cuz I was using the wrong technique. I used the system error 51 way.

EDIT: nevermind, now it just crashes... a CTD

Avatar
Gemarakup
1,183 Posts
Posted Nov 20, 2013
Replied 13 hours later
SE51's tut is outdated. Things need to be changed around.
Avatar
ezio160324
33 Posts
Posted Nov 20, 2013
Replied 1 hour later
yeah i actually started over with the one here and that's what brought it to crashing
Avatar
Lpfreaky90
2,842 Posts
Posted Nov 20, 2013
Replied 49 minutes later

yishbarr wrote:
Do you mean replacing it with the extras menu? I don't know, because there are some Portal 2 mods out there that use the regular play button.

what mods use that? All mods I've seen so far use the extra's menu modification. If someone actually got he real singleplayer menu modded, I'll happily steal their code :biggrin:

Avatar
Gemarakup
1,183 Posts
Posted Nov 20, 2013
Replied 52 minutes later
Wibi!, The Stanley Parable, A&K (probably).
Avatar
CamBen
973 Posts
Posted Nov 20, 2013
Replied 36 minutes later

yishbarr wrote:
Wibi!, The Stanley Parable, A&K (probably).

Is the Stanley parable portal 2 based? Also, the way wibi did it was by forcing the game to run off a different dlc folder to override the core game temporarily, its not a true source mod.

Avatar
Gemarakup
1,183 Posts
Posted Nov 20, 2013
Replied 27 minutes later
Oh, right. But the Stanley Parable uses the Portal 2 engine.
Avatar
ezio160324
33 Posts
Posted Nov 20, 2013
Replied 49 minutes later
So my question remains, how do I do it? I am intrigued.
Avatar
Lpfreaky90
2,842 Posts
Posted Nov 20, 2013
Replied 4 hours later

ezio160324 wrote:
So my question remains, how do I do it? I am intrigued.

post101116.html#p101116

Avatar
ezio160324
33 Posts
Posted Nov 20, 2013
Replied 14 minutes later

Lpfreaky90 wrote:
ezio160324 wrote:

So my question remains, how do I do it? I am intrigued.

post101116.html#p101116

you don't get it, the play button does not work. i wanna know how to get the play button working.

Avatar
FelixGriffin
2,680 Posts
Posted Nov 20, 2013
Replied 23 minutes later
I just replaced the outdated VDC article with a modified copy of Lp's instructions. Try following that, I tried to explain some of the steps and give full file paths.
Avatar
ezio160324
33 Posts
Posted Nov 20, 2013
Replied 14 minutes later
and the "play" button in the main menu worked?
Avatar
Lpfreaky90
2,842 Posts
Posted Nov 21, 2013
Replied 18 hours later

ezio160324 wrote:
and the "play" button in the main menu worked?

Nope, you modify the extras menu. As far as I know no one has been able to modify the normal main menu stuff. :sad:

Advertisement
Registered users don’t see ads! Register now!
Avatar
ezio160324
33 Posts
Posted Nov 21, 2013
Replied 6 minutes later

Lpfreaky90 wrote:
ezio160324 wrote:

and the "play" button in the main menu worked?

Nope, you modify the extras menu. As far as I know no one has been able to modify the normal main menu stuff. :sad:

so you have to make the play button lead to the extras menu? i contacted Valve about this so maybe they will release an update for the Authoring Tools to help modders