Please or Register to create posts and topics.

Ability to use Single Player menu instead of Extras menu.

Hello! I'm currently working on a mod for Portal 2. Currently, the only way for me to add my maps to the mod is to add them through the EXTRAS menu. I don't want to use this because:

A: The player can choose ANY map at ANY time.
B: Does not have saving support (ability to load and save games)

So, my question is. Is there a way to mod the Single Player menu (like, when you click "New Game" and it shows the chapters you can choose from) so I can add my maps/chapters to it like normal Portal 2 instead of crashing?

Thanks in advance, Collin1971. :thumbup:

"I sincerely hope you're not allergic to air. Our peanut dust ventilator broke in this wing, so the atmosphere is only 60 per cent peanut dust." -Alternate Cave

Have you tried this?
I know it says its not valid since the PTI DLC, but have you tried it? Maybe just follow the chapters part?

RectorRocks wrote:
Have you tried this?
I know it says its not valid since the PTI DLC, but have you tried it? Maybe just follow the chapters part?

Indeed this method is the one that makes use of the EXTRAS menu :) For your information, it still works out but you need 2 'mainmenu.res' files since the DLC2 came out, now you also need a second one called 'mainmenu_new.res' (both packed into your pak01_dir.vpk file).

Collin1971 wrote:
Hello! I'm currently working on a mod for Portal 2. Currently, the only way for me to add my maps to the mod is to add them through the EXTRAS menu. I don't want to use this because:

A: The player can choose ANY map at ANY time.
B: Does not have saving support (ability to load and save games)

So, my question is. Is there a way to mod the Single Player menu (like, when you click "New Game" and it shows the chapters you can choose from) so I can add my maps/chapters to it like normal Portal 2 instead of crashing?

Well, if you followed that guide RectorRocks linked, you will have a menu with all your maps and the player could select whatever of them at any time. If you did and it crashes, maybe you are doing something wrong... About saving/loading I'm afraid I don't know any other way than quicksaving/quicjloading (these still works)

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj wrote:
RectorRocks wrote:
Have you tried this?
I know it says its not valid since the PTI DLC, but have you tried it? Maybe just follow the chapters part?

Indeed this method is the one that makes use of the EXTRAS menu :) For your information, it still works out but you need 2 'mainmenu.res' files since the DLC2 came out, now you also need a second one called 'mainmenu_new.res' (both packed into your pak01_dir.vpk file).

Collin1971 wrote:
Hello! I'm currently working on a mod for Portal 2. Currently, the only way for me to add my maps to the mod is to add them through the EXTRAS menu. I don't want to use this because:

A: The player can choose ANY map at ANY time.
B: Does not have saving support (ability to load and save games)

So, my question is. Is there a way to mod the Single Player menu (like, when you click "New Game" and it shows the chapters you can choose from) so I can add my maps/chapters to it like normal Portal 2 instead of crashing?

Well, if you followed that guide RectorRocks linked, you will have a menu with all your maps and the player could select whatever of them at any time. If you did and it crashes, maybe you are doing something wrong... About saving/loading I'm afraid I don't know any other way than quicksaving/quicjloading (these still works)

I don't think you get what I'm trying to do. I'm currently using that method that you linked to above, and it works perfectly. But for the reasons A and B in my OP post, I want to use the Chapter Select menu instead. Other than that, I have no issues/bugs/crashes with the extras menu.

It's just that when I try to use the chapter select menu the game just crashes (no black screen, just quit to desktop). I believe it's because the MAP command doesn't work with mods, but certainly theres a res/cfg file I can edit somewhere so it uses

Code: Select all
"command"    "map MAP_NAME_HERE"

instead of

Code: Select all
"map" "MAP_NAME_HERE"

EDIT: If the game is crashing BEFORE I get to the chapter selection screen, my proposed fix above won't be useful.

"I sincerely hope you're not allergic to air. Our peanut dust ventilator broke in this wing, so the atmosphere is only 60 per cent peanut dust." -Alternate Cave

Well dude, I think it's me who gets perfectly what you are trying to say (would you please re-read my post?) I know you are using the extras menu mathod... I'm using it too, I don'td know any other working method by now... but I don't know why your mod is crashing because mine is working perfect.

This is the content of my Extras.txt file into mymodname/script folder:

Code: Select all
"Extras"
{
    "Chapter 1"
    {
        "title"     "The Beginning"
        "subtitle"  "The story starts here"
        "command"   "map sp_enceladus_map_01"
   "pic"       "vgui/chapters/chapter1"
    }
    "Chapter 2"
    {
        "title"     "The Enceladus Initiative"
        "subtitle"  "The new chambers"
        "command"   "map sp_enceladus_map_02"
   "pic"       "vgui/chapters/chapter2"
    }
    "Chapter 3"
    {
        "title"     "Labyrinths"
        "subtitle"  "Too many variables..."
        "command"   "map sp_enceladus_map_03"
   "pic"       "vgui/chapters/chapter3"
    }
    "Chapter 4"
    {
        "title"     "The Tower lake"
        "subtitle"  "Reflections"
        "command"   "map sp_enceladus_map_04"
   "pic"       "vgui/chapters/chapter4"
    }
    "Chapter 5"
    {
        "title"     "Afraid of heights"
        "subtitle"  "It can be reachable..."
        "command"   "map sp_enceladus_map_05"
   "pic"       "vgui/chapters/chapter5"
    }
    "Chapter 6"
    {
        "title"     "The Octagon"
        "subtitle"  "Different colours for an exit"
        "command"   "map sp_enceladus_map_06"
   "pic"       "vgui/chapters/chapter6"
    }
}

And I repeat, it doesn't crash, so maybe your problem is not there...

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj wrote:
Well dude, I think it's me who gets perfectly what you are trying to say (would you please re-read my post?) I know you are using the extras menu mathod... I'm using it too, I don'td know any other working method by now... but I don't know why your mod is crashing because mine is working perfect.

This is the content of my Extras.txt file into mymodname/script folder:

Code: Select all
"Extras"
{
    "Chapter 1"
    {
        "title"     "The Beginning"
        "subtitle"  "The story starts here"
        "command"   "map sp_enceladus_map_01"
   "pic"       "vgui/chapters/chapter1"
    }
    "Chapter 2"
    {
        "title"     "The Enceladus Initiative"
        "subtitle"  "The new chambers"
        "command"   "map sp_enceladus_map_02"
   "pic"       "vgui/chapters/chapter2"
    }
    "Chapter 3"
    {
        "title"     "Labyrinths"
        "subtitle"  "Too many variables..."
        "command"   "map sp_enceladus_map_03"
   "pic"       "vgui/chapters/chapter3"
    }
    "Chapter 4"
    {
        "title"     "The Tower lake"
        "subtitle"  "Reflections"
        "command"   "map sp_enceladus_map_04"
   "pic"       "vgui/chapters/chapter4"
    }
    "Chapter 5"
    {
        "title"     "Afraid of heights"
        "subtitle"  "It can be reachable..."
        "command"   "map sp_enceladus_map_05"
   "pic"       "vgui/chapters/chapter5"
    }
    "Chapter 6"
    {
        "title"     "The Octagon"
        "subtitle"  "Different colours for an exit"
        "command"   "map sp_enceladus_map_06"
   "pic"       "vgui/chapters/chapter6"
    }
}

And I repeat, it doesn't crash, so maybe your problem is not there...

I'm not crashing on the EXTRAS menu (where it shows the extras), I'm crashing on the CHAPTER SELECT MENU (like when you click "NEW GAME" and it shows chapters, except mine just crashes instead of showing the chapters).

"I sincerely hope you're not allergic to air. Our peanut dust ventilator broke in this wing, so the atmosphere is only 60 per cent peanut dust." -Alternate Cave

I asked valve people once, they didnt even know this problem existed. Me and some other modders asked if they wanted to look into it, but at that time they were too busy getting the pti working properly and released on time. Haven't heard anything from them since.

So as far as I know the mainmenu is hardcoded and cannot be changed. Thus you're stuck with scripts :(

Lpfreaky90 wrote:
I asked valve people once, they didnt even know this problem existed. Me and some other modders asked if they wanted to look into it, but at that time they were too busy getting the pti working properly and released on time. Haven't heard anything from them since.

So as far as I know the mainmenu is hardcoded and cannot be changed. Thus you're stuck with scripts :(

That's depressing, oh well. :angrysquare:

"I sincerely hope you're not allergic to air. Our peanut dust ventilator broke in this wing, so the atmosphere is only 60 per cent peanut dust." -Alternate Cave
Collin1971 wrote:
I'm not crashing on the EXTRAS menu (where it shows the extras), I'm crashing on the CHAPTER SELECT MENU (like when you click "NEW GAME" and it shows chapters, except mine just crashes instead of showing the chapters).

Oh I see... no clue for that...

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