GoldSource chapter names Created 10 years ago2014-03-22 10:37:28 UTC by BiohazardWTF BiohazardWTF

Created 10 years ago2014-03-22 10:37:28 UTC by BiohazardWTF BiohazardWTF

Posted 10 years ago2014-03-22 10:37:28 UTC Post #318353
Hi everyone! After a billion years using this web as source for tutorials and useful info about modding HL and goldsource I've encountered a problem that I can't solve and decided to register for the first time. :zonked:

I'm working on a little mod and I was wondering how to get those pesky chapter names to work. I already know how to show a text string when the map loads via titles.txt and modifing map properties. When I say "chapter name" I'm refering to the fact that any save game will have the chapter name instead of the .bsp name shown.

Besides, after Valve moving all Goldsource content to the new steampipe system, there are tons of new files under "resources" folder which seem to be involved. I've searched on Google for hours, I've tried everything I've come across (titles.txt,map properties in hammer,etc) but nothing works.

So, does anyone know how to create a chapter system (for saved games and such) for GoldSource?

Thanks a lot for your time, I hope you can help me with this one :biggrin:
Posted 10 years ago2014-03-22 11:24:59 UTC Post #318354
If I recall correctly, you've got two options - use the exact same naming format as HL has (which may also limit the amount of maps you can have in a chapter) or break out the SDK code and modify it there.
Notewell NotewellGIASFELFEBREHBER
Posted 10 years ago2014-03-22 12:40:39 UTC Post #318356
The chapter names in Half-Life, such as 'BLACK MESA INBOUND', 'ANOMALOUS MATERIALS', 'UNFORESEEN CONSEQUENCES', 'WE'VE GOT HOSTILES' and so on, are all defined in titles.txt.

Just simply copy the titles.txt file from the valve folder to your mod folder and make your own changes to it.

Then in Hammer, place an env_message. Name it, and type in the message name from the titles.txt file in the 'message name' field. For example, if you have a custom message defined like so:
MAP01TITLE
{
"TITLE FOR MAP01"
}
You would enter MAP01TITLE in the 'message name' field.

Now this may not actually give you the chapter name of your save file, so you should also try playing with the map properties. Go to Map -> Map properties... to see it. Play with the 'Map Description / Title' and the 'Chapter Title Message' fields to see what they do, I'm not entirely sure if you even need to fiddle with these, the env_message entity might be all you need.
Posted 10 years ago2014-03-22 13:01:32 UTC Post #318357
After trying a few more things I think I'm gonna let this one go. It seems that after Steampipe's update everything is hardcoded. This means that if I have a map named "c0a0" I can override its name by modifying "valve_english.txt" (under "resources" folder), but if I call the map "c10a0" (which doesn't exist in HL but follows the same naming pattern) then I can't.

I can even use OP4 and BS map names and everything works. As soon as I use anything that doesn't previously exist in "standard" Goldsource games (HL,OP4 and BS) it stops working. :

Well, it was worth trying.

Thanks a lot for your help :biggrin:
Posted 10 years ago2014-03-22 16:12:02 UTC Post #318359
info_player_text in the first map of the chapter where the player spawns ?
rufee rufeeSledge fanboy
Posted 10 years ago2014-03-22 18:44:37 UTC Post #318361
game_text should do the thing. And it doesn't use titles.txt OR use the Chapter name parameter in hammers Map Settings. Both can be used. But be careful. Once I forgot which I was using and placed both. :D

game_text:
http://twhl.info/wiki.php?id=36
Posted 10 years ago2014-03-22 18:49:44 UTC Post #318362
He's talking about having the chapter names in the save games list Ciba. Not showing the title in-game.
monster_urby monster_urbyGoldsourcerer
Posted 10 years ago2014-03-23 06:25:48 UTC Post #318368
Oh sorry. My bad.
Posted 10 years ago2014-03-23 18:51:29 UTC Post #318376
He's talking about having the chapter names in the save games list Ciba. Not showing the title in-game.
Exactly, I want to change chapter names at "savegame level". I already know how to show any text anytime ingame via env_message and game_text.

Anyway, as I said I've given up as now (after lastest steampipe patches) it seems to be somehow hardcoded. However, I really appreciate your help guys :biggrin:
You must be logged in to post a response.