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 / HUD Does Not Display

Author
Message
Leon Kennedy
17
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 2nd Mar 2012 05:37
Ok, this is bothering me. I have a custom HUD that I'm using, yet I cannot get it to display. The specifics:

I am using v118 on Windows Vista.

I have a HUD called ForandonHoldObjectives saved as both DDS and TGA file types in languagebank\english\gamecore\huds\cots, and I've got the script that is supposed to display the hud in scriptbank\curse of the sarinaanen. The script:



I've taken the script and placed it in a trigger zone, and I go to test the level. And the script should work, right? Well, it doesn't. Nothing displays. NOTHING.

I've searched and searched, and the script should function properly. But it doesn't. Anybody know why?

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 2nd Mar 2012 06:42
This is a scripting issue and should have been posted in the script section.

Try this:



Ensure that the file is in fact in the correct path as specified in the first line of the script. If it still does not work, then a couple of the issues might be:

1. You have the DDS and the TGA together in the same folder. Although you are pointing to the TGA, it will use the DDS and it might be possible that something is wrong with the DDS file. Try to change the hud to a png, then change the script line to use .png at the end of the name.

2. There is an issue with the actual graphic hud and you might need to reconstruct it.


Twitter: @NFoxMedia
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 2nd Mar 2012 07:29 Edited at: 2nd Mar 2012 07:35
Again you are showing the hud with scancodekeypressed=24 at state=1 and immediately removing it with scancodekeypressed=24 at state=2.
Your showing it again when going back to state=1 but its all happening so fast you dont see it all.
This seems to be a common mistake which I have seen before.

Blackfox script will work for you but with only half a second I reckon it might still be too short a timer, since its something to be read I think you could increase it to at least three seconds.

Awesome! Its one of those threads.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 2nd Mar 2012 07:44 Edited at: 2nd Mar 2012 08:11


Try that

EDIT: Updated script, try the updated one instead

-TZK

Leon Kennedy
17
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 2nd Mar 2012 17:28
Yeah, I thought I had posted this in the scripts section, but I was tired last night when I posted so I put this in the wrong spot. Totally my bad.

And after seeing the scripts given, I realized that I made the same mistake now that I did the first time I tried to do this a few years ago, but thanks to being away for so long I forgot about my mistake. Again, my bad.

I applied the given script and modified it for my needs, and it works just fine now. Thank you all for your help!

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 3rd Mar 2012 02:13
@Leon Kennedy
Just out of curiosity, whose script worked, or did both do the job?

-TZK

Leon Kennedy
17
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 3rd Mar 2012 03:18
actually...neither. I ended up finding the old thread from 4 years ago where I asked a similar question and got the script in there from xplosys.

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 3rd Mar 2012 03:25
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 3rd Mar 2012 03:39 Edited at: 3rd Mar 2012 03:39
Quote: "Just out of curiosity, whose script worked, or did both do the job?"


What is this, a competition? LOL

Quote: "actually...neither."


The script I gave was an example of how to insert a timer when displaying huds. And yes it works just as it should.


Twitter: @NFoxMedia
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 3rd Mar 2012 03:48
@BlackFox
Quote: "What is this, a competition? LOL"

lol, it can be

-TZK

Login to post a reply

Server time is: 2026-07-03 05:21:39
Your offset time is: 2026-07-03 05:21:39