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 / Can you see the scripting error?

Author
Message
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 18th Jan 2008 00:18
I made a script and it's displaying a totally different image. I've checked it several times, I just don't seem to see the error.

I can't find it. Could someone help me?


Image made by the overworked Biggadd.
ShaunRW
DBPro Developer
16
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 18th Jan 2008 07:30 Edited at: 18th Jan 2008 08:58
try this it might work



copy and past it
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 18th Jan 2008 19:16
You just replaced his directories with "(watever)" "(name)" etc.....

I dunno, test the script, then tell us whether it works or not, and if it doesn't, what does it do instead?

It looks Ok to me but i just gave it a quick run-through....

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 18th Jan 2008 21:49
:state=0:state=1
:state=1,plrwithinzone=1:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\text\jukebox.dds,hudmake=display,hudname=jukebox
:state=1,plrwithinzone=1:hudshow=jukebox
:state=1,plrwithinzone=0:hudunshow=jukebox

The second and third lines have identical conditions and is the root of your conflict.

The creation of the hud should be in state=0, thus removing the first of the conflicting lines and fixing the problem.

Try this...



Don't forget to visit Conjured Entertainment

Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 19th Jan 2008 01:16 Edited at: 19th Jan 2008 01:24
Thanks a lot, I don't know what I'll do with out these forums.
Edit: It still shows a different HUD. I'll check my dir. and the other normal causes.


Image made by the overworked Biggadd.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 19th Jan 2008 23:17
Oops, my bad!


I didn't even notice that you had specified the languagebank\english part in your path...you don't need it.

That is where you need to have the file, so leave it there.
Only you don't need to specify that in the FPI script because it starts there anyway.

So, change the ...

languagebank\english\gamecore\text\jukebox.dds

...to...

gamecore\text\jukebox.dds

...and it should work.

Sorry, about that. I should have caught that too. (I'm getting old)

Don't forget to visit Conjured Entertainment

Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 19th Jan 2008 23:24
Quote: "Sorry, about that."

It's okay, just a another lesson for me.


Image made by the overworked Biggadd.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Jan 2008 12:11
Okay, here's the bug:

When creating a HUD for use in a script make sure of a few things. Firstly, make sure paths are correct, everybody knows that one now-a-days . But what most people don't know now-a-days is that you also need to NAME your hud BEFORE you use the "hudmake" command. Once you use the "hudmake" command, it will register all the HUD data and store it away for later, but you hadn't named your HUD yet.

Another thing you should be careful of when loading HUDs, is forcing the script into a position where it will load the HUD many times. Although the engine is smart enough not to make tons of duplicates, it just plain wastes time to have to execute that long line of code, ya know?


Try putting "hudmake=display" at the end of the HUD-making line and see if that fixes it.


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: 21st Jan 2008 07:28
Yeah, I hadn't noticed that either Plystire.
Probably because I copy & paste my HUD line then just change the name.

Here is his line...

hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\jukebox.dds,hudmake=display,hudname=jukebox

...and here it is as a modified stock script...

hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\jukebox.dds,hudname=jukebox,hudhide=1,hudmake=display

You're right.
The hudmake should be at the end.
That should fix it for sure.
I am going to really study the next script I try to help with.

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: 21st Jan 2008 11:42
That's alright, Conjured, that's why there's always more than one helper on a board, so they can catch each other's mistakes, right?

You've caught a few of mine before, I recall.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 22nd Jan 2008 00:57
FPSC is rather picky, but things to remember never the less.

Cheers.


Image made by the overworked Biggadd.

Login to post a reply

Server time is: 2024-11-24 03:36:10
Your offset time is: 2024-11-24 03:36:10