Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / i wanna add text to my game to tell the player his objectives how do i do that? i already have storyteller script pack that doesnt help me?

Author
Message
sic1ne
15
Years of Service
User Offline
Joined: 23rd Sep 2010
Location:
Posted: 28th Dec 2010 22:02
hello ok i am trying to figure out how 2 get text in my game like the game uthenasia u walk up to a clipboard and it tells u what ur objectives are i already have the storyteller script pack but that doesnt help me at all? how do i go about adding special text in my game. please help
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 28th Dec 2010 22:27 Edited at: 28th Dec 2010 22:30
The only way you can add text is a graphical hud that is simply text or use the commands that storyteller has in his scripts. This is the only way in "vanilla" FPSC. As far as "vanilla" FPSC I don't know what else you can do.

However, RPG Mod is text oriented and especially designed for objectives, clues and all sorts of different ways to display text. You can have a clipboard placed in game and when you approach it you can have a larger clipboard hud placed at the desired coordinates pop up with the objectives placed on top of it. Just an FYI for you and others. RPG Mod only will work well with 1024x768.

I reject your reality and substitute my own!

Add more adventure to your game -- use RPG Mod
Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 28th Dec 2010 22:55
@Flatlander - I believe that the command FPSCRAWTEXT now allow the pasting of text in V1.17+

http://jimjamsgames.yolasite.com
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 28th Dec 2010 23:44 Edited at: 28th Dec 2010 23:46
Thanks SC. I just was going by the assumption that for some reason sic1ne could not get it to work since he was using ST's scripts which uses fpgcrawtext. I don't know what you have against RPG Mod, but you seem to be all over it when we try to talk positive and how helpful it can be for those who wants to do thing like this.

So, the following commands are to place or paste the text for vanilla FPSC is:

fpgcrawtextx - x coordinate
fpgcrawtexty - y coordinate

You can also make it a different color other that the default white:

fpgcrawtextr - red rgb value
fpgcrawtextg - green rgb value
fpgcrawtextb - blue rgb value

The font commands

fpgcrawtextsize - size of font in points
fpgcrawtextfont - font name such as "arial" or "verdana" or times new roman.

The text

fpgcrawtex
fpgcrawtextoff - no parameters. turns text off. Once you give fpgcrawtext a string value it turns it back on automatically.

If this can go on top of a hud I'm not sure. That you will have to figure out yourself.

I reject your reality and substitute my own!

Add more adventure to your game -- use RPG Mod
The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 28th Dec 2010 23:46 Edited at: 28th Dec 2010 23:48
The problem with FPSCRAWTEXT is, that it only allows single text lines - so its impossible to create p.e. a list on a clipboard.

In case you find my grammar and spelling weird ---> native German speaker ^^
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 28th Dec 2010 23:49
Yea, I forgot about that. Only one text line at a time. FPGCRAWTEXT is a good feature and I even use it. But only when I need one line of text. It's easier than my quick text feature in RPG Mod.

I reject your reality and substitute my own!

Add more adventure to your game -- use RPG Mod
Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 28th Dec 2010 23:55
@Flatlander.. Sorry if I sounded like I was telling you how to suck eggs..

It would be a handy improvement to rawtext to allow multiple lines.

http://jimjamsgames.yolasite.com
The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 29th Dec 2010 00:28
I don't want to pirate the thread, but while we're at it:

I tried several times to recreate the FPCRAWTEXT (which looks like from a Nintendo 64-bit screen) style for text huds in photoshop to mix both but I just couldn't.

Any ideas/experience anyone?

In case you find my grammar and spelling weird ---> native German speaker ^^
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 29th Dec 2010 00:44 Edited at: 29th Dec 2010 00:49
I don't think this is really hijacking the thread because he wants to know how he can do this as well. I probably can't help but what I do know is that the text formulated by FPGCRAWTEXT is number one, not a graphical hud and therefore it would be using the resolution of 1024x768 and number 2 are you using the same font in photoshoppe that you are using for the text? This is probably the only thing I can throw out there.

Addendum:

I forgot something very important and this is probably the reason why you can't duplicate it! Lee draws a border around the text. In this one sense it becomes graphical but uses an offset and makes it a little darker. I'm not sure if it is a black border or he uses the same color and just makes it a littler darker or maybe lighter (I just can't remember) I would have to look at the code

I reject your reality and substitute my own!

Add more adventure to your game -- use RPG Mod
sic1ne
15
Years of Service
User Offline
Joined: 23rd Sep 2010
Location:
Posted: 29th Dec 2010 00:46
hey storyteller is there a way i can use one of your scripts thats already made but change the line of text in it like for example!
name of script (severed doghead ) i dont remember what the script says when u use it but could i change the line of text to something else like grab the keys next to the dog corpse?
my question is can i use a script u already have made but change the line of text it says? and if i can how do i go about doing that?
Gencheff
16
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 29th Dec 2010 00:47
As far as I know you can change the font via command and windows had some font that looked like old-school bit text,but I can't remember the name,nor can I say if it's supported by FPSC.

The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 29th Dec 2010 01:12 Edited at: 29th Dec 2010 01:13
@sic1ne

That's the magic about FPCRAWTEXT - It displays exactly the text which is written into the script so you can change it all the way you like with the following restrictions:
- you can't use : ; , because it's part of the scripting language.
- only a single line of text is possible

Regarding the single line thing it would be a great improvement to the engine if different instances of text could bedefined to be displayed on their own

like:
FPCRAWTEXT1: What do you need?

FPCRAWTEXT2: I need some information
FPCRAWTEXT3: I need a weapon

In case you find my grammar and spelling weird ---> native German speaker ^^
sic1ne
15
Years of Service
User Offline
Joined: 23rd Sep 2010
Location:
Posted: 29th Dec 2010 01:40
thanks story teller one more question i am still learning script so i do not no how 2 script so how would i go about changing the line of script in one of your scripts? what would i use to change it and is there a tutorial thank you for all your help storyteller and everyone u guys are awsomne on here!!!! im learning so much
The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 29th Dec 2010 02:27 Edited at: 29th Dec 2010 03:07
Just take this script as an example:


;Artificial Intelligence Script

by TheStoryteller01 2010

;Header

desc=

This script only works with FPSC 1.16.18, because FPGCRAWTEXT is used.

Made for trigger zones that play information when the player steps into the zone but only once.

While the script is running the player cannot move or use mouselook but still shoot.

The script is running on its own but the player can speed up the display of the messages and ending the script by pressing <Enter>
after each text display.Pressing <Del> at any time ends the script.

;Triggers

:state=0:state=1

:state=1,plrwithinzone=1:timerstart,plrdisable=100000,state=2

:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=2:fpgcrawtext=This place gives me the creeps.
:state=2,timergreater=500,plrusingaction=1:timerstart,state=9
:state=2,timergreater=3000:timerstart,state=9
:state=2,scancodekeypressed=14:plrdisable=0,state=10

:state=9:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=9:fpgcrawtext=I have to get out of here.
:state=9,timergreater=500,plrusingaction=1:plrdisable=0,state=10
:state=9,timergreater=3000:plrdisable=0,state=10
:state=9,scancodekeypressed=14:plrdisable=0,state=10

;End of Script


You can change the bold text to anything you like - it just shouldn't get too long

In case you find my grammar and spelling weird ---> native German speaker ^^
Errant AI
19
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 29th Dec 2010 03:52
Quote: "I tried several times to recreate the FPCRAWTEXT (which looks like from a Nintendo 64-bit screen) style for text huds in photoshop to mix both but I just couldn't.

Any ideas/experience anyone?"


Assuming you mean the default text if no font or size is specified...

MS Reference Sans Serif
9 pixel size, no antialiasing

Give that a go. It's what I'm using and would say it's identical...

The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 29th Dec 2010 04:47
Thanks, @ErrantAI

Probably it should look the same but in Paintshop Pro it just doesn't

In case you find my grammar and spelling weird ---> native German speaker ^^
Errant AI
19
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 29th Dec 2010 05:31 Edited at: 30th Dec 2010 07:56
These are the CS2 settings. If the size is one step smaler or larger or AA is turned on, the text looks completely different.



edit: these are actually the settings for hudtext. I don't know about what would mimic fpgcrawtext. Missunderstanding on my part. I never use the raw text because of the one line issue. My bad!
Cross Hair Games
17
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 30th Dec 2010 09:08
@ Errant AI
Sent you an email, but I'm not sure if it sent, been having troubles with my email lately, did you revive one from me?

Login to post a reply

Server time is: 2026-07-03 09:53:55
Your offset time is: 2026-07-03 09:53:55