Display Chapter Title
Quote from muffelbrot90 on September 12, 2011, 5:38 pmHey!
I used the search function but didn't find a solution for my problem. I want to display a chapter title at a certain point of the map. To see what I mean, click the video below and jump to 2:48!
http://www.youtube.com/watch?v=43CL70JT4bY
Thanks a lot!
Hey!
I used the search function but didn't find a solution for my problem. I want to display a chapter title at a certain point of the map. To see what I mean, click the video below and jump to 2:48!
http://www.youtube.com/watch?v=43CL70JT4bY
Thanks a lot!

PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."
Quote from muffelbrot90 on September 12, 2011, 7:14 pmI had that idea by myself. But how do I change the font size?
I had that idea by myself. But how do I change the font size?

Quote from ChickenMobile on September 12, 2011, 11:28 pmThere are multiple entities you can use to make text appear on the screen, the easiest being game_text and the most customisable being an env_message. The text for an env_message is defined inside titles.txt which is located in your Portal2/scripts folder. This is also where the Chapters titles should be listed. Also look at portal2/resource/portal2_english.txt for the chapters.
Remember: env_message uses titles.txt to display a title instead of typing in the text you want inside the text keyvalue.If you are creating a mod and want it to appear like a genuine chapter, try looking at this page: http://developer.valvesoftware.com/wiki ... o_your_mod
Decompiling is also the key -> the chapter titles are displayed through the sp_transition_list.nut which make the chapter titles look the way they do.I will fiddle around with this later to see if I can get it to work.
===================================================================================================
EDIT: Getting this to work is relatively easy, and doesn't involve adding anything into titles.txt or portal2_english.txt or creating another .cfg for your new chapter like you usually would do. It just involves a script and a couple of entities in game. Luckily for you I made an example right here:portal2.7zWhen you publish your map remember to include the script by packing it into the .bsp or by creating a vpk.
There are multiple entities you can use to make text appear on the screen, the easiest being game_text and the most customisable being an env_message. The text for an env_message is defined inside titles.txt which is located in your Portal2/scripts folder. This is also where the Chapters titles should be listed. Also look at portal2/resource/portal2_english.txt for the chapters.
Remember: env_message uses titles.txt to display a title instead of typing in the text you want inside the text keyvalue.
If you are creating a mod and want it to appear like a genuine chapter, try looking at this page: http://developer.valvesoftware.com/wiki ... o_your_mod
Decompiling is also the key -> the chapter titles are displayed through the sp_transition_list.nut which make the chapter titles look the way they do.
I will fiddle around with this later to see if I can get it to work.
===================================================================================================
EDIT: Getting this to work is relatively easy, and doesn't involve adding anything into titles.txt or portal2_english.txt or creating another .cfg for your new chapter like you usually would do. It just involves a script and a couple of entities in game. Luckily for you I made an example right here:
When you publish your map remember to include the script by packing it into the .bsp or by creating a vpk.
Quote from muffelbrot90 on September 14, 2011, 12:05 pmHey, thank you for the help!
But i think this is quite complicated. My Current Project is a short campaign including only four maps. The chapter title would be displayed only once - at the beginning as campaign title. I don't think this is worth the effort.
Hey, thank you for the help!
But i think this is quite complicated. My Current Project is a short campaign including only four maps. The chapter title would be displayed only once - at the beginning as campaign title. I don't think this is worth the effort.

Quote from ChickenMobile on September 14, 2011, 12:27 pmmuffelbrot90 wrote:Hey, thank you for the help!But i think this is quite complicated. My Current Project is a short campaign including only four maps. The chapter title would be displayed only once - at the beginning as campaign title. I don't think this is worth the effort.
How isn't it worth the effort when I have done the work for you?
But i think this is quite complicated. My Current Project is a short campaign including only four maps. The chapter title would be displayed only once - at the beginning as campaign title. I don't think this is worth the effort.
How isn't it worth the effort when I have done the work for you?
Quote from iWork925 on September 14, 2011, 6:49 pmmuffelbrot90 wrote:Hey, thank you for the help!But i think this is quite complicated. My Current Project is a short campaign including only four maps. The chapter title would be displayed only once - at the beginning as campaign title. I don't think this is worth the effort.
If its worth doing, its worth doing properly.
But i think this is quite complicated. My Current Project is a short campaign including only four maps. The chapter title would be displayed only once - at the beginning as campaign title. I don't think this is worth the effort.
If its worth doing, its worth doing properly.

PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."
Quote from Spam Nugget on September 15, 2011, 9:12 amwow, this is pretty damn good. Thanks, chickenmobile.
wow, this is pretty damn good. Thanks, chickenmobile.

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

Quote from ChickenMobile on September 15, 2011, 9:22 amSpam Nugget wrote:wow, this is pretty damn good. Thanks, chickenmobile.No problem.
muffelbrot90 - learn from this!
No problem.
muffelbrot90 - learn from this!
Quote from Vordwann on October 21, 2011, 4:04 pmYou can also go into map properties, where there is a Title text field...
You can also go into map properties, where there is a Title text field...
[spoiler][SP] Alternate[/spoiler]