Proper Chapter Menus and Titles?
Quote from DigitalMan on January 21, 2012, 6:23 amIs 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.
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.
[spoiler]

Currently Working On:
Portal 2 Mod: Currently Dubbed Project Aftermath
Finished Portal Work:
None... yet.
Links:
My Steam Profile[/spoiler]
Quote from angelsl on January 21, 2012, 6:52 amDigitalMan 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 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..
Quote from DigitalMan on January 21, 2012, 1:54 pmI 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.
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.
[spoiler]

Currently Working On:
Portal 2 Mod: Currently Dubbed Project Aftermath
Finished Portal Work:
None... yet.
Links:
My Steam Profile[/spoiler]
Quote from andyb on January 21, 2012, 2:09 pmI 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.
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.
Quote from angelsl on January 21, 2012, 2:53 pmandyb 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. :/
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. :/
Quote from 262LetsPlay on January 22, 2012, 8:17 amI found a "singleplayer.res" in "resource/ui/basemodui" It is the SP-menu. But changes in there do not affect the game.
I found a "singleplayer.res" in "resource/ui/basemodui" It is the SP-menu. But changes in there do not affect the game.
Quote from KennKong on February 8, 2012, 8:42 pmDigitalMan 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.
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.
[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]
Quote from FelipeCaners on February 27, 2013, 11:09 pmI'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?
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?

Quote from josepezdj on February 28, 2013, 5:08 amFelipe, 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
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
Quote from FelipeCaners on February 28, 2013, 6:56 amYes, 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.
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.