Please or Register to create posts and topics.

DLC and community map support...

Well, I must say it was not a triumph this time. Maybe I'm a bit dissapointed that none of the features I personally hoping for would be in which were

- Custom lightboard script per map possibility for each map without needing to use faked ones
- custom soundscript per map possibility without needing to append things to the manifest so it wouldn't get "outdated" or "superceeded"
- Community map integration so you don'th ave to hijack the extra's menu.

And They seemed to have been so cloe because I had high hopes when I opened the resources files for mainmenu.res and communitymapitem.res where I saw basicly a framework for enlisting (and even downloading) community maps in the UI, but it's all commented out which made me think they were thinking "ok, but not now"

My campaign has a bit of everything custom. Media, soundscripts and custom voices. (well custom materials and models too but that has never been an issue so I don't speak about these)

Even when my campaign is as good as ready, I am reluctant to release it. I am tempted to wait for news from valve on this area. Because if i would release the campaign like this I think there will be stuff broken for userss when dlc 2 comes and I want to avoid having to hijack maingame files in order to make it polished and easy to use for the end user.

If anyone knows some more stuff about this or maybe if Valve could give a quote on their plans regarding this in the future, that would be cool.

Couldn't you use a custom batch file to launch your campaign, bypassing the need to hijack menus?

Image

"Such monstrous sucking-constructions aren't built within one afternoon"
RufusThorne wrote:
Couldn't you use a custom batch file to launch your campaign, bypassing the need to hijack menus?

How you mean a custom launch file ? You mean you can put the campaign in a dir in the main game dir like they do with the portal2_dlc1 dir ? Or like in a mod ? (like portal 1) ?

I think modding doesn't work that way in portal 2 it works in /addons campaign. I have made an installer though. It installs the campaign and you can delete it from the windows software list and it will delete the vpk + the media files and everything will be solved.

The problem is that this kind of information rarely gets to end users and if the vpk would remain in their folder when a new content update is released things could get broken and they wouldn't know what the problem is.

A system like in l4d1/2 would be much more transparent for the creator AND end user.

Talking of that, in the pak01_dir.vpk of the new DLC, there is THIS file in resource/ui/basemodui called communitymapdialog.res

Here is a VERRRY long code of it, but long story short, support WILL be coming :D

Code: Select all
"Resource/UI/CommunityMapDialog.res"
{
   "CommunityMapDialog"
   {
      "ControlName"         "Frame"
      "fieldName"            "CommunityMapDialog"
      "xpos"               "0"
      "ypos"               "0"
      "wide"               "9"
      "tall"               "4"
      "visible"            "1"
      "enabled"            "1"
      "tabPosition"         "0"
      "dialogstyle"         "1"
   }
      
   "CommunityMapList"
   {
      "ControlName"               "GenericPanelList"
      "fieldName"                  "CommunityMapList"
      "xpos"                     "0"
      "ypos"                     "25"
      "zpos"                     "1"
      "wide"                     "200"
      "tall"                     "175"   [$GAMECONSOLE]
      "tall"                     "150"   [!$GAMECONSOLE]
      "visible"                  "1"
      "enabled"                  "1"
      "tabPosition"               "0"
      "NoWrap"                  "1"
      "panelBorder"               "0"
   }

   "WorkingAnim"
   {
      "ControlName"               "ImagePanel"
      "fieldName"                  "WorkingAnim"
      "xpos"                     "274"
      "ypos"                     "35"
      "zpos"                     "999"
      "wide"                     "100"
      "tall"                     "100"
      "visible"                  "0"
      "enabled"                  "1"
      "tabPosition"               "0"
      "scaleImage"               "1"
      "image"                     "spinner"
   }   

   "DownloadingAnim"
   {
      "ControlName"               "ImagePanel"
      "fieldName"                  "DownloadingAnim"
      "xpos"                     "222"
      "ypos"                     "27"
      "zpos"                     "999"
      "wide"                     "33"
      "tall"                     "33"
      "visible"                  "0"
      "enabled"                  "1"
      "tabPosition"               "0"
      "scaleImage"               "1"
      "image"                     "spinner"
   }   

"CommunityMapImage"
   {
      "ControlName"               "ImagePanel"
      "fieldName"                  "CommunityMapImage"
      "xpos"                     "212"
      "ypos"                     "15"
      "zpos"                     "999"
      "wide"                     "225"
      "tall"                     "152"
      "visible"                  "0"
      "enabled"                  "1"
      "tabPosition"               "0"
      "scaleImage"               "1"
      "image"                     ""
   }
   
   "NoMapsLabel1"
   {
      "ControlName"               "Label"
      "fieldName"                  "NoMapsLabel1"
      "font"                     "NewGameChapterName"
      "xpos"                     "20"   
      "ypos"                     "65"
      "zpos"                     "2"
      "wide"                     "400"
      "tall"                     "30"
      "autoResize"               "0"
      "visible"                  "0"
      "enabled"                  "1"
      "textAlignment"               "center"
      "labelText"                  "You currently don't have any maps in your queue."
   }
   
   "NoMapsLabel2"
   {
      "ControlName"               "Label"
      "fieldName"                  "NoMapsLabel2"
      "font"                     "NewGameChapterName"
      "xpos"                     "20"   
      "ypos"                     "95"
      "zpos"                     "2"
      "wide"                     "400"
      "tall"                     "30"
      "autoResize"               "0"
      "visible"                  "0"
      "enabled"                  "1"
      "textAlignment"               "center"
      "labelText"                  "Please visit www.thinkwithportals.com to find some!"
   }

   "AuthorAvatarImage"
   {
      "ControlName"               "ImagePanel"
      "fieldName"                  "AuthorAvatarImage"
      "xpos"                     "200"   
      "ypos"                     "170"
      "zpos"                     "2"
      "wide"                     "64"
      "tall"                     "64"
      "visible"                  "1"
      "enabled"                  "1"
      "tabPosition"               "0"
      "scaleImage"               "1"
   }

   "CommunityMapInfo"
   {
      "ControlName"               "CommunityMapInfoLabel"
      "fieldName"                  "CommunityMapInfo"
      "xpos"                     "242"
      "ypos"                     "170"
      "zpos"                     "2"
      "wide"                     "225"
      "tall"                     "20"
      "visible"                  "1"
      "enabled"                  "1"
      "tabPosition"               "0"
   }         

   "VoteUpLabel"
   {
      "ControlName"               "Label"
      "fieldName"                  "VoteUpLabel"
      "font"                     "NewGameChapterName"
      "xpos"                     "200"
      "ypos"                     "120"
      "zpos"                     "2"
      "wide"                     "223"
      "tall"                     "30"
      "autoResize"               "0"
      "visible"                  "1"
      "enabled"                  "1"
      "textAlignment"               "east"
      "labelText"                  "!!!!"
      "fgcolor_override"            "255 255 255 200"
   }
   
   "VoteDownLabel"
   {
      "ControlName"               "Label"
      "fieldName"                  "VoteDownLabel"
      "font"                     "NewGameChapterName"
      "xpos"                     "200"
      "ypos"                     "135"
      "zpos"                     "2"
      "wide"                     "223"
      "tall"                     "30"
      "autoResize"               "0"
      "visible"                  "1"
      "enabled"                  "1"
      "textAlignment"               "east"
      "labelText"                  "!!!!"
      "fgcolor_override"            "255 255 255 200"
   }
   }

EDIT: Oh, I guess I didn't read properly. Well, just be happy that they are going to do ti eventually. :P