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't make "Simple FPI File". First time user....

Author
Message
Obevu
15
Years of Service
User Offline
Joined: 13th Dec 2009
Location:
Posted: 16th Dec 2009 04:07
So I have been looking though the manual on how to apply this code:


I've been on this manual for hours and still can't make it to work. So I got it in my MyScripts\mylogic.fpi
and then I put an entity on the editor. I put out a "cylderc" on the editor. I can see that it's dynamic because of the "(dynamic)" text on the entity and also when i'm in entity mode, i can see its Static mode is set to No.
So I go to AI scripts and then Main. Later I search for MyScripts\mylogic.fpi
and then i press Test Level and what happends? Nothing! I hear absolutly nothing when I'm suppoced to hear something. What I realised as well was that when I change all the .fpi on Start, Main and Destroy on it to MyScripts\mylogic.fpi nothing happends there as well.
I've done the exercise many many times, so I have no idea what to say to make this problem appear easier to resolve for you guys if you want to help. I would be very happy if you gave me something even more basic to start understanding how the code/scripting works! Thanks!!
Kravenwolf
16
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 16th Dec 2009 08:22
The script is fine. Make sure it's saved as a .fpi file, and not a .txt file.

Kravenwolf

Obevu
15
Years of Service
User Offline
Joined: 13th Dec 2009
Location:
Posted: 16th Dec 2009 17:01
I saved it as a .fpi file. I still got the problem of it not working. I'm on a vista by the way.
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 17th Dec 2009 00:47
There is a script that you should have called "repeatsound.fpi", just use that and put the sound that you want to loop in the first sound box. I tried your script and even tried to edit it to make it work but for whatever reason it didn't seem to work. The repeatsound fpi does work. The decals use it to loop their sounds and I would say this is your best bet. You script was fine, but fpsc just wasn't having it. I thought that because the was no condition it was not working, so when I tried that it still didn't work. Hope that works for you. If for whatever reason you don't have it here you go.


A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 18th Dec 2009 08:39
Im not sure but it may be because you are using no comment mark before your desc. I cant remember the layout so im not sure if there should be one or not.

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 18th Dec 2009 18:16 Edited at: 18th Dec 2009 18:18
Quote: "The script is fine. Make sure it's saved as a .fpi file, and not a .txt file."

Yes, the script looks fine.
You do want to save the file as a TXT file, but you want to save it with the FPI extention. (mylogic.fpi not mylogic.txt)
Make sure your text editor didn't put both extentsions on there as in mylogic.fpi.txt, because I have had them glitch and do that before.

Also make sure that you navigate with the button to your file when assigning it to your dynamic entity.
Typing in the path can cause it to flake out, so select it from the navigation menu instead. (the little button with the ... right next to the path input box)

Make sure you hit the Apply Changes button.


Quote: "Im not sure but it may be because you are using no comment mark before your desc. I cant remember the layout so im not sure if there should be one or not."

You should NOT have a semicolon in front of the description.
Commenting out the description will result in the script failing to run.

Put the actual file up here so we can test it.

Which text editor are you using? (notepad? wordpad?)

   Conjured Entertainment

 WARNING: Intense Madness
Flatlander
FPSC Tool Maker
18
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 21st Dec 2009 05:05 Edited at: 21st Dec 2009 05:11
I would suggest to use FPI EditPad to begin with. However, that will not make it guaranteed to work.

It also has a short help file showing the concept for writing a script and other help features.

I created a subfolder called MyScripts under scriptbank. I then used your script called mylogic.fpi



Instead of using an active entity I used a Trigger Zone and placed it into the Main AI of the trigger zone. It worked for me. This sound will loop throughout the level until the sound is changed.

Addendum:

Go here to download the installer. It is the FPSC download page. Scroll to the bottom of the page for the download link.

After you have it installed go here to download the most current version of the exe file and some other updates. Click on the download button to get the zip file.

-----------------------------------------------
OliveTreeGames
Obevu
15
Years of Service
User Offline
Joined: 13th Dec 2009
Location:
Posted: 23rd Dec 2009 00:18
so i replaced your mylogic text with the one i had. it did'nt work. i did this too
Quote: "
Instead of using an active entity I used a Trigger Zone and placed it into the Main AI of the trigger zone. It worked for me. This sound will loop throughout the level until the sound is changed."


i even walked on the trigger zone....and Nothing!
it's because i'm using fpsc free RIGHT?!
Obevu
15
Years of Service
User Offline
Joined: 13th Dec 2009
Location:
Posted: 24th Dec 2009 14:33
I hope it's because i'm using fpsc free, if that's the case, then i'll buy the full version....
Obevu
15
Years of Service
User Offline
Joined: 13th Dec 2009
Location:
Posted: 25th Dec 2009 01:49
I want to see if it's fps free that is giving me problem. i don't want to put my credit card number to get fpsc full on trialpay. which one is it that doesn't require a credit number??? i hear someone on the forum said 'usually you register with credit card number' so i asume there are some that doesn't require one...but which one??
PW Productions
16
Years of Service
User Offline
Joined: 13th Mar 2009
Location: sitting in a chair.
Posted: 26th Dec 2009 06:25
:state=0,plrwithinzone=1:state=1,loopsound=$0
:state=1,plrwithinzone=0:state=0,stopsound

Put that as the trigger zone's main script, and make sure that the sound file in the trigger zone is the one you want... (see attached)

Cheers

PwP

Attachments

Login to view attachments
Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 28th Dec 2009 16:16
desc = Loop Sound When FPI Used
:state=0:state=1,loopsound=sound=$0

Put that into the main box of a trigger zone, and set the Sound0 box to the alarmhum.


THE ONLY WAY TO STAY OUT OF IGNORANCE IS TO KEEP ASKING

Login to post a reply

Server time is: 2025-05-27 23:15:58
Your offset time is: 2025-05-27 23:15:58