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 / Does "runfpi=" still work?

Author
Message
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 20th Jul 2011 21:28
I'm finding that when I use this command, it doesn't work, the character just stands there doing nothing. If it does still work, does the "state=" value carry over?

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 20th Jul 2011 22:13
It still works. I just used it in a script. The thing is, if a character is running it's shoot AND main script at the same time and changes scripts with runfpi=, FPSC goes crazy and the character try to do everything at once. Usually will just stand there.


Cheers.

God help me, Please.
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 21st Jul 2011 00:53
Okay, so if it doesn't have a shoot script in it's properties, and the main script has the "runfpi=" in it, would it try to do both at once? That's what it seems to be doing.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 21st Jul 2011 01:01
If the main script has the command "shootplr" it will try to run a shoot script. Putting nothing there may work, but I usually just don't let it get there.


Cheers.

God help me, Please.
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 21st Jul 2011 04:41
What I mean is that there's nothing in the shoot box in the character's properties and in the main script, there is the "runfpi=" command to run another script, but nothing happens when it is called. The character just freezes. I've tried putting the script that I've been trying to call in the the shoot box of the properties and used "shootplr" in the main script, but the same thing occurs. Any idea why that would be? The script I'm trying to call works by itself, so I'm wondering if it was "state=100" in the main script, the script that is being called has to have "state=100" in it to have an effect.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Jul 2011 07:52
Can you post or send us the scripts? Maybe we could test it for you?

Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 21st Jul 2011 22:35
Funny thing is that I just lost it because my HDD decided to only allocate 100GB of the 1TB that I had, so when I tried to save it, it already said that I was over 100GB. Then, I tried to allocate the unallocated 850GB+ to the C Partition, and my whole computer crashed, because it then set the C Drive as an active partition. So, now it doesn't matter. I did end up merging the scripts, and it worked perfectly, but that's lost too. I'll get it to you guys when I have re-created it.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 21st Jul 2011 23:17
runfpi most certainly works. Just saved my project from a complete redesign.

Did you know that there's a limit to the number of states you can have in an individual script (in x10 anyway)? I sure didn't!
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 21st Jul 2011 23:37
Well, I wasn't using a "state=" command in that line if that's what you were implying. But no, I didn't know that. Good info, thanks!

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 21st Jul 2011 23:45
If you want runfpi to work, and end the current script, you must change the state to a non-existing one and make sure the script doesn't call on the Shoot Parameter.


Cheers.

God help me, Please.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 21st Jul 2011 23:53
The action "runfpi=" does work. What I do is this:

Main Script:


By using the format like that, my main script will terminate at state 300. since I use the "runfpi=" action without a shoot script, I have just been in the habit of terminating the main script just in case. Be aware that it does look for the script in the default "scriptbank" folder. If you have the script to be called in a subfolder, you will need to specify the folder path with the script name.

- BlackFox
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 22nd Jul 2011 03:31
OH! I didn't know that you had to disable the original script. Wow, thank you all for being so patient. I really appreciate you helping me out. I'll post the script in case anyone wants it when it's done.

Thanks,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |

Login to post a reply

Server time is: 2024-11-24 06:21:40
Your offset time is: 2024-11-24 06:21:40