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 / How many states fpi accept?

Author
Message
Viriatos
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 24th Jul 2009 00:06 Edited at: 24th Jul 2009 00:57
Hello!
I would like to know if fpi have a limited number of states.

I had a script working fine, but when I added two more huds - meaning some more code/states - the last lines of code stopped working.

Here is my code -> I know it's a little bit to big, but it's not a difficult deal! It's just Huds+Huds+Huds!





This is the part where it's stops.




Sintra, The Underground Empire [WIP] - http://forum.thegamecreators.com/?m=forum_view&t=153787&b=25
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 24th Jul 2009 01:17
I'm not exactly sure what you're doing here but are you sure it doesn't stop here?

Quote: ":state=60,plrusingaction=0:state=24"


I can't find a state=24.

Brian.

Lizzie Borden took an axe and gave her mother forty whacks.

fpsFREE - Contact Me
Viriatos
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 24th Jul 2009 01:32
Quote: "I'm not exactly sure what you're doing here but are you sure it doesn't stop here?"


Upss! Forgot to change that! That was me testing some stuff. I tried to change the script one thousand times, to understand what was going on...

But that's no that! It's stops after showing "Goblin10's Hud"
I even changed the state numbers and their position... nothing seems to work, because the code suddely stops!
Nothing happens after I press enter... as I said before, the code was running fine, but I added two more huds - some more states - and then stopped...

Sintra, The Underground Empire [WIP] - http://forum.thegamecreators.com/?m=forum_view&t=153787&b=25
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 24th Jul 2009 04:06
It could be that you went over the line limit for FPSC. I believe you can only have 100 or 150 lines in a script.

Viriatos
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 24th Jul 2009 04:08
Woow! I found the bug! I had more than 150 lines of code! it's fixed... just deleted some spaces between lines of code that I had.

4 hours to discover that FPSC just accept 150 lines...



Sintra, The Underground Empire [WIP] - http://forum.thegamecreators.com/?m=forum_view&t=153787&b=25
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 24th Jul 2009 05:32
Your welcome.

Viriatos
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 25th Jul 2009 00:38
That's funny! I just read your post now! But you would solve my problem if I was stuck!
Thanks!

Sintra, The Underground Empire [WIP] - http://forum.thegamecreators.com/?m=forum_view&t=153787&b=25
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 25th Jul 2009 02:33
No problem.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 25th Jul 2009 07:31
You can have up to 300 lines of script in Ply's Mod/Project Blue. Just an FYI in case you were interested in having larger scripts


The one and only,


Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 25th Jul 2009 19:15
Quote: "You can have up to 300 lines of script in Ply's Mod/Project Blue. Just an FYI in case you were interested in having larger scripts "

Good to know.

Hey Plystire, since you have an extensive knowledge of the stock engine's code...

What is the limit on the state numbers?

Not the line number but the state numbers themselves.

I know from his script it can exceed 100 so is it capped at 999 or what?

And while I'm asking, what is the number limit on activated states in the stock code?

I only ask because I thought you may know off the top of your head, which would save me the hunt through 20,000 lines of code for the answer.

I always thought the cap was double digits being 99, so now I am wondering since he has states over 100.

Login to post a reply

Server time is: 2024-11-25 05:38:53
Your offset time is: 2024-11-25 05:38:53