Topic: on_timeout 1 YEAR!

I just found out how many seconds are in a year. So I scripted this:


object "birthday counter"
{
        state "main"
      {
        on_timeout 31556926.0 "up one year"
      }
        state "up one year"
      {
        play_sample "samples/happybirthday.wav"
        destroy
      }
}

If I kept opensurge.exe running for a year, would this actually work?

Re: on_timeout 1 YEAR!

We'll have to ask Alex, I think that the variable type for this is actually long enough, but it's possible it is not based on data typing.

If I knew then what I know now I'd tell you that the story's true.  Cause whatever you do, it comes back to you.  -Slaughter, Burning Bridges

Re: on_timeout 1 YEAR!

i think it would, but why would you do that?

https://image.ibb.co/kuSYrm/SD_sml.pnghttps://image.ibb.co/kHq8P6/SeD_sml.pnghttps://image.ibb.co/cJf8P6/LTot_W_sml.png

Re: on_timeout 1 YEAR!

I wouldn't. I was just wondering.

Re: on_timeout 1 YEAR!

How do you know for sure that 31556926 is realy a year?
there is always somthing like lead second big_smile

it probably works, but it will not be very precise it think.

http://ssdw.nl/forum/getforumpic.php

Re: on_timeout 1 YEAR!

The object doesn't really exist. I just posted it for a joke.

Re: on_timeout 1 YEAR!

S32X wrote:

The object doesn't really exist. I just posted it for a joke.

You mean you start OpenSurge without to put the object in it?
Yeah than it won't work big_smile

Last edited by ssdw (2012-05-19 07:55:39)

http://ssdw.nl/forum/getforumpic.php

Re: on_timeout 1 YEAR!

Why would one use this anyways? big_smile I would prolly get mad at the ever repeating music long before that. smile

Re: on_timeout 1 YEAR!

It was just a joke. hmm