Custom mod: custom mainmenu won't show?

Avatar
SilverStreak88
6 Posts
Posted Sep 05, 2014
Does anybody know how to create a custom main-menu layout, up to date? B/C when I looked on the Valve developer wiki, it said to find a mainmenu_new.res in the pak01_dir file, except I have no such file.. And when I followed a tutorial on ModDB (http://www.moddb.com/mods/millennium/tu ... rtal-2-mod), I couldn't get past the part with the custom menu... I packed it successfully in the pak01_dir, and set the settings correctly, except my custom mainmenu screen won't appear, it just gives me the default one.. However - I click on the "Extras" button, and it brings me my own chapter setup, also shown in the link above...
Does anyone have any tips to guide me in the right direction?
TIA
Advertisement
Registered users don't see ads! Register now!
Avatar
Lpfreaky90
2,842 Posts
Posted Sep 05, 2014
Replied 2 hours later
to get mainmenu_new.res you should use the pak01_dir file from your portal 2/portal2_dlc2 folder
Avatar
SilverStreak88
6 Posts
Posted Sep 08, 2014
Replied 2 days later
Thanks dude ur awesome!
Avatar
Lpfreaky90
2,842 Posts
Posted Sep 13, 2014
Replied 5 days later
I'll just post the thing I just wrote in a pm here as well just so it's easier to find for future reference:

To get your mod working you need:
1) a folder in your steam/steamapps/sourcemods/ with your mod's name:
- steam/steamapps/sourcemods/testmod.

2) now in that folder create a gameinfo.txt:

"GameInfo"
{

   game       "Portal 2: testmod"
   title       "Portal 2: testmod"
   GameData   "portal2.fgd"
   gamelogo    0

   SupportsDX8     0
   SupportsXbox360 1

   Singleplayeronly 0

   FileSystem
   {
      SteamAppId            620      // This will mount all the GCFs we need (620 = Portal 2)
      ToolsAppId            211      // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
      

      SearchPaths
      {
         Game            |gameinfo_path|.
         Game            update
         Game            platform
         Game            portal2_dlc2
         Game            portal2_dlc1
         Game            portal2


      }
   }
}

step 3:
create a /scripts folder in your main folder and copy over extras.txt from portal 2 dlc 2: SteamApps\common\Portal 2\portal2_dlc2\scripts and put it in your testmod/scripts/ folder.
You can edit this later to point to your own maps.

Step 4:
create the folder Steam\SteamApps\sourcemods\testmod\resource\ui\basemodui

step 5: open up the portal2_dlc2 vpk up: SteamApps\common\Portal 2\portal2_dlc2\pak01_dir.vpk
in there browse to resource\ui\basemodui\ and copy over mainmenu_new.res and put them in your previously created folder.

step 6: optional, but highly recommended
create a testmod\maps\soundcache\ folder and copy over the _master.cache from SteamApps\common\Portal 2\portal2_dlc2\maps\soundcache

Avatar
SecretComing
90 Posts
Posted Oct 21, 2014
Replied 1 month later
hey lpfreaky can my portal 2 use content from others games? like half life 2 that use another engine or the stanley parable that uses the same engine?
Advertisement
Registered users don't see ads! Register now!
Avatar
TeamSpen210
608 Posts
Posted Oct 21, 2014
Replied 46 minutes later
Source engine stuff is basically cross-compadible with each other, so for most models it's as easy as copying the required files from the other game to Portal's folders. Alternately you can edit your gameinfo.txt (for your new mod, don't do it to base P2) to list folders for other games. This way it will automatically load in all the content for that other game.