Old Config Needs Some First Aid

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
User avatar
BTT
Administrator
Posts: 2228
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Old Config Needs Some First Aid

Post by BTT »

Hello All

I have found another old config (FlowField) that I remember from the past and, I would like to include this in the current version of G-Force.
The trouble is when G-Force attempts to load the config I get something along the lines of:- Error..... A0?.

Code: Select all

//Multi Monitor Display - Author Unknown

A0="1000 +flor( sqr( 48 )48 )",

Aspc=1,

srcX="x + 0.0025 * sqrt( sin( x * a0 )+.983456789 )",
srcY="y + 0.0025 * sqrt( sin( y * a0 )+.983456789)",

Vers=100
Would appreciate any help.


Regards BTT

sitsparky
Posts: 70
Joined: Wed Oct 29, 2008 3:07 pm
Location: New York, NY

Post by sitsparky »

Hey BTT. You, jerohm, and others are much better at config writing than I, but I thought I'd chime in anyway. Could you maybe try "floor" rather than "flor". Our config programming page lists "flor" as deprecated, and maybe this is what's causing the error with the A0 variable.

http://www.soundspectrum.com/g-force/Do ... mming.html

Just a thought from a different kind of developer (ie. web).

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Post by JayPro »

Y'all Prolly Know THis Already But...

A0 variables usually require require a randomization parameter (rnd function). This is not necessarily imperative, however.
In this case, you do need an operator of some kind after the second 48:
A0="1000 +flor( sqr( 48 ) + 48 )",

You can also write:
A0="1000+flor(rnd(48) + 48),
and
A0="1000+sqr(rnd(48) = 48)

@Sparky;
The deprecated functions like flor() and clip() ensure backwards compatibility, i.e. so that the GF 4.x> app can read configs from every prior version since the app's initial public release.
I chose GF 4 as my example since this is when they started introducing new components like Meta ratings, Vector-C based functionality and other things.
"God is syntax."

User avatar
BTT
Administrator
Posts: 2228
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Hello Sitsparky

Paul, you have given me more credit than I deserve. I am not a config writer of WaveShapes or FlowFields. My contribution to G-Force is by way of creating ColorMaps. Many thanks for your help and suggestion.


Hello JayPro

Yourself and Jerohm as authors of both WaveShapes and FlowFields deserve the credit. The following code has solved the problem with Multi Monitor Display:-

A0="1000 +flor( sqr( 48 ) + 48 )",

Thank you, much appreciated.


Regards BTT

sitsparky
Posts: 70
Joined: Wed Oct 29, 2008 3:07 pm
Location: New York, NY

Post by sitsparky »

JayPro wrote:@Sparky;
The deprecated functions like flor() and clip() ensure backwards compatibility, i.e. so that the GF 4.x> app can read configs from every prior version since the app's initial public release.
I chose GF 4 as my example since this is when they started introducing new components like Meta ratings, Vector-C based functionality and other things.
Good to know. Thanks for the clarification. Though I do a lot of QA and support for SoundSpectrum products, my main duties are marketing and sales. I can "read" config files (for the most part), though I've never dared modifying or creating anew. I'll leave that to you more-than-able folks. :D

Post Reply