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 / Wrong HUD

Author
Message
the fps gamer
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Home...
Posted: 24th Jan 2008 19:17
I am kinda having the same problem as Nickydude in this thread:

http://forum.thegamecreators.com/?m=forum_view&t=121056&b=23

But i do not use the plrinzone command and still it turns out wrong.
The code for the .fpi script is here:



Also the image of the bug is attached

-If it is cool then it is cool

Attachments

Login to view attachments
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Jan 2008 19:42 Edited at: 24th Jan 2008 19:49
The script looks fine to me, except that state=1 is calling itself, which does nothing but make and endless loop when we can stay in state=1 by simply not calling another state. (remove that state=1 at the end of state=1 or make it state=2)

I see that you are using ...

gamecore\text\HUD_Neogex_Helmet.dds

... for your path.

Is your image there, or is it really placed in ...

languagebank\english\gamecore\text\HUD_Neogex_Helmet.dds

...because it should be located in the second path.
You do not need to specify the languagebank\english\ part of the path in the FPI script, but the image does need to be there.

So, change state=1 and place a copy of HUD_Neogex_Helmet.dds in the location of that second path I listed, and you should be okay.

Don't forget to visit Conjured Entertainment

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 25th Jan 2008 01:54
See my thread for the solution (to my problem anyway)

Was going to take a break... But I missed FPSC!
the fps gamer
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Home...
Posted: 25th Jan 2008 09:16 Edited at: 25th Jan 2008 10:41
i do believe i got the solution thanks Conjured Entertainment

EDIT: If anybody got a suggestion which could fix this problem please write a reply

-If it is cool then it is cool
the fps gamer
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Home...
Posted: 25th Jan 2008 18:09
Here i have corrected the code and now the black thing does not appear. BUT it wont show the real hud either:



Thanks in advance

-If it is cool then it is cool
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 25th Jan 2008 20:06 Edited at: 25th Jan 2008 20:19
NO, leave the languagebank\english part OUT of the script.
Just make sure the image is placed there.

Here is the


... and here is where your image for your HUD should be placed...

languagebank\english\gamecore\text\HUD_Neogex_Helmet.dds


I noticed you are placing this image in the center of the screen. (hudx=50,hudy=50)
So, make sure your image is not too big for the screen, because if it goes off screen it may cause a glitch.

I know the code above works, because I tested it by replacing your image name with pickedupaweapon and it worked.
So, as long as your image is not larger than the screen, it is not corrupted, and it is located in the right place, then you should see it when you run that script.

Don't forget to visit Conjured Entertainment

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Jan 2008 02:51 Edited at: 26th Jan 2008 02:54
Hehehe, he also deleted teh "state=1" from the last line, but left the comma in there. Then he changed "hudshow" to "hudunshow" which would effectively prevent the hud from appearing.



Get rid of that comma, too. It might confuse the parser.

That... and it's a bad programming habit to leave useless bits of syntax in your code.

@CE:

I don't believe he NEEDS to get rid of the "languagebank/english" portion... it may be optional, because I know I used to do it like that and didn't have any problems. I think the problem with his code was that he used "hudunshow" instead of "hudshow".


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Jan 2008 06:48 Edited at: 26th Jan 2008 06:50
Quote: "I think the problem with his code was that he used "hudunshow" instead of "hudshow"."


I saw that Plystire. (he had it right the first time)
That's why I gave him code that has it the right way.

Don't forget to visit Conjured Entertainment

the fps gamer
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Home...
Posted: 26th Jan 2008 09:53
Now the wrong hud appears again i am now attaching the hud that i use maybe it could solve the whole thing.

-If it is cool then it is cool

Attachments

Login to view attachments
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Jan 2008 19:04 Edited at: 26th Jan 2008 19:27
DOH!! HERE IS THE PROBLEM....

You call it "HUD_Neogex_Helmet.dds" in the script but it is named..."hud_neogex_suit.dds"
So, which is it a helmet or a suit?
Change the name in the script and it works. (I used lower case in the script, like the file name for consistency)

I like the streaks on the side. Are they supposed to be highlights or smudges?
They look like highlights. I would make them a little smaller, but that is just me.

Looks great.

Don't forget to visit Conjured Entertainment

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 27th Jan 2008 09:13
Lol! Funny stuff

I think everyone here has done something like that before.

Hope it still works on his end.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 28th Jan 2008 08:45
Quote: "I think everyone here has done something like that before."

I'm guilty of having done that before too.
Its no biggie. I'm sure he has it working now.

Don't forget to visit Conjured Entertainment

the fps gamer
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Home...
Posted: 28th Jan 2008 10:24 Edited at: 28th Jan 2008 10:25
I will look into rewriting the whole name down to one little name called "hud.dds" and set the opening program to Paint.net (newest version of course)
Anyway if this does not help i will abandon the hud and maybe trying to make a segments pack instead and on side hand continue on my new game project

One hint though: 421

See ya soon

thefpsgamer

-If it is cool then it is cool

Login to post a reply

Server time is: 2024-11-24 04:11:19
Your offset time is: 2024-11-24 04:11:19