Issue with Flowfields in Scripts

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
cursereversed81
Posts: 1
Joined: Tue Mar 03, 2009 10:01 pm

Issue with Flowfields in Scripts

Post by cursereversed81 »

Hi, I'm a little new to scripting, but I've generally got the hang of it. However, I have run into an issue with getting flowfields to start. My script (for Sky by DJ Manian) has 6 different flowfields in it, but I have only gotten the script to switch the flowfield successfully three times (to GreatMinds, DaveF-Evacuate, and Twisted Tiles). The lines of code that switch and prepare g force to switch the flowfield is identical in all situations, and I'm sure I've typed everything correctly. This is my code, could anyone help me figure out my mistake? The bolded sections are the ones that I am having trouble with.


0:00

SetSlideShow( CONFIG_WAVESHAPE | CONFIG_COLORMAP | CONFIG_FLOWFIELD | CONFIG_SPRITE | CONFIG_PARTICLE, false );

SetFlowField( "Rovastar - Mosaic History (Aztec Mix)" );
SetWaveShape( "Inner Spikes", 0 );
SetColorMap( "BK - Ibiza Lounge Chair", 0 );
StartSprite( "Moon", 0 );
StartParticle( "DT - Galaxy", .5 );
SetNextFlowField( "Great Minds", "", 30, false, 0.5 );

0:09.5

StartParticle( "Attack" );
KillSprites( "Moon", 0)

0:17.4

SetWaveShape( "Wind Mill", 0 );
SetColorMap( "Color Chemistry (BT20)", 1 );
StartParticle( "Qvark", 0 );
KillParticles ( "Attack", 6 );

0:29.8

KillParticles( "Qvark", .5 );
KillParticles( "DT - Galaxy", .5 );
SetFlowField( "Great Minds", .4 );
SetWaveShape( "Corona", 0 );
SetColorMap( "A Distant Fire", 1 );
StartParticle( "Spiral", 0 );
StartParticle( "Pulsing Oval", .5 );
StartParticle( "Splutterbug", .5 );
StartSprite( "Staturn", 0)
SetNextFlowField( "JBS - Bizzare Star", "", 41.6, false, 0.5 );

0:43.5

SetColorMap( "(RG) Ulysses Gold", 3);
KillParticles( "Spiral", 6 );
KillParticles( "Pulsing Oval", 6 );

0:57.5

SetColorMap( "Variant", 5);

1:11.6

KillParticles( "Splutterbug", .5 );
SetFlowField( "JBS - Bizzare Star", 0 );
SetWaveShape( "Flower Power - Spinner", 0 );
SetColorMap( "Yellow Border", 1 );
StartParticle( "Sparkling Table Water", 0 );
SetNextFlowField( "DaveF-Evacuate", "", 28.2, false, 0.5 );

1:25.5

SetColorMap( "Slightly Sour", 5);
SetWaveShape( "Flower Power - Erie Atom", 0 );

1:39.8

SetFlowField( "DaveF-Evacuate", .1 );
KillParticles( "Sparkling Table Water", 1 );
KillSprites( "Saturn", 1)
SetWaveShape( "edgy circle", 0 );
SetColorMap( "cold fire", 2 );
StartParticle( "Solala", 0 );
StartSprite( "Galaxy", 0 );
SetNextFlowField( "ONE", "", 32.4, false, 0.5 );

1:54.8

SetColorMap( "Blue Lightning", .5 );

2:11.8

KillSprites( "Galaxy", 2 );
KillParticles( "Solala", 1 );
KillParticles( "Airport", 1 );

2:12.2

SetFlowField( "ONE", 0 );
StartParticle( "flower magnum", 0);
SetWaveShape( "Uber Disco Lights (Dual)", 0 );
SetColorMap( "Room With a Vista", 1 );
StartParticle( "moon and sun", 0 );
StartSprite( "Big Moon", 0 );
SetNextFlowField( "Twisted Tiles", "", 27.2, false, 0.5 );

2:25.9

SetColorMap( "Caribe", 0.25 );

2:39.3

KillParticles( "moon and sun", 0 );
KillSprites( "Big Moon", 0 );
KillParticles( "flower magnum", 0);
SetFlowField( "Twisted Tiles", 0 );
SetWaveShape( "Sci-Fi Expander", 0 );
SetColorMap( "Old Glory", 1 );
StartParticle( "Simon Says", 0 );
StartParticle( "Sine", 0 );
StartSprite( "Moon Surface", 0 );

2:53.5

SetColorMap( "EDP - H30", 1 );




Thanks!

User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Post by chkman »

1st off I don't think it likes a SetFlowField at the same time as SetNextFlowField. I moved the set next to one second after and Rovastar - Mosaic History (Aztec Mix)" started to work.
2nd, you're putting a set flow of the same flow when a set next is scheduled to occur. This is unnessesary. The set next will cause the flowfield to change. I shortened up the delay on your set next for DaveF-Evacuate and ONE started to work. To keep your original timing it would be better to move ONE a second later.
Now, for JBS - Bizzare Star it's actually JBS1 but that didn't work. I tried another flow and it doesn't work either. I don't know what's up with that one.

Here's what I have:

0:00

SetSlideShow( CONFIG_WAVESHAPE | CONFIG_COLORMAP | CONFIG_FLOWFIELD | CONFIG_SPRITE | CONFIG_PARTICLE, false );

SetFlowField( "Rovastar - Mosaic History (Aztec Mix)" );
SetWaveShape( "Inner Spikes", 0 );
SetColorMap( "BK - Ibiza Lounge Chair", 0 );
StartSprite( "Moon", 0 );
StartParticle( "DT - Galaxy", .5 );
0:01
SetNextFlowField( "Great Minds", "", 27, false, 0.5 );

0:09.5

StartParticle( "Attack" );
KillSprites( "Moon", 0)

0:17.4

SetWaveShape( "Wind Mill", 0 );
SetColorMap( "Color Chemistry (BT20)", 1 );
StartParticle( "Qvark", 0 );
KillParticles ( "Attack", 6 );

0:29.8

KillParticles( "Qvark", .5 );
KillParticles( "DT - Galaxy", .5 );
SetWaveShape( "Corona", 0 );
SetColorMap( "A Distant Fire", 1 );
StartParticle( "Spiral", 0 );
StartParticle( "Pulsing Oval", .5 );
StartParticle( "Splutterbug", .5 );
StartSprite( "Staturn", 0)
SetNextFlowField( "HAL - Dynamic", "", 30, false, 0.5);

0:43.5

SetColorMap( "(RG) Ulysses Gold", 3);
KillParticles( "Spiral", 6 );
KillParticles( "Pulsing Oval", 6 );

0:57.5

SetColorMap( "Variant", 5);

1:11.6

KillParticles( "Splutterbug", .5 );
SetWaveShape( "Flower Power - Spinner", 0 );
SetColorMap( "Yellow Border", 1 );
StartParticle( "Sparkling Table Water", 0 );
SetNextFlowField( "DaveF-Evacuate", "", 27, false, 0.5 );

1:25.5

SetColorMap( "Slightly Sour", 5);
SetWaveShape( "Flower Power - Erie Atom", 0 );

1:39.8

KillParticles( "Sparkling Table Water", 1 );
KillSprites( "Saturn", 1)
SetWaveShape( "edgy circle", 0 );
SetColorMap( "cold fire", 2 );
StartParticle( "Solala", 0 );
StartSprite( "Galaxy", 0 );
SetNextFlowField( "ONE", "", 30, false, 0.5 );

1:54.8

SetColorMap( "Blue Lightning", .5 );

2:11.8

KillSprites( "Galaxy", 2 );
KillParticles( "Solala", 1 );
KillParticles( "Airport", 1 );

2:12.2

StartParticle( "flower magnum", 0);
SetWaveShape( "Uber Disco Lights (Dual)", 0 );
SetColorMap( "Room With a Vista", 1 );
StartParticle( "moon and sun", 0 );
StartSprite( "Big Moon", 0 );
SetNextFlowField( "Twisted Tiles", "", 27.2, false, 0.5 );

2:25.9

SetColorMap( "Caribe", 0.25 );

2:39.3

KillParticles( "moon and sun", 0 );
KillSprites( "Big Moon", 0 );
KillParticles( "flower magnum", 0);
SetWaveShape( "Sci-Fi Expander", 0 );
SetColorMap( "Old Glory", 1 );
StartParticle( "Simon Says", 0 );
StartParticle( "Sine", 0 );
StartSprite( "Moon Surface", 0 );

2:53.5

SetColorMap( "EDP - H30", 1 );

Post Reply