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 / Completely different hud showing!

Author
Message
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 1st Jan 2008 19:58 Edited at: 1st Jan 2008 20:13
Not sure if this should be in Scripts or not.

Ok,

1. I have a triggerzone and the Main AI has "ShowBook.fpi"
2. This is ShowBook.Fpi:

3. When the player walks into the triggerzone I want this to display:



but instead, this is displayed:



I don't even know where that came from! Can anyone shed any light on what I'm doing wrong?

Taking a break... Be back soon.
creator of zombies
18
Years of Service
User Offline
Joined: 16th Feb 2006
Location: UK: West Wales
Posted: 1st Jan 2008 20:34
I have had this before. Are you using the same script in another part of the level/and/or in another level? Try making a copy of that script and saving it as something else, then the engine won't call the same script twice. This sometimes works for me, and sometimes it doesn't.

Sorry that i couldn't be much help

CoZ



Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 1st Jan 2008 20:49
It's the very first script I'm using!

Taking a break... Be back soon.
creator of zombies
18
Years of Service
User Offline
Joined: 16th Feb 2006
Location: UK: West Wales
Posted: 1st Jan 2008 20:54
Quote: "It's the very first script I'm using!"


Ahh...urrrm *backs away*, there goes my theory. Lets just put it down to: FPSC is playing up again.

*seriously*
It may be something as simple as a misplaced HUD file (not deleting a .dds etc), or a small scripting error.

CoZ



Urlforce Studios
18
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 1st Jan 2008 20:58
languagebank:english:gamecore:text:bookhud.tga

Theres your problem. I think you know how to fix it...

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 1st Jan 2008 21:04
Do you mean the colon ':'? I put that there because the forum removes the slashes. They are slashes in the script (and the first post say's this).

Taking a break... Be back soon.
Urlforce Studios
18
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 1st Jan 2008 21:05 Edited at: 1st Jan 2008 21:06
Try using a dds, I never like to use TGA, dont trust them.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2008 01:42
Tried converting it to .dss but still the same thing is showing.

Taking a break... Be back soon.
Ice Cube
17
Years of Service
User Offline
Joined: 21st Apr 2007
Location: United Kingdom
Posted: 2nd Jan 2008 03:58
Try to display the same hud in a new level.
Just File->New.... some floor... trigger the hud and see what happens.

If it's still the same, try to use an entity instead of trigger zone. May be something very small and invisible (black texture). Then use ... "plrdistwithin=X" ... you know the rest.

Defy
FPSC BOTB Developer
VBOTB Developer '09
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 2nd Jan 2008 04:02 Edited at: 2nd Jan 2008 04:12
If I get a chance today, I'll give this a look. U may have found a solution by then. Good luck
*edit, sorry IceCube didnt see your post.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2008 09:16 Edited at: 2nd Jan 2008 09:20
Ice Cube, tried what you said, new game with just standard floor and I get exactly the same thing! This is weird.

Edit: Just tried a different script (payphone.fpi) and that worked so it's either the script or the image but I can't see how.

Taking a break... Be back soon.
Ice Cube
17
Years of Service
User Offline
Joined: 21st Apr 2007
Location: United Kingdom
Posted: 2nd Jan 2008 20:38
Nice to hear that it works.
I usually use an entity to display huds and never had any problems.

Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 2nd Jan 2008 20:40
/////\\\\\\\
It does?


Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2008 23:21
Quote: "Nice to hear that it works."


It doesn't, I meant that I put the payphone.fpi script in the MainAI instead of ShowBook.fpi and the payphone script worked as it should. My script is still showing the red eye hud.

Taking a break... Be back soon.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 3rd Jan 2008 00:18
Could somebody try this for me? Using the image and script in the first post?

Taking a break... Be back soon.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 3rd Jan 2008 20:29
Anybody tried this?

Taking a break... Be back soon.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 3rd Jan 2008 22:31
YES!! I've figured it out, now see who can spot the scripting error first.

Taking a break... Be back soon.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 4th Jan 2008 09:28
Moving to the Scripts forum.

Please have mercy and use the search function.
KenPaulio
16
Years of Service
User Offline
Joined: 25th Dec 2007
Location:
Posted: 4th Jan 2008 11:39 Edited at: 4th Jan 2008 11:40
Uh I new to scripting but im guessing it has to to with
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 4th Jan 2008 12:51 Edited at: 4th Jan 2008 12:52
I'm no scripter either but I think it should be



Do we win a prize,maybe a carribean cruise


Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 4th Jan 2008 15:55
Unfortunately you're both wrong Keep going.

Was going to take a break... But I missed FPSC!
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 4th Jan 2008 16:40
hudunshow=x.
Strangely enough the manual says this command is to unhide the item.
Maybe hudhide or hudfadeout.
Dont see how that would call the wrong image tho'.
I really wanna win that cruise


Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 4th Jan 2008 16:57
I do want to unhide the item, when the player is no longer in the zone. perhaps I could turn this into a competition!

Was going to take a break... But I missed FPSC!
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 4th Jan 2008 21:43
:state=2,plrwithinzone=0:hudunshow=startbook,state=1

makes no sense to me i think it should be

:state=2,plrwithinzone=0:hudunshow=startbook,state=0

or else it will eventually show while ingame it could result into that ugg...thing xD i think that thing is aresult of an infinate loop that is created while plr is within zone.

PS : i NEVER made a script with this but i can understand stuff easily.
PS2 : I love ur guide so if you not mind i advertize? i give link to official post you made.

<- made by Nickydude
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 4th Jan 2008 22:01 Edited at: 4th Jan 2008 22:03
or maby
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank:english:gamecore:text:bookhud.tga,hudname=startbook,hudhide=1,hudmake=display,state=1

has to be

:state=0:hudreset,hudx=50,hudy=50,hudimagefile=languagebank:english:gamecore:text:bookhud.tga,hudname=startbook,hudhide=1,hudmake=display,state=1

<- made by Nickydude
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Jan 2008 02:41
I've already discovered the error, but since you're having so much fun getting everyone else to guess what it is, I'll keep it to myself.

Btw, hudhide cannot be used to simply hide a HUD, hudhide is only used during the creation of a hud as it is a flag that the engine utilises during that process.

And from personal experience, I think Nickydude would want to use the "hudunshow" command instead of fadeout, because when using a fullscreen HUD like he is, it just doesn't look right when it disappears.

hudimagefile is not a command... hudimagefine is the correct command here, it is the command that will load up a hud image with "fine" quality.

There is no infinite loop in nickydude's code... The code wil go to state 2 when the player is within the zone. Then it will go back to state 1 when the player leaves the zone. And so, there cannot be an infinite loop here, since the player cannot be isnide the zone AND outside of the zone at the same time.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 5th Jan 2008 15:57
Hehehe PlystirE, it took me a while to see it and then I couldn't believe it was that!

Quote: "PS2 : I love ur guide so if you not mind i advertize? i give link to official post you made."


Of course not, the more the merrier.

I'll tell you all what the script error was tomorrow...

Was going to take a break... But I missed FPSC!
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 5th Jan 2008 16:45
it must be a lame error like a missing something that it should be there...tho dont ask me what it is xD

<- made by Nickydude
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Jan 2008 19:57 Edited at: 24th Jan 2008 19:58
The image needs to be placed in the ...

languagebank:english:gamecore:text:bookhud.tga

...but the script should read....


hudimagefine=gamecore:text:bookhud.tga

...because you need to omit the languagebank:english: part of the path in your FPI script.

Don't forget to visit Conjured Entertainment

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 24th Jan 2008 23:51
Oh yes, I forgot about this. Thanks CE but it is now sorted, and the error?....

-------------------------------------------------
;Artificial Intelligence Script

;Header desc = My Own HUD
This should be on two lines!
...

...
-------------------------------------------------



Was going to take a break... But I missed FPSC!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 25th Jan 2008 00:28 Edited at: 25th Jan 2008 00:30
DOH!

That was so obvious!


  -       -       -       -

How did I miss that?

  -       -       -       -


  -       -       -       -


Dagnabit!

  -       -       -  



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: 25th Jan 2008 05:41
Wow, nice little art, CE.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Johny English
18
Years of Service
User Offline
Joined: 16th Jul 2006
Location: Czech Republic
Posted: 2nd Feb 2008 11:18
Please, can you send me the book hud? I want it for my game.

SIXOFT - This is not just a game, this is a SIXOFT game.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 3rd Feb 2008 18:23
Unfortunately no, as it's part of a pack I've bought (BenA's Medieval pack I think).

Login to post a reply

Server time is: 2024-11-24 03:45:58
Your offset time is: 2024-11-24 03:45:58