Archive: Superscope won't initialize


17th May 2007 17:42 UTC

Superscope won't initialize
Hi all! I'm having a little bit of trouble with AVS. It's a simple problem, really (at least that's what I hope ;)), but I can't seem to find anything about it in the FAQs or by searching.

I have a problem where I have a preset with two superscopes. The first one initializes fine and does what it's supposed to do. However, the second one (which uses two global vars - reg00 and reg01 - from the first preset) doesn't initialize until I edit something in it. The code seems to be okay, because after I initialize it manually by deleting and retyping an ";", it works fine.

I tried all kinds of stuff to solve this problem, like changing the order of the superscopes, adding virtually every used variable to the 'init' sections of the superscopes, restarting WinAmp, but nothing seems to work.

I attached the preset (with comments in the AVS editor) if you want to take a look yourself.

Any help is appreciated. :)


17th May 2007 17:51 UTC

Ow, and I forgot to add. If you're checking out the preset, please know that it relies on beat detection for most of the movement. So make sure to have some music playing. ;)

Also, when you duplicate the second superscope, the copied version does initalize. Try duplicating it ten times to see the effect that I was aiming for in the first place. :)


29th May 2007 17:27 UTC

Sorry for bumping, but.. anyone? :)


30th May 2007 13:35 UTC

the problem:

dist=sqrt(sqr(x_dist)+sqr(y_dist));

fixed:
dist=sqrt(sqr(x_dist)+sqr(y_dist)+c);


you should add a value inside the function "sqr". i don't know why, but it works :)

30th May 2007 17:48 UTC

Whee!
Thanks a million! You're the best. :)


3rd June 2007 00:40 UTC

sup
I noticed your preset.
I'm currently working on a remix for you to congratulate the success!

congrats on the successful help.


3rd June 2007 12:20 UTC

i have to admit - one of the people here is certainly a little weird...


7th June 2007 00:48 UTC

haha very funny GC.
Well anywho i did deserve that.
Heh. I look for your remix on Nudges V10 soon.


7th June 2007 20:26 UTC

Thanks Nanaki, I'll try and check back here every now and then. :)


12th June 2007 13:49 UTC

*crap removed*