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 / FPGCRAWTEXT Paragraphs?

Author
Message
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 17th May 2012 08:04
Hi all I was curious... I've been using the fpgcrawtext a lot lately since its a lot easier to use for creating dialogs rather than HUDs. However I would like to be able to create several lines of texts. Is there a way to do this without creating several instances of FPGCRAWTEXT?

Example:

1)Talk
2)Attack
3)Steal

The above shows 3 lines of text is there a way to create breaks or soft returns to make text appear like above?

Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 18th May 2012 01:42
or should I be using the command HUDTEXT?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 18th May 2012 02:07 Edited at: 18th May 2012 02:13
IIRC, HUDTEXT works the same as the FPGCRAWTEXT command. It is used to display a single line of text. In other words, there is no "wrap text" available to do multiple lines in one instance.

The only way we know of to have a "paragraph" or multiple lines of text display in one instance is to use a hud with just text only. We do not normally use the "hudtext" or the "FPGCRAWTEXT" much, except in our title page.


Twitter: @NFoxMedia
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 18th May 2012 03:44
I was kind of hoping BlackFox would have some sort of work around for it. But . . .

. . . I have code that would allow for text wrap. I'll ask Lee if he would like me to send Scene Commander the code. It is basically what LUA uses with modifications for FPSC and RPGmod. I've seen many requests for this. The biggest problem is the use of the default font and the availability of font colors and background colors. We could start out with the default font and color which would be the same font FPGCRAWTEXT uses. The default background would be white and the font color would be black.

Does anybody have any thoughts on this? In other words, should I approach Lee with the feature?

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 18th May 2012 04:07
Quote: "I was kind of hoping BlackFox would have some sort of work around for it. But . . ."


I do, for our source. I too have the ability to allow text wrap by modifying the "hudtext" command. Even have it allowing for punctuation- was tricky at first, but works like a charm.

Quote: "Does anybody have any thoughts on this? In other words, should I approach Lee with the feature?"


I would say go for it- it is a viable option. It would allow developers to have a choice- either a hud image with their text in paragraph, or by using a command and no need for an image. Otherwise, the current "hudtext" and "FPGCRAWTEXT" commands only allow for the single line.


Twitter: @NFoxMedia
Scene Commander
Support Manager
16
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 18th May 2012 12:35
This is something I've been considering for awhile, so I'm in favour
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 18th May 2012 16:51
You know teabone, I had been thinkng about this as well. Getting the fpgcrawtext to display more than a line or two is very script intensive. I found myself just copy and pasting theses three lines of code

and jsut changing the states accordingly.

I had also been thinking about using something like windows movie maker or similar software. Taking screenies of each letter in whatever message I am trying to display. Then editing all the sceenies into one video/hud. To give it the appearence that it was that someone was typing it out on as you were reading it.


I chose to go the route of the script I wrote which I think you have seen already. It was kind of a middle ground, it gave me what I was looking for as far as an objectives and mission outline which can be called up by pressing a button. However my desire was to get it to print out as if someone in some office somewhere was directly communicating with the player in what seemed like real time. I may still try and work out a "video" hud like I mentioned earlier. The last few weeks I have been hitting FPSC hard trying to get a level finished up and get the hud script written and running correctly. I just need to take some time off and go out and catch some fish. Ill post here if I come up with anything.
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 18th May 2012 21:54
@BlackFox

I recently found out that I was unable to use many different kinds of punctuations in my text bodies using fpgcrawtext. This was pretty disappointing on top off no text-wrap/multi-line. These two additions to the command would be fantastic. Even the oldest game-creation-systems out there allow for raw multi-line text display so I don't see why FPSC doesn't.

@F l a t l a n d e r

I vote yes lol

Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 14th Aug 2012 07:52
So was this featured added at all?

Login to post a reply

Server time is: 2024-11-23 22:01:04
Your offset time is: 2024-11-23 22:01:04