Page 1 of 1

The Pornstar is Right! - XML

Posted: Fri Nov 20, 2015 3:52 am
by Kristycookie
I found a download of a bunch of teases and it has this one that interests me that seems to be like a gameshow tease but any time it reaches a timer there is some kind of error and the page never changes. I've tried it in TeaseMe and GuideMe but to no avail.

I was hoping someone has a working xml for this tease, I have all the assets already. Thanks.

Re: The Pornstar is Right! - XML

Posted: Fri Nov 20, 2015 6:21 am
by AllanM
Try this one, I modified it to use the correct random page code in xml.
It may not be exactly as originally intended, as I set it to use a 10 second delay for every time this occurs in the tease, and I set it to secret, so no visible timer. If you want to know for future reference, or how to adjust it inside the tease, use the following code as an example:

<Button target="page(1..100)">Continue</Button> This is a page range from 1 to 100, with a clickable "continue" button

<Delay target="page(1..100)" seconds="10" style="secret" /> This is a page range from 1 to 100, with no button. Just a hidden 10 second delay timer.

<Delay target="page(1..100)" seconds="5" style="normal" /> This is a page range from 1 to 100, with no button. Just a visible 5 second delay timer.

Attached is the xml you asked for.

Re: The Pornstar is Right! - XML

Posted: Fri Nov 20, 2015 12:40 pm
by Kristycookie
I tried it but now after the wait it simply restarts the tease...

Thank you for trying though.

Re: The Pornstar is Right! - XML

Posted: Sun Nov 22, 2015 9:54 pm
by AllanM
Works fine for me with GuideMe. Are you using that or Tease Me?

Re: The Pornstar is Right! - XML

Posted: Mon Nov 23, 2015 2:29 am
by Kristycookie
I am using guideme.

I took a peek at the xml and on line 109 starts the first page I have issue with, page10

Code: Select all

<Page id="page10">
      <Errors>ParserError (line 1:247): mismatched input 'page' expecting QUOTED_STRING. Please correct by hand.</Errors>
    
      <Text>
        <p>Hmmm... I choose....</p>
      </Text>
      <Image id="no-08.jpg" />
	  	  <Delay target="page(1..3)" seconds="10" style="secret" />

    </Page>
This is choosing a random page but it is choosing between 1 and 3 which are the first three pages in the tease. So every time you get to page 10 it sends you back to either the first second or third page again.

Re: The Pornstar is Right! - XML

Posted: Thu Nov 26, 2015 3:37 am
by AllanM
Sorry about that, you're right, there was an error on the file I uploaded. I had a couple I was working with and I think I uploaded the incorrect one.

The only issue on that one is the page ID for page 10. The delayed target should read " <Delay target="(1..3)" seconds="10" style="secret" />" instead of "<Delay target="page(1..3)" seconds="10" style="secret" />". You can delete the word "page" from that line and save the xml and it will work properly.
Spoiler: show
<Page id="page10">
<Text>
<p>Hmmm... I choose....</p>
</Text>
<Image id="no-08.jpg" />
<Delay target="(1..3)" seconds="10" style="secret" />

Re: The Pornstar is Right! - XML

Posted: Mon Apr 18, 2016 8:29 pm
by SexyTom
Hmm... there seems to be more parser errors:

Code: Select all

 <Page id="page807">
      <Errors>ParserError (line 1:345): mismatched input 'e' expecting ',cap'. Please correct by hand.</Errors>
      <!-- page807#page(text:'<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Give me 10 strokes, then pick a letter!</FONT></P></TEXTFORMAT>',media:pic(id:"hm0.jpg"),action:buttons(target0:hm1#,cap0:"A",target1:hm1#,cap1:"B",target2:hm0c#,cap2:"C",target3:hm0d#,cap3:"D",target4:hm0e#,cap4:"E",target5:hm1#,cap5:"G",target6:hm1#,cap6:"H",target7:hm0i#,cap7:"I",target8:hm0l#,cap8:"L",target9:page808#,cap9:"more")) -->
      <Text>
        <p>Give me 10 strokes, then pick a letter!</p>
      </Text>
      <Image id="hm0.jpg" />
    </Page>

Code: Select all

 <Page id="6c00dbc1-ec2a-4d3f-8714-5176a8fb5dc6">
      <Errors>This page had no id, so one is generated. ParserError (line 1:4): missing 'page(' at 'e'. Please correct by hand.</Errors>
      <!-- hm0e#page(text:'<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">The very last letter is E.</FONT></P></TEXTFORMAT>',media:pic(id:"picture06.jpg"),action:go(target:page807#)) -->
    </Page>

Code: Select all

 <Page id="70fa6f20-2b90-4b1d-9441-299cbecdfc04">
      <Errors>This page had no id, so one is generated. ParserError (line 1:4): missing 'page(' at 'e'. Please correct by hand.</Errors>
      <!-- hm1e#page(text:'<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">The very last letter is E.</FONT></P></TEXTFORMAT>',media:pic(id:"picture06.jpg"),action:go(target:hm1#)) -->
    </Page>
Maybe you need look for more errors in the XML. There are a lot parsererrors. :-/

A fix would be greatly appreciated. :)