Proper Chapter Menus and Titles?
Quote from DigitalMan on January 19, 2012, 3:27 amI've been working on my Portal 2 mod for a while and I thought it was about time I get proper menus. The problem is, I want to do this like how Valve does theirs. I would prefer not to do a workaround using the "Extras" tab and such as a Chapter selection. May any of you people here help me out? Another problem I have is that my mod doesn't seem to like reading the portal2_english file. Any and all help is appreciated. Thanks in advance.
I've been working on my Portal 2 mod for a while and I thought it was about time I get proper menus. The problem is, I want to do this like how Valve does theirs. I would prefer not to do a workaround using the "Extras" tab and such as a Chapter selection. May any of you people here help me out? Another problem I have is that my mod doesn't seem to like reading the portal2_english file. Any and all help is appreciated. Thanks in advance.
[spoiler]

Currently Working On:
Portal 2 Mod: Currently Dubbed Project Aftermath
Finished Portal Work:
None... yet.
Links:
My Steam Profile[/spoiler]
Quote from Robdon on January 19, 2012, 4:09 amHi,
Dont think anyone has managed to get it working properly without using the Extras menu.
I tried it a while back.
It seems that for some reason it was not reading the cfg/chapter1.cfg file, which I believe is used by other source games to control chapter selection from the 'Single Player' menu option.
I played around with it for a while, but I could not get it to start up my map, whatever I did.
Rob.
Hi,
Dont think anyone has managed to get it working properly without using the Extras menu.
I tried it a while back.
It seems that for some reason it was not reading the cfg/chapter1.cfg file, which I believe is used by other source games to control chapter selection from the 'Single Player' menu option.
I played around with it for a while, but I could not get it to start up my map, whatever I did.
Rob.
Quote from Vordwann on January 19, 2012, 7:14 am
http://www.se51.net/2011/09/15/how-to-m ... tal-2-mod/
[spoiler][SP] Alternate[/spoiler]
Quote from Robdon on January 19, 2012, 7:27 amVordwann wrote:http://www.se51.net/2011/09/15/how-to-make-your-own-portal-2-mod/Hi,
Thats for just changing the 'Extra' menu though isnt it?
It doesnt give you the ability to have 'save' and 'load' your saves, and doesnt use the 'Single Player' option...
Rob.
Hi,
Thats for just changing the 'Extra' menu though isnt it?
It doesnt give you the ability to have 'save' and 'load' your saves, and doesnt use the 'Single Player' option...
Rob.
Quote from Lpfreaky90 on January 19, 2012, 8:56 amyes that's only hack for the extra's menu.
at this point I've heard no one being able to change the singeplayer menu. It SEEMS to be hard coded in the game =(
yes that's only hack for the extra's menu.
at this point I've heard no one being able to change the singeplayer menu. It SEEMS to be hard coded in the game =(
Quote from DigitalMan on January 19, 2012, 6:24 pmThat was the same tutorial I followed originally. I finally found out why the portal2_<lang>.txt files weren't working though and have fixed them. The chapter titles displayed, but the buttons didn't work (as I expected since the file is just filled with text to display). Too bad, as lpfreaky90 said, the chapter buttons themselves seem to be hard coded. Perhaps Valve will add a "Make a Mod" option to the Authoring Tools that will allow us to easily edit these in the next Portal 2 update (although, that could just be wishful thinking).
That was the same tutorial I followed originally. I finally found out why the portal2_<lang>.txt files weren't working though and have fixed them. The chapter titles displayed, but the buttons didn't work (as I expected since the file is just filled with text to display). Too bad, as lpfreaky90 said, the chapter buttons themselves seem to be hard coded. Perhaps Valve will add a "Make a Mod" option to the Authoring Tools that will allow us to easily edit these in the next Portal 2 update (although, that could just be wishful thinking).
[spoiler]

Currently Working On:
Portal 2 Mod: Currently Dubbed Project Aftermath
Finished Portal Work:
None... yet.
Links:
My Steam Profile[/spoiler]
Quote from Robdon on January 19, 2012, 6:35 pmHad another play with it tonight.
It seems that it gets some problem when its loading up the bsp.
Even though you cant specify the map name, if you just use the same menus as the main game, when you click on chapter 1 it starts to try to load 'sp_a1_intro1.bsp' (if you put that in your mods maps dir) but then it just sits there not doing much.
I've tried to find if it was getting errors or something but nothing comes up in the console (inc developer 3 set) and even looking with 'process monitor' software, it just seems to read the 'bsp' file and then just stop.
Either we are missing some other setting, or it just doesnt work outside the standard portal2 dir
Ah well...
Had another play with it tonight.
It seems that it gets some problem when its loading up the bsp.
Even though you cant specify the map name, if you just use the same menus as the main game, when you click on chapter 1 it starts to try to load 'sp_a1_intro1.bsp' (if you put that in your mods maps dir) but then it just sits there not doing much.
I've tried to find if it was getting errors or something but nothing comes up in the console (inc developer 3 set) and even looking with 'process monitor' software, it just seems to read the 'bsp' file and then just stop.
Either we are missing some other setting, or it just doesnt work outside the standard portal2 dir
Ah well...
Quote from angelsl on January 20, 2012, 8:15 amI attached a debugger into Portal 2's client.dll.
The map names of all official maps are hardcoded into it. That could mean anything, but I'm guessing it means the chapter buttons are hardcoded.
I did a string search for the map names of each chapter's first map (e.g. sp_a1_intro1) and it seems like there is no where that defines that that button would load that map.
So yeah.
I attached a debugger into Portal 2's client.dll.
The map names of all official maps are hardcoded into it. That could mean anything, but I'm guessing it means the chapter buttons are hardcoded.
I did a string search for the map names of each chapter's first map (e.g. sp_a1_intro1) and it seems like there is no where that defines that that button would load that map.
So yeah.
Quote from Spam Nugget on January 20, 2012, 8:38 amWhat if you renamed your maps in your mod to the name of the ones in the original game?
What if you renamed your maps in your mod to the name of the ones in the original game?

I think in terms of boolean variables. Generally, it makes things easier.
Quote from Robdon on January 20, 2012, 8:42 amNah, renaming doesn't help.
Even though the names are hard coded, it doesn't start the maps correctly, just seems to 'loop' waiting for something when you start the chapter.
Even if you use the original maps.
Rob.
Nah, renaming doesn't help.
Even though the names are hard coded, it doesn't start the maps correctly, just seems to 'loop' waiting for something when you start the chapter.
Even if you use the original maps.
Rob.