Need help with unwanted endless loop (Offline-Tease for GuideMe)

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
LoneSnare
Curious Newbie
Curious Newbie
Posts: 1
Joined: Mon Dec 14, 2015 5:31 pm
Gender: Male
Sexual Orientation: Straight

Need help with unwanted endless loop (Offline-Tease for GuideMe)

Post by LoneSnare »

At first: Hi and thanks for taking a look here.

So, I'm doing this Offline-tease for my own purpose now and out of a sudden it loops where it shouldn't.
My plan was to make an random tease which is neither too hard/long nor too easy/short.
And what is probably my doom in this case is that i like things quite complicated- using lots of flags and that kind of stuff...
My concsept of this Tease was to have three sets with each 4 pages getting introduced (as Set1 to 3) and shown in an random way.
But now it loops between these three sets but GuideMe ignores the flags and loops between them each as Set1 (instead Set1, Set2 Set3).
I hope that covers everything so far, but you might have to see it to completely understand what i mean.
Here is that part what troubles me so much:
Spoiler: show

Code: Select all

<?xml version="1.0"?>
<Tease scriptVersion="v0.1" id="3604">
  <Title>Short One</Title>
  <Author id="">
    <Name>LoneSnare</Name>
  </Author>
  <MediaDirectory>Shortone</MediaDirectory>
  <Settings>
    <AutoSetPageWhenSeen>false</AutoSetPageWhenSeen>
  </Settings>
  <Pages>
<Page id="start">
      <Text>
<p>Get Hard.</p>
<p>If You aren't allready...</p>
      </Text>
      <Image id="00.*" />
      <Button target="(1..9)" >Hard</Button>
    </Page>

<Page id="1" if-not-set="11set/12set/13set">
      <Text>
<p>First Set</p>
<p>Stroke at slow Pace.</p>
      </Text>
      <Image id="set1.*" />
      <Delay seconds="10" target="(111..112)" style="secret" />
    </Page>
<Page id="2" if-not-set="11set/12set/13set">
      <Text>
<p>First Set</p>
<p>Stroke at medium Pace.</p>
      </Text>
      <Image id="set1.*" />
      <Delay seconds="14" target="(211..212)" style="secret" />
    </Page>
<Page id="3" if-not-set="11set/12set/13set">
      <Text>
<p>First Set</p>
<p>Stroke at fast Pace.</p>
      </Text>
      <Image id="set1.*"  />
      <Delay seconds="20" target="(311..312)" style="secret" />
    </Page>
<Page id="4" if-not-set="21set/22set/23set" if-set="11set/12set/13set">
      <Text>
<p>Second Set</p>
<p>Stroke at slow Pace.</p>
      </Text>
      <Image id="set2.*" />
      <Delay seconds="10" target="(111..112)" style="secret" />
    </Page>
<Page id="5" if-not-set="21set/22set/23set" if-set="11set/12set/13set">
      <Text>
<p>Second Set</p>
<p>Stroke at medium Pace.</p>
      </Text>
      <Image id="set2.*" />
      <Delay seconds="14" target="(211..212)" style="secret" />
    </Page>
<Page id="6" if-not-set="21set/22set/23set" if-set="11set/12set/13set">
      <Text>
<p>Second Set</p>
<p>Stroke at fast Pace.</p>
      </Text>
      <Image id="set2.*"  />
      <Delay seconds="20" target="(311..312)" style="secret" />
    </Page>
<Page id="7" if-not-set="31set/32set/33set" if-set="21set/22set/23set">
      <Text>
<p>Third Set</p>
<p>Stroke at slow Pace.</p>
      </Text>
      <Image id="set3.*" />
      <Delay seconds="10" target="(111..112)" style="secret" />
    </Page>
<Page id="8" if-not-set="31set/32set/33set" if-set="21set/22set/23set">
      <Text>
<p>Third Set</p>
<p>Stroke at medium Pace.</p>
      </Text>
      <Image id="set3.*" />
      <Delay seconds="14" target="(211..212)" style="secret" />
    </Page>
<Page id="9" if-not-set="31set/32set/33set" if-set="21set/22set/23set">
      <Text>
<p>Third Set</p>
<p>Stroke at fast Pace.</p>
      </Text>
      <Image id="set3.*"  />
      <Delay seconds="20" target="(311..312)" style="secret" />
    </Page>

<Page id="111">
   <Metronome bpm="35" />
      <Image id="Stroke35.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(40..60)" target="(121..122)" style="open" />
    </Page>
<Page id="112">
   <Metronome bpm="20" />
      <Image id="Stroke20.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(70..80)" target="(121..122)" style="open" />
    </Page>
<Page id="121">
   <Metronome bpm="60" />
      <Image id="stroke60.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(40..60)" target="(131..132)" style="open" />
    </Page>
<Page id="122">
   <Metronome bpm="60" />
      <Image id="stroke60.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(70..80)" target="(131..132)" style="open" />
    </Page>
<Page id="131">
   <Metronome bpm="45" />
      <Image id="Stroke45.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(40..60)" target="(141..142)" style="open" />
    </Page>
<Page id="132">
   <Metronome bpm="20" />
      <Image id="stroke20.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(70..80)" target="(141..142)" style="open" />
    </Page>
<Page id="141">
   <Metronome bpm="30" />
      <Image id="stroke30.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(70..80)" target="(2..3)" set="1,11set" if-not-set="11set/12set/13set" style="open" />
      <Delay seconds="(70..80)" target="(5..6)" set="2,21set" if-not-set="21set/22set/23set" if-set="11set/12set/13set" style="open" />
      <Delay seconds="(70..80)" target="(8..12)" set="3,31set" if-not-set="31set/32set/33set" if-set="21set/22set/23set" style="open" />
    </Page>
<Page id="142">
   <Metronome bpm="60" />
      <Image id="stroke60.*" />
      <Button target="stop(11..14)" >STOP</Button>
      <Delay seconds="(70..80)" target="(2..3)" set="1,11set" if-not-set="11set/12set/13set" style="open" />
      <Delay seconds="(70..80)" target="(5..6)" set="2,21set" if-not-set="21set/22set/23set" if-set="11set/12set/13set" style="open" />
      <Delay seconds="(70..80)" target="(8..12)" set="3,31set" if-not-set="31set/32set/33set" if-set="21set/22set/23set" style="open" />
    </Page>
<Page id="stop11" set="chance11" if-not-set="chance11">
      <Text>
<p>First one...</p>
<p>Take a small break...</p>
<p>Sadly for You, You'll have to do the whole set again...</p>
      </Text>
      <Image id="1count.*" />
      <Delay seconds="10" target="(111..112)" style="hidden" />
    </Page>
<Page id="stop12" set="chance12" if-not-set="chance12" if-set="chance11">
      <Text>
<p>Second one...</p>
<p>Need a bigger break?</p>
      </Text>
      <Image id="2count.*" />
      <Delay seconds="(10..15)" target="(111..112)" style="hidden" />
    </Page>
<Page id="stop13" set="chance13" if-not-set="chance13" if-set="chance12">
      <Text>
<p>Third one...</p>
<p>That's the last You'll get...</p>
      </Text>
      <Image id="3count.*" />
      <Delay seconds="(20..30)" target="(111..112)" style="hidden" />
    </Page>
<Page id="stop14" if-set="chance13">
      <Text>
<p>No more...</p>
<p>You'r not ready how it seems...</p>
<p>Come back tomorrow and we'll see to fix that...</p>
      </Text>
      <Image id="stop.*" />
    </Page>

<Page id="211">
   <Metronome bpm="60" />
      <Image id="Stroke60.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(40..60)" target="(221..222)" style="open" />
    </Page>
<Page id="212">
   <Metronome bpm="90" />
      <Image id="Stroke90.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(70..80)" target="(221..222)" style="open" />
    </Page>
<Page id="221">
   <Metronome bpm="100" />
      <Image id="Stroke100.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(70..80)" target="(231..232)" style="open" />
    </Page>
<Page id="222">
   <Metronome bpm="120" />
      <Image id="Stroke120.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(40..60)" target="(231..232)" style="open" />
    </Page>
<Page id="231">
   <Metronome bpm="80" />
      <Image id="Stroke80.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(70..80)" target="(241..242)" style="open" />
    </Page>
<Page id="232">
   <Metronome bpm="140" />
      <Image id="Stroke140.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(40..60)" target="(241..242)" style="open" />
    </Page>
<Page id="241">
   <Metronome bpm="60" />
      <Image id="Stroke60.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(70..80)" target="(1..3)" set="1,12set" if-not-set="11set/12set/13set" style="open" />
      <Delay seconds="(70..80)" target="(4..6)" set="2,22set" if-not-set="21set/22set/23set" if-set="11set/12set/13set" style="open" />
      <Delay seconds="(70..80)" target="(7..12)" set="3,32set" if-not-set="31set/32set/33set" if-set="21set/22set/23set" style="open" />
    </Page>
<Page id="242">
   <Metronome bpm="80" />
      <Image id="Stroke80.*" />
      <Button target="stop(21..24)" >STOP</Button>
      <Delay seconds="(40..60)" target="(1..3)" set="1,12set" if-not-set="11set/12set/13set" style="open" />
      <Delay seconds="(40..60)" target="(4..6)" set="2,22set" if-not-set="21set/22set/23set" if-set="11set/12set/13set" style="open" />
      <Delay seconds="(40..60)" target="(7..12)" set="3,32set" if-not-set="31set/32set/33set" if-set="21set/22set/23set" style="open" />
    </Page>
<Page id="stop21" set="chance21" if-not-set="chance21">
      <Text>
<p>First one...</p>
<p>Take a small break...</p>
<p>Sadly for You, You'll have to do the whole set again...</p>
      </Text>
      <Image id="1count.*" />
      <Delay seconds="10" target="(211..212)" style="hidden" />
    </Page>
<Page id="stop22" set="chance22" if-not-set="chance22" if-set="chance21">
      <Text>
<p>Second one...</p>
<p>Need a bigger break?</p>
      </Text>
      <Image id="2count.*" />
      <Delay seconds="(10..15)" target="(211..212)" style="hidden" />
    </Page>
<Page id="stop23" set="chance23" if-not-set="chance23" if-set="chance22">
      <Text>
<p>Third one...</p>
<p>That's the last You'll get...</p>
      </Text>
      <Image id="3count.*" />
      <Delay seconds="(20..30)" target="(211..212)" style="hidden" />
    </Page>
<Page id="stop24" if-set="chance23">
      <Text>
<p>No more...</p>
<p>You'r not ready how it seems...</p>
<p>Come back tomorrow and we'll see to fix that...</p>
      </Text>
      <Image id="stop.*" />
    </Page>

<Page id="311">
   <Metronome bpm="140" />
      <Image id="Stroke140.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="(50..60)" target="(321..322)" style="open" />
    </Page>
<Page id="312">
   <Metronome bpm="140" />
      <Image id="Stroke140.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="(40..50)" target="(321..322)" style="open" />
    </Page>
<Page id="321">
   <Metronome bpm="160" />
      <Image id="Stroke160.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="50" target="(331..332)" style="open" />
    </Page>
<Page id="322">
   <Metronome bpm="170" />
      <Image id="Stroke170.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="25" target="(331..332)" style="open" />
    </Page>
<Page id="331">
   <Metronome bpm="200" />
      <Image id="Stroke200.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="15" target="(341..342)" style="open" />
    </Page>
<Page id="332">
   <Metronome bpm="180" />
      <Image id="Stroke180.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="33" target="(341..342)" style="open" />
    </Page>
<Page id="341">
   <Metronome bpm="200" />
      <Image id="Stroke200.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="20" target="(1..2)" set="1,13set" if-not-set="11set/12set/13set" style="open" />
      <Delay seconds="20" target="(4..5)" set="2,23set" if-not-set="21set/22set/23set" if-set="11set/12set/13set" style="open" />
      <Delay seconds="20" target="(7..12)" set="3,33set" if-not-set="31set/32set/33set" if-set="21set/22set/23set" style="open" />
    </Page>
<Page id="342">
   <Metronome bpm="140" />
      <Image id="Stroke140.*" />
      <Button target="stop(31..34)" >STOP</Button>
      <Delay seconds="50" target="(1..2)" set="1,13set" if-not-set="11set/12set/13set" style="open" />
      <Delay seconds="50" target="(4..5)" set="2,23set" if-not-set="21set/22set/23set" if-set="11set/12set/13set" style="open" />
      <Delay seconds="50" target="(7..12)" set="3,33set" if-not-set="31set/32set/33set" if-set="21set/22set/23set" style="open" />
    </Page>
<Page id="stop31" set="chance31" if-not-set="chance31">
      <Text>
<p>First one...</p>
<p>Take a small break...</p>
<p>Sadly for You, You'll have to do the whole set again...</p>
      </Text>
      <Image id="1count.*" />
      <Delay seconds="10" target="(311..312)" style="hidden" />
    </Page>
<Page id="stop32" set="chance32" if-not-set="chance32" if-set="chance31">
      <Text>
<p>Second one...</p>
<p>Need a bigger break?</p>
      </Text>
      <Image id="2count.*" />
      <Delay seconds="(10..15)" target="(311..312)" style="hidden" />
    </Page>
<Page id="stop33" set="chance33" if-not-set="chance33" if-set="chance32">
      <Text>
<p>Third one...</p>
<p>That's the last You'll get...</p>
      </Text>
      <Image id="3count.*" />
      <Delay seconds="(20..30)" target="(311..312)" style="hidden" />
    </Page>
<Page id="stop34" if-set="chance33">
      <Text>
<p>No more...</p>
<p>You'r not ready how it seems...</p>
<p>Come back tomorrow and we'll see to fix that...</p>
      </Text>
      <Image id="stop.*" />
    </Page>
It was intended that it goes to an random page from "start" to "1", "2" or "3" and those pages are introducing the single Sets which differe in there metronome speed and delay per page.
And the last delays should set, that the first Set is completed and trigger the pages 1 to 3 to not be shown and instead the pages 4 to 6 get activated and one of them would be shown next, and the same should happen with 7 to 9.
Also i intended to let none Set to be doubled so one has to do all three Sets in order to complete the session.
Hope that's enough information... don't know what to mention else besides that if you could help me to do progress again i might upload it.
If anything is left open let me know!
So, thanks in advance!

Edit:I allready startet to rewrite that part so GuideMe only has to choose the the first page an everything else goes wihout any complicated flag-system (exept those 3-chances thing, that actually worked).
If you liked where that small trouble-part should go and want to test the full thing someday (or until i rewrote that part) pm me and i'll upload it.
Also do what you want with that peace of script, if you find anything.

I guess this topic can be close or something now.
Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests