Please or Register to create posts and topics.

Proper Chapter Menus and Titles?

PreviousPage 2 of 2

Is there even a point to the chapter cfg files? It doesn't look like it since they only go up to Chapter 6 (at least for me) and there are more than 6 chapters in the game of Portal 2. It also seems odd that Valve (might have) hard coded the chapters into a dll file instead of maybe into a vpk file, but that's just me.

Oh hey, I'm in a box!
[spoiler]Image
Currently Working On:
Portal 2 Mod: Currently Dubbed Project Aftermath
Finished Portal Work:
None... yet.
Links:
My Steam Profile[/spoiler]
DigitalMan wrote:
Is there even a point to the chapter cfg files? It doesn't look like it since they only go up to Chapter 6 (at least for me) and there are more than 6 chapters in the game of Portal 2. It also seems odd that Valve (might have) hard coded the chapters into a dll file instead of maybe into a vpk file, but that's just me.

I think they're a remnant of early Portal 2 development. Other Source games all use them, only Portal 2 and (I think) L4D2 doesn't.

Portal 2 doesn't use the standard chapter select screen/dialog we see like in Portal 1 and HL2..

I decided to try to see what would happen with the challenge mode in my mod. If I try to go into one of the official maps, it does the same thing as it does when you try to start a chapter. If I try to connect to one of my maps by putting it in the txt file, it just puts me back on the main menu with a dialogue box that says that the requested test chamber is unavailable. I doubt this information is useful, but you never know.

Oh hey, I'm in a box!
[spoiler]Image
Currently Working On:
Portal 2 Mod: Currently Dubbed Project Aftermath
Finished Portal Work:
None... yet.
Links:
My Steam Profile[/spoiler]

I think its possible to make a mod work just like portal 2 does but alot of editing would need to be done to portals main res files and a few other files to change paths etc then redone into your own pak vpk.No idea of all the files but i've been slowly going through them when I have time.

andyb wrote:
I think its possible to make a mod work just like portal 2 does but alot of editing would need to be done to portals main res files and a few other files to change paths etc then redone into your own pak vpk.No idea of all the files but i've been slowly going through them when I have time.

Thing is, the chapter select menu is hardcoded into the game. If they were in the res files we'd have found them by now.

Everything else is doable of course. We just can't use the New Game/Challenge Mode menus. :/

I found a "singleplayer.res" in "resource/ui/basemodui" It is the SP-menu. But changes in there do not affect the game.

DigitalMan wrote:
Another problem I have is that my mod doesn't seem to like reading the portal2_english file.

You need to copy the portal2_english.txt to your mod, renamed as <modname>_english.txt, where <modname> is the folder name of the mod in sourcemods. You could also not be anglocentric and copy and rename all the other language files, too.

Expand for my full signature
[spoiler]My YouTube Channel: Please subscribe!
My Steam Workshop Check out my collections for some good maps
Basic Mod for playing .vpk files Needs to be updated for dlc2, but still works[/spoiler]

I'm also trying to make a mod and need to start my maps in the chapter selection screen. By entering the command developer 3 in the console, I get this when I try to load a custom map from there:

Code: Select all
Created CMatchSessionOfflineCustom:
  settings {
    system {
      network offline
      access public
    }
    game {
      mode sp
      map sp_a1_intro1
    }
    options {
      action create
    }
  }
InitializeDlcMachineSettings: [mask:0x6]
CMatchSessionOfflineCustom::InitializeGameSettings adjusted settings:
  settings {
    system {
      network offline
      access public
    }
    game {
      mode sp
      map sp_a1_intro1
      mp_coop_start int( 1 = 0x1 )
      state lobby
      dlcrequired u64( 0 = 0x0 )
    }
    options {
      action create
      server listen
    }
    members {
      numMachines int( 1 = 0x1 )
      numPlayers int( 1 = 0x1 )
      numSlots int( 1 = 0x1 )
      machine0 {
        id u64( 76561198041187132 = 0x110000104D2C33C )
        flags u64( 0 = 0x0 )
        numPlayers int( 1 = 0x1 )
        dlcmask u64( 6 = 0x6 )
        tuver 20110805
        ping int( 0 = 0x0 )
        player0 {
          xuid u64( 76561198041187132 = 0x110000104D2C33C )
          name FelipeCaners
          game {
            mp_coop_start int( 1 = 0x1 )
          }
        }
      }
    }
  }
SignalXWriteOpportunity(2)

It looks like a default Portal 2 script, although I'm not sure. Since Portal 2 has a lot of scripts to handle a lot of things (as I found out modding the game), this bit of code could belong to some script.

Has someone figured out how to load custom maps from the chapter selection screen?

Felipe, that part of the menu is hard-coded and it always returns errors... are you aware that there's a workaround to use the menu and introduce custom chapters names by using the 'Extras' part of the main menu? I guess you do, but in the case you don't, check here

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

Yes, I already knew about the workaround. I will try looking for anything in the script files, but if it's really hard-coded, I will use the "Extras" menu.

PreviousPage 2 of 2