get game_text to work, how? Created 17 years ago2007-03-09 12:02:41 UTC by sir_frags sir_frags

Created 17 years ago2007-03-09 12:02:41 UTC by sir_frags sir_frags

Posted 17 years ago2007-03-09 12:02:41 UTC Post #215409
Has anyone gotten the game_info entity to work? My message never displays when the players log in. I have the flags for All Players checked, and for the Master I have info_player_deathmatch entered in the field. Other than that, I am using the default settings for the entity. I also tried it with the Master field left blank. No luck. Some one told me to use env_message

Thanks for any help.
Posted 17 years ago2007-03-09 12:52:07 UTC Post #215410
I've never used a game_info entity, but game_text works fine for me. It doesn't need any master field or anything.
For HL1, the entity used was game_playerjoin, and you could set a master for each team.
For source, try using a logic auto and tell if to trigger the game_text with the correct parameter. I don't have Hammer4 in this computer, so I can't tell you which one that'd be. Look for something like "OnPlayerJoin" or similar.
By the way, is the message intended for all players or just the one who joins in a particular moment? Giving us that kind of info might also help.
Posted 17 years ago2007-03-09 23:05:09 UTC Post #215447
I'm talking about the game_text. the "game_info" was a typo. I can't get the logic auto to work either, and of course this is just operator error on my part. I know the game_text works in Half Life 2 source maps.

Couldn't someone post a link to a simple vmf or .map file that has their game_text entity and target entity working right? Then I could just copy the two entities into my vdf and simply edit the text message. I'm using the latest version of Hammer and working on a source map.

But I suspect the game_text entity and target entity from half life 1 would work too if you had that in a .map file.

What I want is this. When someone logs into the map for the first time (onmapspawn) he will see the map name and my email address at the top of the screen. That simple :) Or so I thought.

Thank you!!!
Posted 17 years ago2007-03-10 10:31:42 UTC Post #215471
It's really simple.

Create a game_text.
Right click on it in the 2D view and select properties.
Give it the name gametext01
and set message to what ever you want.

Now create a logic_auto.
Rightclick in the 2D view and select properties.
Select the lable "outputs"
Make a new output.
?OnMapSpawn
?gametext01
?Display

Click apply and you're done.

This will make the message display when the map starts
Madcow MadcowSpy zappin my udder
Posted 17 years ago2007-03-11 00:11:14 UTC Post #215503
Thanks everybody for replying. Madcow, that is how I have it done. I also tried OnNewGame or OnMapTransition. I tried it with AllPlayers checked and unchecked. I tried it with FireOnce checked and unchecked. I changed the Hold time to 100 seconds to make sure I wasn't missing it. I changed setting from top screen to middle screen. It still doesn't work.

It shouldn't matter that this is a deathmatch map instead of a single player map should it?

Thanks again guys.
Posted 17 years ago2007-03-11 06:30:23 UTC Post #215521
Ok. its the compile process thats making something wrong. I am using Hammer to compile the vdf. I know it's the compile because I took one of my friend's vdf's who has his game_text working and then I compiled it with Hammer. Sure enoguh when I ran the map the message would not display. Also, I cannot run the map through Steam; i can only run the map with a standalone dedicated server.

See my other post about alternative compiling programs. Thanks.
Posted 17 years ago2007-03-11 09:15:53 UTC Post #215528
:/

Get your file extensions right, please.
Archie ArchieGoodbye Moonmen
Posted 17 years ago2007-03-11 09:42:56 UTC Post #215529
I'm confused...
Don't you test your maps in HL2 single player??
Madcow MadcowSpy zappin my udder
Posted 17 years ago2007-03-11 14:36:34 UTC Post #215536
<"Get your file extensions right, please.">

Hey Hunter, how about you ingore threads when you have nothing constructive to add? And if this forum would allow me to edit my posts, I would have gone back and fixed my two typos, but if anyone was able to help me, they would have known what I was talking about anyway.

Madcow, No, this isn't a single player map. But I have other multiplay maps that use the game_text just right in half life 2 DM. I have cut and pasted the entities out of those maps and placed them into mine and then compiled. They won't work in my map after I compile.

And I have found 4 other posts in google from people that had the same problem but coulnt figure it out. Anyway, I am through with this. I've given up and moved on :)
You must be logged in to post a response.