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 / trigger zone/ hud messages (NOT a request!!!!)

Author
Message
Nighthawk 4
16
Years of Service
User Offline
Joined: 20th May 2008
Location:
Posted: 25th May 2008 09:27 Edited at: 25th May 2008 11:29
hi. i have made a hud that shows text on the screen like "press enter to use" near the doors. my only problem is, i want to make only the letters visible, in other words, a transparent background. i've tried it with Photoshop (CS3) and saved it as .tga now, when i test the level, i get a white background, and black letters (i've made the letters black myself). can anyone help me with it?

another problem, i've made the script also so it should dissappear after 6 seconds. however, when i test it in FPI maker, it say's that i have an error in line 11, ":state=2,timerstart,state=3".
and when i open it in FPSC, it just stays all the time and never goes away.
this is what FPI maker says: "SYNTAX ERROR| a valid command must have two:`s"

anyway, here's the script.


edit: screens added.
btw, for a tutorial on this, look in Nickydudes hints 'n tips guide (page 54, i think) there's a link on the homepage.(lol, homepage )

this is my rifle, this is my gun,
this one's for killing, this one's for fun.

Attachments

Login to view attachments
Nighthawk 4
16
Years of Service
User Offline
Joined: 20th May 2008
Location:
Posted: 25th May 2008 11:32
hi. i have made a hud that shows text on the screen like "press enter to use" near the doors. my only problem is, i want to make only the letters visible, in other words, a transparent background. i've tried it with Photoshop (CS3) and saved it as .tga now, when i test the level, i get a white background, and black letters (i've made the letters black myself). can anyone help me with it?

another problem, i've made the script also so it should dissappear after 6 seconds. however, when i test it in FPI maker, it say's that i have an error in line 11, ":state=2,timerstart,state=3".
and when i open it in FPSC, it just stays all the time and never goes away.
this is what FPI maker says: "SYNTAX ERROR| a valid command must have two:`s"

anyway, here's the script. screens will be soon.


this is my rifle, this is my gun,
this one's for killing, this one's for fun.

Attachments

Login to view attachments
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 25th May 2008 12:06
Quote: "this is what FPI maker says: "SYNTAX ERROR| a valid command must have two:`s""


And that's exactly what I'm going to tell you.

Your line has only one COLON

: <------ That thing

Actions in scripting come AFTER the second colon. Since your line HAS no second colon, then FPSC does not process them as actions, it will view them as conditions.

Furthermore, in FPSC there is no "timerstart" condition. That is an action. This should clue you into what FPI Maker is trying to tell you.


Hope that my rendition of the "SYNTAX ERROR" was a bit clearer for you to understand.


And sorry if I'm sounding a bit harsh, but it seems that everyone who has a problem with their script has made this mistake and it's a bit tiring to tell this to everyone. It was covered in my Newb's Guide to scripting, which means it's covered in Nickydude's Guide. So, it's pretty much covered everywhere.


The one and only,


Nighthawk 4
16
Years of Service
User Offline
Joined: 20th May 2008
Location:
Posted: 25th May 2008 12:19
okay, ty. i've read nickydudes guide (somewhat) but i don't think i've run into your things in there...yet.

btw, do you know of any way to make a background transparent? cuz, as you might have seen in my screen, or my first post, i get a white background... and i just want the letters.

this is my rifle, this is my gun,
this one's for killing, this one's for fun.
Nighthawk 4
16
Years of Service
User Offline
Joined: 20th May 2008
Location:
Posted: 26th May 2008 19:58
no replies?

well, i fixed my script now, but the timer won't work. it's the same as the script mentioned above with the second colon before timerstart.
but it stays there all the time when i stay in the trigger zone, and dissappears when i leave the triggerzone. just as if there was no timer at all. and, does anyone plz help me to make the background transparent? i've read about every tutorial on text huds, but i cant find it

this is my rifle, this is my gun,
this one's for killing, this one's for fun.
Nighthawk 4
16
Years of Service
User Offline
Joined: 20th May 2008
Location:
Posted: 28th May 2008 18:47
fixed all on this!
just photoshop wouldn't work, GIMP worked.

mod, close the thread plz

this is my rifle, this is my gun,
this one's for killing, this one's for fun.

Login to post a reply

Server time is: 2024-11-24 08:54:04
Your offset time is: 2024-11-24 08:54:04