Axem
Just Another FREDder
Moderator
2 10
Offline
Posts: 1,147
or Frakker...
|
 |
« on: September 13, 2005, 09:58:37 pm » |
|
Sigh...
I'm trying to time events exactly to something, however FRED will only let me set delays or chains to whole numbers. I've tried inputting it as a decimal number (47.5), as a fraction using the divide operator (95/2), even going into notepad and working behind FRED's back, but alas none of it works.
Anyone have any ideas how to get around this?
|
|
|
|
|
Logged
|
[21:50] <redsniper> but yeah, child abuse is only entertaining to a point Just look at the crazy antics you miss out on at #hard-light on irc.esper.net! --
|
|
|
|
Nuclear1
|
 |
« Reply #1 on: September 13, 2005, 10:04:48 pm » |
|
The only time I've had fractions work for me is in send-message-list, but otherwise, I don't think there is a way around. Sorry bro.
|
|
|
|
|
Logged
|
Captain Zelnick - Don't do it, old warrior! You still have so much to live for!
Tanaka - Like what? My race is dead. My world is an airless rock. And I've seen all of my FunRoms at least a hundred times. My life is over. I have already picked out a nice asteroid to smash into, so, if you don't mind, I'll just go and kill myself. Unless, you want to annihilate me yourself? <Erik> i liked inferno because it had big ships <Erik> 8D <Erik> i was like WOOHOO BIG SHIPS <Erik> ...and then i realised they were stupid
|
|
|
|
karajorma
|
 |
« Reply #2 on: September 14, 2005, 05:45:15 am » |
|
SEXPs are built to work on intergers. I don't think there's much of a way round this.
|
|
|
|
|
Logged
|
|
|
|
Trivial Psychic
2 11
Offline
Posts: 3,558
Snoop Junkie
|
 |
« Reply #3 on: September 14, 2005, 09:08:45 am » |
|
Would it be possible to use variables for these figures? Then you could calculate the decimal figure you want and store its value in a variable, and use that. Is that possible?
|
|
|
|
|
Logged
|
The Trivial Psychic Strikes Again!
|
|
|
|
karajorma
|
 |
« Reply #4 on: September 14, 2005, 10:15:31 am » |
|
AFAIK variables also use integers. You can try it but I doubt you'll have much success.
Even if you could get an integer into a variable though FS2 would simply cast it to an integer as soon as it's used in a SEXP anyway and you've be back to square one.
|
|
|
|
|
Logged
|
|
|
|
|
ShadowWolf_IH
|
 |
« Reply #5 on: September 14, 2005, 10:31:31 am » |
|
there was once a discussion in the scp about changing the entire system over to ms instead of seconds......but if that happens...so much for backward compatability.
|
|
|
|
|
Logged
|
Extraordinary people do extraordinary things, normal people stay home and do nothing. Casualties of War
|
|
|
Kie99
2 10
Online
Posts: 2,030
|
 |
« Reply #6 on: September 14, 2005, 01:23:39 pm » |
|
Couldn't there be some extra sexps, for example, has-time-elapsed and has-time-elapsed-ms?
|
|
|
|
|
Logged
|
"You shot me in the Bollocks Tim" "Like I said, No hard feelings"
|
|
|
|
Goober5000
|
 |
« Reply #7 on: September 14, 2005, 04:38:53 pm » |
|
The entire sexp system is based around integers. Period. You can't use decimal numbers without rewriting part or all of the sexp system.
|
|
|
|
|
Logged
|
Fortunes of War | Ross 128 | Deus Ex Machina | Terran-Vasudan War Project | FreeSpace Port | Silent Threat: Reborn | Scroll of AtankharzimReport SCP bugs with Mantis"How I wish you could put things like that on your CV though. 'Accidentally fooled Computer Press into thinking Freespace 3 was going to be on the XBox.' That's very nearly a 'Goob wins the Internet' moment, at the very least a high end-of-level boss." -- Flipside "I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -- Taylor
|
|
|
Sesquipedalian
Atankharz'ythi
2 10
Offline
Posts: 1,870
|
 |
« Reply #8 on: September 14, 2005, 04:54:03 pm » |
|
I suspect that a situation that requires such precise timing is likely to break once the player gets in there and starts mucking around anyway.
|
|
|
|
|
Logged
|
Sesqu... Sesqui... what?Sesquipedalian, the best word in the English language.
|
|
|
Axem
Just Another FREDder
Moderator
2 10
Offline
Posts: 1,147
or Frakker...
|
 |
« Reply #9 on: September 14, 2005, 08:00:27 pm » |
|
What I was thinking to trick by finding something that takes half a second to do (or some fraction of a second), and then use the event delay so it fires off at a whole number of seconds later. I would just need to find something that takes a half second to do, or is almost everything based on whole seconds?
I should add this is for a cutscene, not a player controlled enviroment, so what the player does, doesn't matter.
|
|
|
|
« Last Edit: September 14, 2005, 08:02:49 pm by 1840 »
|
Logged
|
[21:50] <redsniper> but yeah, child abuse is only entertaining to a point Just look at the crazy antics you miss out on at #hard-light on irc.esper.net! --
|
|
|
|
karajorma
|
 |
« Reply #10 on: September 15, 2005, 02:35:11 am » |
|
Do this then. Create a ticker timer with an event like this
Timer - Provides half seconds When -is-event-true-delay --Some event half a second before what you want. -modify-variable --TickerTimer(0) -- + ---TickerTimer(0) ---1
Give it 30 repeats and a delay of 0
Then simply used this
Trigger Event When - = --TickerTimer(0) --30
Problem with this is that the speed at which TickerTimer is incremented depends on the player's PC. A fast PC seems to update quicker than a slow one. But if you keep the numbers low enough you might manage to get it to work. Make sure you test on a variety of high end and low end PCs just to be sure.
|
|
|
|
|
Logged
|
|
|
|
Axem
Just Another FREDder
Moderator
2 10
Offline
Posts: 1,147
or Frakker...
|
 |
« Reply #11 on: September 16, 2005, 09:54:49 pm » |
|
Yay, I got it to work another way. I used Physics to trick FRED. An Amazon Advanced Drone at full speed (50m/s) will cover 25m in 0.5s. Using the distance operation and a no warp effect option, the Amazon arrives at the instance I need it, at full speed, and produces the delay needed.
Now syncing to the music will be a breeze!
|
|
|
|
|
Logged
|
[21:50] <redsniper> but yeah, child abuse is only entertaining to a point Just look at the crazy antics you miss out on at #hard-light on irc.esper.net! --
|
|
|
phreak
Gun Phreak
2 11
Offline
Posts: 3,918
-1
|
 |
« Reply #12 on: September 16, 2005, 09:59:33 pm » |
|
math 4tw
|
|
|
|
|
Logged
|
|
|
|
CP5670
Dr. Evil
Global Moderator
2 12
Offline
Posts: 4,716
142857
|
 |
« Reply #13 on: September 17, 2005, 12:10:06 am » |
|
indeed  Make sure you put the drone somewhere really far away and make it cloaked, so the player doesn't notice.
|
|
|
|
|
Logged
|
|
|
|
Mongoose
Rikki-Tikki-Tavi
2 11
Offline
Posts: 3,021
|
 |
« Reply #14 on: September 17, 2005, 08:01:45 pm » |
|
The ingenuity of FREDers never ceases to amaze me 
|
|
|
|
|
Logged
|
Prepare for Descent...
|
|
|
|
Nuclear1
|
 |
« Reply #15 on: September 17, 2005, 09:47:59 pm » |
|
Originally posted by Mongoose The ingenuity of FREDers never ceases to amaze me You gotta give us some credit. Sitting around all that math-related work does something to you... 
|
|
|
|
|
Logged
|
Captain Zelnick - Don't do it, old warrior! You still have so much to live for!
Tanaka - Like what? My race is dead. My world is an airless rock. And I've seen all of my FunRoms at least a hundred times. My life is over. I have already picked out a nice asteroid to smash into, so, if you don't mind, I'll just go and kill myself. Unless, you want to annihilate me yourself? <Erik> i liked inferno because it had big ships <Erik> 8D <Erik> i was like WOOHOO BIG SHIPS <Erik> ...and then i realised they were stupid
|
|
|
|
karajorma
|
 |
« Reply #16 on: September 18, 2005, 02:51:31 am » |
|
Originally posted by Axem Yay, I got it to work another way. I used Physics to trick FRED. An Amazon Advanced Drone at full speed (50m/s) will cover 25m in 0.5s. Using the distance operation and a no warp effect option, the Amazon arrives at the instance I need it, at full speed, and produces the delay needed.
Now syncing to the music will be a breeze! That's going right into the cookbook. Far better than my solution. 
|
|
|
|
|
Logged
|
|
|
|
CP5670
Dr. Evil
Global Moderator
2 12
Offline
Posts: 4,716
142857
|
 |
« Reply #17 on: September 18, 2005, 03:08:29 am » |
|
Speaking of things like this, anyone remember that old FRED2 tips and tricks thread on the VBB? There was some very useful stuff in there; does anyone still have a copy of it?
|
|
|
|
|
Logged
|
|
|
|
|
karajorma
|
 |
« Reply #18 on: September 18, 2005, 03:54:10 am » |
|
Yep. I'll have to see about putting it up if no one else steps forward. I know that sandwich did have it up at one point but the link is dead now.
|
|
|
|
|
Logged
|
|
|
|
|