Please or Register to create posts and topics.

Proper Chapter Menus and Titles?

Page 1 of 2Next

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.

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]

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.

My Portal2 Map: Trapped

My Travel Blog:
Image

http://www.se51.net/2011/09/15/how-to-m ... tal-2-mod/

My Maps:
[spoiler][SP] Alternate[/spoiler]
Vordwann wrote:

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.

My Portal2 Map: Trapped

My Travel Blog:
Image

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 =(

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).

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]

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...

My Portal2 Map: Trapped

My Travel Blog:
Image

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.

What if you renamed your maps in your mod to the name of the ones in the original game?

Image
I think in terms of boolean variables. Generally, it makes things easier.

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.

My Portal2 Map: Trapped

My Travel Blog:
Image
Page 1 of 2Next