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 / Penumbra style analizng object

Author
Message
Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 18th Sep 2010 04:54
Hi!

I'm using TheStoryteller scripts for analize objects (AGSP) but i want that a hud appear when you are near the object, as in penumbra where a eye appear when you are pointing to a analizable object.

I tried to edit the script, but i didn't get the result i want, can anybody tell me how to do it?

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 18th Sep 2010 06:00
Ok guys, i have this so far:




But i don't know how to make the hud disappear when the player is 110 units away from the entity

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?

-BOOK? I HATE BOOK! BOOK IS STUPID!
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Sep 2010 08:13
Couldn't you use "pickobject=0" to determine when the user isn't pointing at the object anymore? Then hide the hude that way.

Otherwise a simple "plrdistgreater=110" should be fine.


The one and only,


Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 18th Sep 2010 09:17
I could use them, but i didn't know them existed

Also, that you tell me didn't help me too much lol, but i finished the script and it does exactly what i want



Thanks anyway Plystire, you was the only one who comented trying to help

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?

-BOOK? I HATE BOOK! BOOK IS STUPID!
The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 18th Sep 2010 14:22 Edited at: 18th Sep 2010 14:23
Plystire was the only one who commented/helped within 24 hours
If you give the community a little time you'll get more response usually

And it's nice to see, that someone starts to extend/improve my AGSP scripts - hope your project will develop well!

In case you find my grammar and spelling weird ---> native German speaker ^^
Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 19th Sep 2010 00:40 Edited at: 19th Sep 2010 00:41
Woops, the hud suddenly stop working

The whole script is working, except the hud, is something wierd because yesterday it was working

I tried changing the directory from

hudimagefine=languagebank\english\gamecore\text\analize.tga

to

hudimagefine=gamecore\text\analize.tga

because i heard the engine automatically search in languagebank/english, but still don't working

any idea guys?

pd: Plystire, yesterday i was reading your variables tutorials, they help me too much! thanks lot

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Sep 2010 02:05
You're welcome. Glad people are still finding my tutorials to be helpful.

Quote: "The whole script is working, except the hud, is something wierd because yesterday it was working

I tried changing the directory from

hudimagefine=languagebank\english\gamecore\text\analize.tga

to

hudimagefine=gamecore\text\analize.tga"


Maybe you should change it back then?

If it's still not working, can you post your new script that is not working so we can take a look at it?


The one and only,


Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 19th Sep 2010 02:44 Edited at: 19th Sep 2010 02:50
This was the finished and working script




Then stopped working when: i applied the script to 4 entities in a room, so, i thought in changing the line hudimagefine, i did it, didn't work, then i think the problem was that in the 4 entities in the room, because the line

:plrdistfurther=110:hudunshow=a,state=1

make the engine hide the hud "a" and the name for the hud is the same for the 4 entities, so, if hte player is within 100 units to the first entitiy, but is further 110 to the second entity, the engine will unshow the hud anyway, so i changed the name of the hud in the script of every entity (first entity, hudname=a,second,hudname=b, etc) and changed t he hudshow and hudunshow comands acording to the entity, still don't working.

BUT yesterday i made a backup of the original finished script (4 post), i made a copy of the back up and use the original script in a entity in a empty room, it don't work


So i thought the problem was in the image, i checked the folders, no problem, checked the fromats (.tga), no problem.

I really don't know what i'm doing wrong

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Sep 2010 06:47
Ahhh, yes indeed. If you're going to use the script containing the HUD on multiple items, it would be wise to use the "hudfadeout" command for hiding it and you'll also want to make sure that WHILE the hud is visible, the script is using "hudshow" the entire time, to keep it visible while the other scripts are trying to fade it out.


For an example of that, look into how the HUD for doors works (the doors that need to be "used" to open since they show a HUD). You'll notice that the hud is being shown constantly and also being faded out at the same time. Well, the fadeout doesn't have time to completely fadeout since the "hudshow" command keeps running and keeping it visible.

Hope that makes some sense.


The one and only,


Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 19th Sep 2010 22:00 Edited at: 19th Sep 2010 22:02
Ok, i understand that , i tried changing the hudunshow= for hudfadeout and using the script in one entity in the room, and the hud don't show when i'm near to the entity and pointing to it.

This is so frutrating, 2 days ago it worked

My brain is gonna explode

pd: checking the door script right now

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 19th Sep 2010 23:52
Ok guys, i decided to use the fpgcrwatext and don't use a hud, i just ended the testing of this script:



Use it and tell me what you think!

WHY PROJECT BLUE IS SO EXPENSIVE!?!?!?

Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Sep 2010 00:31
hudfadeout is best used immediately after hudshow. Like I said the hud needs to be shown on every loop for it to properly override the fadeout.

Example:

:state=1:hudshow=a,hudfadeout=a

Notice they are right next to each other. When the script is in state 1 then the hud will show. As soon as it leaves state 1, the hud will fade out. If they are in different states, you more than likely will not be able to get the hud to show.


The one and only,


Bootlicker
17
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 20th Sep 2010 20:22
Quote: "analizng"


LOOOOOOOOOOL

I'm suprised no-one picked up on that


Wolf
18
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 21st Sep 2010 20:08
Thanks!

I'll try it

God Helps the Beast in Me!

Login to post a reply

Server time is: 2026-07-26 05:22:25
Your offset time is: 2026-07-26 05:22:25