Display Chapter Title
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!
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.
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.
muffelbrot90 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?
muffelbrot90 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.
Spam Nugget wrote:
wow, this is pretty damn good. Thanks, chickenmobile.
No problem.
muffelbrot90 - learn from this!
beecake wrote:
I dont understand the titles.txt. What do i have to write to have it display, lets say, "level 1" in a level called "map 1"? This is just an example for my understanding, please
You do not need titles.txt. If you read my post above you would have known that. All you need is the script running/supplement the script through console commands (point_servercommand / logic_auto) AND a couple of game_texts in your map.> Vordwann wrote:
You can also go into map properties, where there is a Title text field...
Does it actually display the title chapter without putting all the extra info into titles.txt and others?