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 / Conjured Entertainment\'s cash system bug

Author
Message
JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 4th Jun 2011 08:41 Edited at: 6th Jun 2011 00:56
Hello everyone. I didn't know if I should put this in bug reports or here so please don't get upset. I just recently downloaded Conjured Entertainment's cash system, and it works fine in fpsc version 1.18.017, but there is just one problem. No matter what gun I go up to to buy it will only display one of the guns picture, not both. Any ideas on how I can fix this? Hope someone can help because I kinda need this for my game.
JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 5th Jun 2011 01:36
I have tried everything I can think of but the two guns still display the same picture.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Jun 2011 06:03 Edited at: 5th Jun 2011 06:19
Quote: "No matter what gun I go up to to buy it will only display one of the guns picture, not both. Any ideas on how I can fix this?"

Is it a bug, or user error?
You won't see the other HUD unless you do not have enough cash on hand to buy it.
Try walking up to the gun BEFORE you pick up the cash.

The first thing your video shows is you picking up 4,000 in cash.
Then you buy a pistol for 900, leaving you 3,100.
Then you walk up to another gun and you get the buy or not HUD again because you still have enough cash to buy it.

Am I missing something here, because I cannot tell which weapon you are walking up to, but the HUD will display as a green one for you to buy it if you have enough cash.

If that is indeed a different weapon then post your scripts and I will try to help figure out why it is not calling the right HUD.

Quote: " I added a link to a video showing my problem. "

It would have been nice if you had verified the bug before advertising it as a Conjured Entertainment Bug, when it could also be user error.

JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 5th Jun 2011 06:22
I'm really sorry Conjured. I'll post the scripts in a few.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Jun 2011 06:47 Edited at: 5th Jun 2011 06:50
It's okay.
It could be a bug.
Either way, we can attempt a fix.

Quote: "I'll post the scripts in a few."

My batteries are about dead right now, so I'll have to wait until tomorrow to take a look. (off the grid here, and no sunshine for the solar panels until morning)

JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 5th Jun 2011 06:54
;Artificial Intelligence Script By Conjured Entertainment

;Header

desc = Pickup M9 for 600 Cash

;Triggers

:plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2

:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsmp40.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2

:state=1:rundecal=5

:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3

:state=3,varless=600:state=4
:state=3,varequal=600:state=5
:state=3,vargreater=600:state=5

:state=4:hudshow=ak1ksorry
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2

:state=5:hudshow=ak1kbuyornot,state=6

:state=6,scancodekeypressed=21:hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=10
:state=6,scancodekeypressed=49:hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2

:state=7,plrwithinzone=0,activated=9:activate=0,state=2


:state=10:globalvar=1,decvar=600,activatetarget=13,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,state=1

;End of Script

;Artificial Intelligence Script By Conjured Entertainment

;Header

desc = Pickup P226 for 500 Cash

;Triggers

:plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2

:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsmp40.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2

:state=1:rundecal=5

:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3

:state=3,varless=500:state=4
:state=3,varequal=500:state=5
:state=3,vargreater=500:state=5

:state=4:hudshow=ak1ksorry
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2

:state=5:hudshow=ak1kbuyornot,state=6

:state=6,scancodekeypressed=21:hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=10
:state=6,scancodekeypressed=49:hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2

:state=7,plrwithinzone=0,activated=9:activate=0,state=2


:state=10:globalvar=1,decvar=500,activatetarget=13,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,state=1

;End of Script
JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 5th Jun 2011 06:55
Sorry. The code snipit didn't work. :/
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Jun 2011 14:57 Edited at: 5th Jun 2011 15:03
I see one major problem right off in state=0 for both scripts.

here is the first one...

:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsmp40.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2

....and the second one....

:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsmp40.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2

You are creating the same huds for the weapons.
Look at the paths...

hudimagefine=gamecore\huds\user\fundsmp40.dds
and
hudimagefine=gamecore\huds\user\confirmm9.dds

You use the same huds in both scripts and not the ones you need.
The first one should be...

hudimagefine=gamecore\huds\user\fundsm9.dds
and
hudimagefine=gamecore\huds\user\confirmm9.dds

and the second should be...

hudimagefine=gamecore\huds\user\fundsp226.dds
and
hudimagefine=gamecore\huds\user\confirmp226.dds

Remember, you need unique HUDs for each unique weapon.
The names should correspond as well, like...

m9sorry
m9buyornot

and

p226sorry
p226buyornot

Then you need to change the names for displaying to match those new names.

Try this
  for the m9

Don't forget to ensure that you have the fundsm9.dds and the confirmm9.dds created and in the right folder.
Then make the same changes for the p226 to make it unique to that weapon. (replace all m9 with p226)

Let me know what happens.

JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 5th Jun 2011 18:27
It works perfectly now! Thank you very much Conjured! As a thank you gift I'll make all the model pack 9 & 10 huds for the cash system for you so you can post them.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Jun 2011 23:39 Edited at: 5th Jun 2011 23:46
Quote: "It works perfectly now! Thank you very much Conjured! As a thank you gift I'll make all the model pack 9 & 10 huds for the cash system for you so you can post them."

Cool, glad I could help.

You can post them if they are your HUDs, just throw them in the cash system thread and others should find them.

Don't forget to take down that video.

And if you guys want to do me a real favor... add comments to the scripts if you modify them, like so...

;Artificial Intelligence Script By Conjured Entertainment
;Modified by YOUR NAME HERE

;Header

That way I don't get the blame for your errors, if you make any.
I make enough mistakes myself without taking the heat for everyone else's.

JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 6th Jun 2011 01:47
It won't let me take it down yet...
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 6th Jun 2011 01:57
Quote: "It won't let me take it down yet"

It's all good man, I was just messing with you.
It doesn't matter, so don't worry about it.

JBoy77
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: The dark path to righteousness is where you'll find me...
Posted: 9th Jun 2011 04:38
Oh lol okay.

Login to post a reply

Server time is: 2024-11-24 09:05:56
Your offset time is: 2024-11-24 09:05:56