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 / Weird Timing issues in FPSC

Author
Message
Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 2nd Jun 2006 23:44 Edited at: 3rd Jun 2006 06:29
So I've started writing some of my own FPI scripts to accomplish things like making lifts that operate after a switch is pressed and secret doors that slide open and then close after a few seconds have gone by.

One thing I've noticed with any script I've written that uses the "move" commands on entities is that the closer I am to the entity when the script is being activated the faster the entity will move. If I'm observing it from a distance then it will move very slowly in comparison.

This leads me to believe that the FPSC Engine processes entities that are closer to the player faster than it does those that are further away and if this is the case then it's going to lead to some problems and I suppose I'll have to edit the engine source.

I just wanted to know if anyone else has experienced similar issues or has studied the engine some and can tell me if this behavior is true or not.

Thanks!

EDIT:
After some more testing and studying of the FPSC Engine source I figured out why this was going on. It's an optimization feature of the engine so that entities which aren't flagged as being important enough to update on a regular basis will not be updated as often unless they are within a certain range of the player.

This is probably already known to many but for those who did not know about it if you check the "always active" flag on an entity then it will ignore this optimization feature and always update regardless of how far away the player is. The map editor actually tells you this if you look at that particular property but I misunderstood what it meant until now.

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 3rd Jun 2006 00:40
Yes it is true... so your a DBP'r huh? Are you good?

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 3rd Jun 2006 00:48
@Merranvo
I would say I'm more of a DBP watcher than active coder. I feel like i'm starting to get back into it again though. FPS Creator has helped re-energize me in that sense and one of the primary reasons I purchased it was because the DBP source code is available.

I will certainly dive into editing the engine in the long run but before I get there I'd like to familiarize myself with it some more. Learn about all these little nuances...

I suppose to fix this problem I'll edit the FPI script i'm using to only move the entity when the player is within a certain range so that I'll be able to get more consistent results. Hopefully in the long run I won't have to use this little work-around.

Login to post a reply

Server time is: 2024-11-22 15:11:06
Your offset time is: 2024-11-22 15:11:06