Page 13 of 83

Re: Offline Teases (TeaseMe)

Posted: Sat Mar 17, 2012 2:16 pm
by les

If VLC won't play it I find nothing will,
Because the file is damaged beyond repair.
http://www.videolan.org/vlc/ wrote: VLC media player
Features
Simple, Powerful and Fast

Plays everything, Files, Discs (DVD, CD, VCD, Blu-Ray), Webcams and Streams

Plays most codecs with no codec packs needed:
MPEG-2, H.264, DivX, MPEG-4, WebM, WMV player

Completely Free, 0 Spyware, Ads or User Tracking

Works on most platforms: Windows, Linux, Mac OS X, Unix...

Media Converter and Streamer

Re: Offline Teases (TeaseMe)

Posted: Sat Mar 17, 2012 6:36 pm
by janmb
VLC is great, just go for it IMO

Re: Offline Teases (TeaseMe)

Posted: Sun Mar 25, 2012 2:33 pm
by Nez
Suggestions:
1) make an option to view not the whole video but the set period of it by defining timeframe.
- Make an option to set the timeframe to be repeated
2) introduce variables (at least integer)
3) re-arrange buttons disposition - they are too far away and if there are a few they sometimes look weird. It would be better to arrange them in columns like in original nyx.
4) add advanced coding. It would be best if we could actually use java or c#

Just dropping those in

Re: Offline Teases (TeaseMe)

Posted: Sun Mar 25, 2012 9:25 pm
by Coco
Thanks for the tips first, already helped but there still are some "problems":
d3vi0n wrote:set <AutoSetPageWhenSeen> to true and TeaseMe should set pages automatically, when visited
Doing that would end up in even more work since I'd have to unset all visited pages after each random round in order to visit them again. Setting all pages takes its time, too, but not as much.
set/unset attributes can only be placed on <button> and <delay>... not on <page>
Understood :-) But a new problem occured with that. I wanted to find a work-around for the multiple if-set/if-not-set (besides the one with an extra page for each condition-combination) and simultaniously played around with set/unset. The result: set/unset somehow doesn't seem to work as soon as all pages are set. To be specific:

Code: Select all

<Pages>  <Page id="start">      <Text>      <p>start</p>      </Text>      <Image id="*.jpg" />      <Button target="target2">target2</Button>    </Page>    <Page id="target2">      <Text>      <p>page2</p>      </Text>      <Image id="*.jpg" />      <Button target="target(3..5)">target3</Button>      <Button target="end">end</Button>    </Page>    <Page id="target3">      <Text>      <p>page3</p>      </Text>      <Image id="*.jpg" />      <Button target="target2" set="target3">target2</Button>      <Button target="target4">advance</Button>    </Page>    <Page id="target4" if-set="target3">      <Text>      <p>page4</p>      </Text>      <Image id="*.jpg" />      <Button target="target2" set="target4">target2</Button>    </Page>    <Page id="target5" if-set="target4">      <Text>      <p>page5</p>      </Text>      <Image id="*.jpg" />      <Button target="target2" set="target5">target2</Button>    </Page>    <Page id="end" if-set="target5">      <Text>      <p>end</p>      </Text>      <Image id="*.jpg" />    </Page>    </Pages>
The button target of target2 "chooses" target3, after that target4 and after that target5. Pressing the button a forth time should lead to an error saying the pages do not exist or are already marked as seen. At least that was what I expected. However, instead it went straight back to target5, sometimes target4...but never target3, which was weird to me, I've pressed it like a thousand times.
Is this a problem with the random target? Or because all pages are set of this specific random target?

Anywho, thanks for your help as always, I just want to understand the syntax as good as possible :yes:

Re: Offline Teases (TeaseMe)

Posted: Mon Mar 26, 2012 12:24 am
by Coco
Isn't it great to have the answer on your own questions?
I've tried it several times in different ways and finally tried it with the "Games Room - Under my control"-remake, where the code looks like this:

Code: Select all

<Page id="95">  <!-- set 95 -->      <Text>        <p>Too slow, baby! You failed.</p>        <p>Don't disappoint me too much, or you'll be punished!</p>      </Text>      <Image id="fail01.jpg" />      <Delay target="rest(101..125)" seconds="60" set="95" />    </Page>    <Page id="96" if-set="95"> <!-- set 96 -->      <Text>        <p>You are asking for it, toy! You must be ready to stroke, when I ask you to!</p>      </Text>      <Image id="fail02.jpg" />      <Delay target="rest(101..125)" seconds="60" set="96" />    </Page>    <Page id="97" if-set="96"> <!-- set 97 -->      <Text>        <p>Again?! I won't stand such disobedience!</p>      </Text>      <Image id="fail03.jpg" />      <Delay target="rest(101..125)" seconds="60" set="97" />    </Page>    <Page id="98" if-set="97"> <!-- set 98 -->      <Text>        <p>I give you one last warning! One more time, and I'll have to punish you!</p>      </Text>      <Image id="fail04.jpg" />      <Delay target="rest(101..125)" seconds="60" set="98" />    </Page>    <Page id="99" if-set="98">      <Text>        <p>That's it, slave. You'v asked for it, now you are in trouble.</p>      </Text>      <Image id="fail05.jpg" />      <Button target="P1">Continue</Button>    </Page>
These 5 pages should appear in a row with the rest-pages and Funtime-page in between, having this delay:

Code: Select all

<Delay target="(95..99)" seconds="120" />
But inspite of the "if-set"-commands, the pages appeared in no such order, which leads me to the conclusion that "if-set/if-not-set" just won't work with random range targets in neither button nor delay. I works with one-page-targets but having a tease with several rounds/sets/games/etc. and wanting to limit the number of those rounds there's no way to make it work properly unless you write the full path for every possible "if-set/if-not-set"-condition. Unfortunately I don't know how to look in the TeaseMe sourcecode or wherever these statements are declared, so I wanna kindly ask those who do if there's any way to make it work. Would save a lot of time.

Re: Offline Teases (TeaseMe)

Posted: Thu Mar 29, 2012 12:54 am
by Humblest
This is a really neat program. Do the following teases work offline with it?

A Very Good Day: http://www.milovana.com/webteases/showt ... p?id=15472

Stroke for Ashlyn: http://www.milovana.com/webteases/showflash.php?id=9346

The Mysterious House: http://www.milovana.com/webteases/showflash.php?id=9719

Edge Island: http://www.milovana.com/webteases/showflash.php?id=5092

Last man standing - Competition: http://www.milovana.com/webteases/showf ... p?id=15195

Re: Offline Teases (TeaseMe)

Posted: Sat Mar 31, 2012 11:11 am
by Nezhul
Could you make a minor fix and make the buttons appear right under the text, not at the very bottom of a page?

Re: Offline Teases (TeaseMe)

Posted: Sat Mar 31, 2012 5:44 pm
by Nezhul
Also tell me, can I use multiple triggers if-set if-not set? For example I want to show page3 only if pages 1 and 2 were already shown?

Re: Offline Teases (TeaseMe)

Posted: Sun Apr 01, 2012 6:32 am
by Takenaga
Nezhul wrote:Also tell me, can I use multiple triggers if-set if-not set? For example I want to show page3 only if pages 1 and 2 were already shown?
Yes, you can use A+B for 'and' and A|B for 'or' conditions.

Re: Offline Teases (TeaseMe)

Posted: Sun Apr 01, 2012 6:56 am
by Takenaga
Nezhul wrote:Could you make a minor fix and make the buttons appear right under the text, not at the very bottom of a page?
Hmm, my personal preference is to have the buttons always around the same place on the screen. The current user interface is made with WinForms and it takes quite some work to customize the layout (ideal situation would be to support multiple layouts to satisfy all users...).

I'm trying to make a new user interface that works on both Mac and Windows, but things are going slowly. The problem is playing video in a uniform way. Using VLC is not as easy as I hoped. Now I'm experimenting with Silverlight as that seems to work on both platforms and does play videos.

Re: Offline Teases (TeaseMe)

Posted: Sun Apr 01, 2012 10:35 am
by Nezhul
why don't you make two different modules to play a video? On startup your main engine will grab the OS's parameters and use the according module. Common practice for the multiplatform applications.

Re: Offline Teases (TeaseMe)

Posted: Mon Apr 02, 2012 4:56 am
by Nezhul
soooo it goes something like this?

<Page id="5" if-set="1" + if-set="2" + if-set="3">?
// page 5 will be shown (will be pickable by random) only if pages 1, 2 and 3 are all set

Also does it support brackets so I can make more advanced logics like

<Page id="5" (if-set="1" + if-set="2") | (if-set="3"+if-set="4")>
// page 5 will be shown (will be pickable by random) only if pages 1 & 2 are both set OR if page 3&4 are both set

It's just that without brackers you can't achieve that.

Also, allow me clarify If I understand it right with the flags on buttons and delays.
Set/unset - when used on a button, if you click it it will set/unset a target page or trigger. On delay it will set/unset a trigger when delay is over, right?
if-set/if-not-set - when used on a button or delay, this element will be active only if the flags are true.

Re: Offline Teases (TeaseMe)

Posted: Tue Apr 03, 2012 12:58 am
by meson1
I too am interested in using compound conditions (i.e. A+B and A|B). However, I am unable to fathom the exact syntax required. I have experimented with numerous ways of coding a simple "and" condition using if-set, but I either get an error due to invalid syntax or when the syntax is apparently accepted, it just seems to be ignored.

Could we see a working example of the required syntax, please? :-D

Re: Offline Teases (TeaseMe)

Posted: Tue Apr 03, 2012 6:12 am
by A
This is nice program! I like it! =O

Re: Offline Teases (TeaseMe)

Posted: Tue Apr 03, 2012 4:14 pm
by d3vi0n
So many questions... so little time :-( Sorry if i'm more offline than usual and many questions stay unanswered. I'll try my best, but my time is very limited at the moment. Maybe some of the other users can help.

There is a bit experimenting and learning required in order to create a decent script. Best way to learn the possibilities is to play the tutorial and study the _tutorial.xml. "Copy & Paste" from _tutorial.xml helps to start a own script. The importer works fine for basic teases, but requires some knowledge about working scripts to import more advanced teases with conditional manipulation. There a some samples in _tutorial.xml for use of set/unset.
I too am interested in using compound conditions (i.e. A+B and A|B). However, I am unable to fathom the exact syntax required.
Compound conditions (i.e. A+B and A|B). are not included in the latest Release of TeaseMe (v0.1.1)! Only the "work in progress" source code on github (see url in first post) supports this feature. I'm not sure what else Takenaga changed in the source code files. He sends me a message when the source code files are prepared to create a new release. We wanted to have more than compund conditions to create a new release version.
Also, allow me clarify If I understand it right with the flags on buttons and delays.
Set/unset - when used on a button, if you click it it will set/unset a target page or trigger. On delay it will set/unset a trigger when delay is over, right?
if-set/if-not-set - when used on a button or delay, this element will be active only if the flags are true.
One minor correction: If you click a button with set/unset you set/unset a "trigger" (="flag") with the specified name (e.g. set="found_treasure" sets a "trigger" named "found_treasure"). A page whose "id" is identical to a "trigger" which was "set" can't be shown and will be skipped at random targets. So you can use triggers in buttons to "set pages". But it has nothing to do with the target page of the button. The option "AutoSetPageWhenSeen" automatically creates and sets a flag for every page after the page is shown.
can I use multiple triggers if-set if-not set? For example I want to show page3 only if pages 1 and 2 were already shown?
Not at the moment. But its a feature i also wanted for a new release :-) Same goes for multiple delays on one page - each one with a different if-set/if-not-set condition.