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 / Item pick up message

Author
Message
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 29th Mar 2011 07:23
I would like to change the message that appears when you pick up an item from "you picked up an item" to a message to say you picked up a flashlight, or you picked up a Uzi etc. I've searched the forums and really haven't found an answer.
BeauPratten
16
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 29th Mar 2011 07:56
change the pickupitem.tga hud using an image editor and edit it to say what you want weather it be a torch, battery of the like. then edit your pickup script to use that image instead of the generic one it uses, give this a unique name and save it as a new script

Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 29th Mar 2011 19:06
Thanks Beau, I am just getting into Fpsc, learning to do new stuff all the time. How do I edit the pick up script to read that?

Thanks again.
Kravenwolf
17
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 29th Mar 2011 19:38 Edited at: 29th Mar 2011 19:38
Change the hudimagefine path in the weapon script to find the new text image that you made;

Quote: ":state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10"


pickedupaweapon.tga will need to be changed to pickedupaflashlight.tga (or whatever you named your new image to).


I made a GIMP tutorial awhile back if you need any guidance for creating the actual text image;

http://forum.thegamecreators.com/?m=forum_view&t=150076&b=21


Kravenwolf

Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 29th Mar 2011 19:50
Ok, this how new I am. I can't find the Pickedupaitem.tga file Where is it? I thought it would be in gamecore file somewhere but all I can find are dds files. The rest of the instruction sound easy enough if I could just find the starting point.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 29th Mar 2011 19:54
Quote: "I can't find the Pickedupaitem.tga file Where is it?"


Check the folder Files\Languagebank\English\Gamecore\text. That is where they are located.

- BlackFox

The function of good software is to make the complex appear to be simple.
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 30th Mar 2011 01:08
ok cool I got the new hud desinged and saved problem is when I look for the fpi of the item I want to change I can't find it I only see FPE, dds. and bitmap. it is a purchased led from the store Errant Ai was the creator. I go into scriptbank/purchases/errantai/weapons/gadgets. Cant figure it out it's probably simple right.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 30th Mar 2011 01:28 Edited at: 30th Mar 2011 01:31
Quote: "ok cool I got the new hud desinged and saved problem is when I look for the fpi of the item I want to change I can't find it I only see FPE, dds. and bitmap. it is a purchased led from the store Errant Ai was the creator. I go into scriptbank/purchases/errantai/weapons/gadgets. Cant figure it out it's probably simple right. "


You are looking in the entity folder, which does hold the BMP, texture (DDS), and the FPE (control file for the entity). You need to actually edit the script itself- used to tell the engine what to do when the item is picked up. Scripts are located in the Files\scriptbank folder.

In the following example, we will use a flashlight (torch) found in the SciFi>Items section. To change the hud displayed when you pickup the item to your own hud, follow these steps:

1. Place the torch entity to pickup.
2. Right click on the entity, look at the field AI Scripts>Main field. Notice it has the pickup1.fpi script attached. The FPI is a script, and is found in the Files\scriptbank folder.
3. Navigate to where the pickup1.fpi script is and view it using notepad or whatever you use to edit script files.
4. Look for this in the script- hudimagefine=gamecore\text\pickedupanitem.tga. You replace that line with the path and name of your hud you made. So if you called it "pickup_myhud.tga" and it is in the same folder, you would have hudimagefine=gamecore\text\pickup_myhud.tga.

I normally make a copy of the pickup1.fpi script and may call it pickup_flashlight.fpi. This way I have the original. Once I am done editing the script, I make sure I keep it in the \scriptbank folder.

5. Now you can change the script assigned to the item. In the AI Scripts>Main field, click the little three dots (they appear when you left click in the white portion of the box where the word pickup1.fpi is) and navigate to your script. By default, it will open your scriptbank folder. Once found, click Open, then click Apply Changes.

As long as there are no errors in your script, your hud you created will be used instead of the standard pickup item hud.

- BlackFox

The function of good software is to make the complex appear to be simple.
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 30th Mar 2011 02:50
I really appreciate your help with this. I have done all the steps, problem isnow the player can't pick up the item. Argh
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 30th Mar 2011 04:30
Quote: "I have done all the steps, problem isnow the player can't pick up the item."


Ok, did you alter the pickup1.fpi script? If so, did you check to ensure the command playertake is still in the script?

Either post your script here or feel free to e-mail me directly and I can help you.

- BlackFox

The function of good software is to make the complex appear to be simple.
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 30th Mar 2011 04:48
Also remember that notepad is a finicky little beggar if you dont change the 'save as' field box to 'all files' your file will have an added .txt extension, even if your named file is myscript.fpi you will end up with myscript.fpi.txt which FPSC wont recognise

Login to post a reply

Server time is: 2026-06-30 01:03:38
Your offset time is: 2026-06-30 01:03:38