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 Scripts / Timer for text

Author
Message
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 24th May 2010 06:20
Could someone give me some code for this please:

I would like one text sentence to stay readable on the screen
for about six seconds, then fade as usual. As I have a fast computer all text to screen is gone in 1 second.

I have looked at dozens of code examples, tried dozens, but the timer never works, and text stays on screen forever.

Many Thanks
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 24th May 2010 14:19
Put this into a trigger zone and it will display the message once for 5 seconds:


This script will in addition freeze the player (disable move and mouselook but not weapons):


Hope thats what you need
Personally I think that 3 seconds are enough (change the script to "timergreater=3000")

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 24th May 2010 17:06
the text doesnt appear

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 24th May 2010 17:32
It works both in the editor and in the built game for me.

I use fenix mod but these scripts include only vanilla commands.

In case you find my grammar and spelling weird ---> native German speaker ^^
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 24th May 2010 17:40 Edited at: 24th May 2010 17:47
I'm not sure where you get the fpgcrawtext command from but it isn't any mod I have o.o

as for your text problem, first go to gimp, ps-elements/suites, or some editting software that can save .Png format.

Type up some text over a transparent layer

create an HUD at x=50 y=50 (if you want it center screen, adjust the position as you please) using the image.

[WIP] Paranorma Chapter 1, The Beginnings
Plotline-In-Progress
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 24th May 2010 17:47 Edited at: 24th May 2010 17:55
EDIT: my fault - its in FPSC 1.16

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 24th May 2010 17:52
ANYWAY it doesn't work....We all use 1.16 you know

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 24th May 2010 17:57
check this thread called "New commands in V116 - FPGCRAWTEXT":
http://forum.thegamecreators.com/?m=forum_view&t=162763&b=23

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 24th May 2010 17:58
So why it doesn't work?

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 24th May 2010 18:27
Quote: "So why it doesn't work?"

Have you tried if the "Janitor script" from the first post of the above thread works for you?

In case you find my grammar and spelling weird ---> native German speaker ^^
nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 24th May 2010 19:39
This was even worst i just tried it....And???it shows me a hud that i made....

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 24th May 2010 23:49
Well....if the "janitor" script works for everybody except for you than the problem has to be fixed on your side obviously.

In case you find my grammar and spelling weird ---> native German speaker ^^
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 25th May 2010 05:04
Thanks Storyteller 01,

I have version 1.16.018 of FPSC and I could not get your code to do anything at all.

Thanks anyway
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 25th May 2010 11:33
Thats funny, I use 1.16.018 too. I also use fenix mod but these scripts don't include any fenix features.

In case you find my grammar and spelling weird ---> native German speaker ^^
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 25th May 2010 19:13
Perhaps its a general bug with 1.16 that the Fenix mod unintentionally fixes?

Wouldn't be the first time editting one part of an engine unintentionally fixed major problems with another (funny too )

[WIP] Paranorma Chapter 1, The Beginnings
Plotline-In-Progress
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 29th May 2010 00:37 Edited at: 29th May 2010 04:35
Quote: "I have looked at dozens of code examples, tried dozens, but the timer never works, and text stays on screen forever."


If your text message is not long then try this...


As you can see, it only displays "MESSAGE ONE" on the screen for a total of 5 seconds.

If you text message is longer, say a couple sentences or more and that is why you need longer to read it, then you may consider making it an image.
If you use a paint program like Paint.NET then you can save your text message as an image.
For that you could use this
.

As you can see, we are displaying the image named "info1.dds" for a total of 5 seconds.

Both of these scripts are using a plrwithinzone=1 to trigger the HUD.
Of course you would be using whatever condition you need for your situation.

   Conjured Entertainment

 WARNING: Intense Madness
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 29th May 2010 07:50
Question...

are the fpgcrawtext and HUDtext not included in the FPI editpad v. 3.3.94? Cause I can't find them in the edit pad at all o.o

[WIP] Paranorma Chapter 1, The Horror at Blacklake Inn
Plotline-In-Progress
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 29th May 2010 20:39 Edited at: 29th May 2010 20:48
Quote: "are the fpgcrawtext and HUDtext not included in the FPI editpad v. 3.3.94? Cause I can't find them in the edit pad at all o.o"

I'm not sure, but if you have looked and didn't find it then it's probably not in there.
As mentioned before, the fpgcrawtext was new in v116 (I use v115), so maybe Flatlander hasn't put it in to FPI editpad yet.

The hudtext=x is an alternate display for when the image can't be found or loaded.
So, if you define it and then do not specify an image path you force it to display.
You can find this action listed in the manual and the official community guide to FPSC.



   Conjured Entertainment

 WARNING: Intense Madness

Login to post a reply

Server time is: 2024-11-24 23:53:36
Your offset time is: 2024-11-24 23:53:36