game_text entity and CS

game_text entity and CS

Re: game_text entity and CS Posted by Wild Card on Sun Feb 8th 2004 at 6:44pm
Wild Card
2321 posts
Posted 2004-02-08 6:44pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Ok, first off, Im not a moron (wait a minute... :biggrin: )

I know how to make text appear on screen. The wonderfull game_text entity.

However for my CS map, I want to have several messages displayed to the players. 1 message to a single player at the start (cause he will trigger a trigger_once brush) then a few other messages to both the CT's and the T's.

But in the CS .fgd there is no game_text entity. :sad: How do I get text to the player then? Or can I load both the HL and CS .fgd's at the same time?
Re: game_text entity and CS Posted by Gollum on Sun Feb 8th 2004 at 6:53pm
Gollum
1268 posts
Posted 2004-02-08 6:53pm
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
The FGDs should be irrelevant, in the sense that loading a FGD file does not "give" you any actual game entities.

Presumably the CS FGD is correct, and therefore not only is there no game_text entity listed in the FGD, but further there is no game_text entity supported by the game.
Re: game_text entity and CS Posted by Wild Card on Sun Feb 8th 2004 at 6:54pm
Wild Card
2321 posts
Posted 2004-02-08 6:54pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
so how do I display a message to the player?
Re: game_text entity and CS Posted by Dr Brasso on Sun Feb 8th 2004 at 6:55pm
Dr Brasso
1878 posts
Posted 2004-02-08 6:55pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
write em a note....western union is kinda expensive tho.../runs like hell...

Doc B... :dodgy:
Re: game_text entity and CS Posted by Wild Card on Sun Feb 8th 2004 at 6:57pm
Wild Card
2321 posts
Posted 2004-02-08 6:57pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Tosses Doc B a brick :razz:
Re: game_text entity and CS Posted by Leperous on Mon Feb 9th 2004 at 11:30am
Leperous
3382 posts
Posted 2004-02-09 11:30am
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
The game_text might still be supported; try making a working one for another mod and copying it into a CS map (so all its keyvalues and properties are kept)- keep it simple though so that your chances are highter :wink: If it doesn't work then I guess you're screwed. And if it does, copy over the relevant part from the Half-Life FGD to make life easier.
Re: game_text entity and CS Posted by matt on Mon Feb 9th 2004 at 2:50pm
matt
1100 posts
Posted 2004-02-09 2:50pm
matt
member
1100 posts 246 snarkmarks Registered: Jun 26th 2002 Occupation: Student! Location: Edinburgh
erm why not use the half life fgd to create the entity, then switch back to cs. Ok that probably won't work.
Re: game_text entity and CS Posted by Monqui on Mon Feb 9th 2004 at 3:25pm
Monqui
743 posts
Posted 2004-02-09 3:25pm
Monqui
member
743 posts 94 snarkmarks Registered: Sep 20th 2002 Occupation: Poor College Student Location: Iowa, USA
Actually, you may be able to pull that off. I know that there is on-screen text, but I'm not sure how it works. I know that it exists, because at the very beginning, there is some text on the screen telling you what to do.

It's worth a shot at least.
Re: game_text entity and CS Posted by Wild Card on Mon Feb 9th 2004 at 6:51pm
Wild Card
2321 posts
Posted 2004-02-09 6:51pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Lep I'll try your idea ASAP.

I know you can pull off messages with the env_message (or whatever the entity is called) cause they do that in HL single player but I dont know how to use that entity.

Can I add the HL fgd into a CS map?
Re: game_text entity and CS Posted by omegaslayer on Mon Feb 9th 2004 at 9:46pm
omegaslayer
2481 posts
Posted 2004-02-09 9:46pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Well you could download the newest fgd for cs, or it seems like the text entity code isn't in the fgd itself, you can edit it by changing the .fgd to .txt to look at the code (im probably using the wrong context) then insert the "code" for the text entity into the cs fgd. but make sure you change the cs fgd from .txt back to .fgd, ohh and make a copy of the ORGINAL fgd, just in case you f-up.
Re: game_text entity and CS Posted by Crono on Mon Feb 9th 2004 at 10:07pm
Crono
6628 posts
Posted 2004-02-09 10:07pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
. . . . or you could just open it directly in a text editor of some sort lol.

(Sorry, Omega, I'm not picking on you, but come on)

Also, if I'm not mistaken the FGD is a text listing for the EDITOR to see what the game can do, not the other way around. Meaning if you did get it to work, you could possibly be the only person who would be able to play your map, being that other people don't have the same configuration. Although I could be wrong and the code could be generated whenst you run HL. . .
Re: game_text entity and CS Posted by omegaslayer on Mon Feb 9th 2004 at 10:14pm
omegaslayer
2481 posts
Posted 2004-02-09 10:14pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
once again blame microsoft for making things so complicated, look what they did 2 me...... Now I think too complicated (not trying to make mysel sound smart), but even if you edit the fgd,....the only reason why the fgd is there is to tell the HL engine what entities to use, so if there is a text entity in cs then it should work, but dont follow me im too stupid to know what the hell is going on these days.
Re: game_text entity and CS Posted by Leperous on Mon Feb 9th 2004 at 11:21pm
Leperous
3382 posts
Posted 2004-02-09 11:21pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Wild Card said:
Can I add the HL fgd into a CS map?
You might be able to add bits of it to the CS fgd, if you do what I suggested and find that that entity works, but you can't use both FGDs at once.
Re: game_text entity and CS Posted by omegaslayer on Tue Feb 10th 2004 at 1:34am
omegaslayer
2481 posts
Posted 2004-02-10 1:34am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Okay I went online and found this fgd that has the game_text entity in it, it also has some nifty sprites that go along with the game_teammasters, anyways here it is: http://www.csvelocity.com/index.php?page=maptools
just use this fgd instead of the other one.
Re: game_text entity and CS Posted by Gorbachev on Tue Feb 10th 2004 at 2:42am
Gorbachev
1569 posts
Posted 2004-02-10 2:42am
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
omegaslayer4777 said:
once again blame microsoft for making things so complicated, look what they did 2 me...... Now I think too complicated (not trying to make mysel sound smart), but even if you edit the fgd,....the only reason why the fgd is there is to tell the HL engine what entities to use, so if there is a text entity in cs then it should work, but dont follow me im too stupid to know what the hell is going on these days.
What's with the anti-Microsoft sentiment, what do they have anything to do with CS .fgd files?
Re: game_text entity and CS Posted by Loco on Wed Feb 11th 2004 at 5:34pm
Loco
615 posts
Posted 2004-02-11 5:34pm
Loco
member
615 posts 121 snarkmarks Registered: Aug 29th 2003 Occupation: Student Location: UK
Found this link to dev dev revolution where all the files are stored. Theres an expert fgd here which might help

http://dev.valve-erc.com/index.php?area=documents&document%5B%5D=103463080941876300&action=view
Re: game_text entity and CS Posted by omegaslayer on Wed Feb 11th 2004 at 9:55pm
omegaslayer
2481 posts
Posted 2004-02-11 9:55pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Gorbachev said:
omegaslayer4777 said:
once again blame microsoft for making things so complicated, look what they did 2 me...... Now I think too complicated (not trying to make mysel sound smart), but even if you edit the fgd,....the only reason why the fgd is there is to tell the HL engine what entities to use, so if there is a text entity in cs then it should work, but dont follow me im too stupid to know what the hell is going on these days.
What's with the anti-Microsoft sentiment, what do they have anything to do with CS .fgd files?
it was a joke b/t chrono and I cause chrono said something about my comment
Re: game_text entity and CS Posted by Wild Card on Wed Feb 11th 2004 at 9:56pm
Wild Card
2321 posts
Posted 2004-02-11 9:56pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Besides, it dosent have to be Microsoft's fault for us to blame them :lol:
Re: game_text entity and CS Posted by Crono on Wed Feb 11th 2004 at 10:35pm
Crono
6628 posts
Posted 2004-02-11 10:35pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
wow. . .such hostility.

Ah, they deserve it for the most part. BUT, no need to senslessly rat on them. Because after all there's an 85% probability that you're using Windows to make these posts. Microsoft might just flip that "blow up computers" switch and inadvertantly blow up the world lol

If I had this amount of power I'd definatly have something like that installed :biggrin:

jk, I'm not psycho, I swear . . . Tyler made me do it :biggrin:

"You can blow up just about anything with enough soap."
Re: game_text entity and CS Posted by omegaslayer on Thu Feb 12th 2004 at 2:09am
omegaslayer
2481 posts
Posted 2004-02-12 2:09am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Crono said:
wow. . .such hostility.

Ah, they deserve it for the most part. BUT, no need to senslessly rat on them. Because after all there's an 85% probability that you're using Windows to make these posts. Microsoft might just flip that "blow up computers" switch and inadvertantly blow up the world lol

If I had this amount of power I'd definatly have something like that installed :biggrin:

jk, I'm not psycho, I swear . . . Tyler made me do it :biggrin:

"You can blow up just about anything with enough soap."
Dang I never thought about it that way before

*curls in a dark cornner whimpering

Microsoft definitely has the power right now (monopoly) The world is really f'd-up these days.
Re: game_text entity and CS Posted by Hornpipe2 on Thu Feb 12th 2004 at 7:06pm
Hornpipe2
636 posts
Posted 2004-02-12 7:06pm
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
At least my computer is safe if Microsoft pushes The Big Red Button.

But enough of that. Do as Loco suggested and look into the CS-Expert fgd file. I haven't gone all the way through it yet but I do know it even has the env_funnel entitiy - you'll probably have game_text in there somewhere.

http://collective.valve-erc.com has notes about using most every entity in the game, so if you can't get game_text to work, try looking up env_message in the Entities section. Or record a sound of you saying "TERRORISTS BLEW UP THE HOSTAGES!" or whatever and have that play when you trigger whatever. Or have a giant sign drop in from the sky with huge text written on it that reads "CTS ARE CAMPING IN THE MOUNTAIN BASE!". I dunno, there's lots of ways around using game_text. Some are better than others.

EDIT: Here's another spot for the Expert FGD: http://collective.valve-erc.com/data/entity/1046032221-33760200/files/halflife-cs-expert.zip

Here's game_text info: http://collective.valve-erc.com/index.php?ent=game_text

Here's env_message info: (you may be restricted to only phrases in the CS titles.txt - hopefully that will have something useful to you...) http://collective.valve-erc.com/index.php?ent=env_message
Re: game_text entity and CS Posted by Wild Card on Thu Feb 12th 2004 at 7:38pm
Wild Card
2321 posts
Posted 2004-02-12 7:38pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Loco said:
Found this link to dev dev revolution where all the files are stored. Theres an expert fgd here which might help

http://dev.valve-erc.com/index.php?area=documents&document%5B%5D=103463080941876300&action=view
Sorry Loco :lol: it kept asking me for a password and username. No punn intended of course :smile: