Page 4 of 13
Re: Offline Editor
Posted: Mon May 06, 2013 10:29 pm
by lmind
Thank you for your work on the new version.
Does Nyx (whether offline or online) have TeaseMe's ability to handle multiple alternate conditional Delay/Button nodes on a single page? That is a major feature of my tease, but it looks like "Gen Nyx Script" strips out all but one Delay node per page and keeps all Button nodes, but without any conditions.
example:
- Spoiler: show
- Here is the XML:
<Page id="r1m13" unset="r1m14">
...
<Delay target="r1m14" if-not-set="showtimer" seconds="90" style="secret"></Delay>
<Delay target="r1m14" if-set="showtimer" start-with="180" seconds="90" style="normal"></Delay>
</Page>
But here is the Nyx Script generated by the offline Editor for that page:
5390013#page('
...
delay(90sec,r1m14#,style:secret),unset(r1m14#));
The second Delay node has been stripped out, along with the "if"/"if-not" conditional(s).
And for Buttons, the XML:
<Page id="round6prewin-pick2">
...
<Button target="round6prewin-pick3" if-set="aceh" set="acewin">Hearts</Button>
<Button target="round6prewin-pick3" if-set="aced" set="acewin">Diamonds</Button>
<Button target="round6prewin-pick3" if-set="acec" set="acewin">Clubs</Button>
<Button target="round6prewin-pick3" if-set="aces" set="aceruin">Spades</Button>
</Page>
And the Nyx:
round6prewin-pick2#page(
...
vert(buttons(280#,"Spades",281#,"Clubs",282#,"Diamonds",283#,"Hearts")));
The "if" conditionals to the four buttons are stripped out, thus I assume all four buttons would be displayed.
Coincidentally, in this example, it also looks like Page id r1m13 was renamed to page 5390013 (and r1m14 to 5390014) because these pages are targeted by an r1m(1..14) function elsewhere in the tease and because Nyx can't handle random pages that way, so it renames them. Renaming them is a totally fine solution. But Nyx does not rename any single-target page references to specific pages within the random range, thus I expect those single-target references will fail.
In this case: page r1m14 does not exist in Nyx, because it was renamed (by Nyx) to 5390014. Thus, I assume the specific reference to r1m14 will fail.
Users can do a global search-and-replace to correct this. But I wanted to bring it to your attention in case you wanted to add that feature to the offline Editor. (a search-and-replace for page refs directed to a specific page within a range of pages that were renamed in order to handle a range function.)
I still have a lot to learn about Nyx, so I apologize if my questions are pedantic or mundane. Thank you again for your help.
-lmind
Re: Offline Editor
Posted: Mon May 06, 2013 10:40 pm
by Venus
As far as I know TeaseMe can not handle two or more timers on the same page whereas nyx does. So maybe you have to give up the concept of more than one timer on the same page in the TeaseMe version.
Re: Offline Editor
Posted: Mon May 06, 2013 11:21 pm
by lmind
Venus wrote:As far as I know TeaseMe can not handle two or more timers on the same page whereas nyx does. So maybe you have to give up the concept of more than one timer on the same page in the TeaseMe version.
Do you mean the opposite? Because TeaseMe is handling the multiple timers. It's when I convert to Nyx that they seem to disappear.
Re: Offline Editor
Posted: Tue May 07, 2013 9:01 am
by Venus
lmind wrote:Venus wrote:As far as I know TeaseMe can not handle two or more timers on the same page whereas nyx does. So maybe you have to give up the concept of more than one timer on the same page in the TeaseMe version.
Do you mean the opposite? Because TeaseMe is handling the multiple timers. It's when I convert to Nyx that they seem to disappear.
Actually, I mean it as I said. I remember once I had two timers on the same page in the nyx version. One long timer to trick the people and a short one and it worked fine. But the tease couldn't be downloaded with TeaseMe because of that and I hat to delete the additional timer.
It's kinda the opposite direction, but still similar to your problem. If there aren't too many pages containing multiple timers you could translate them manually, shouldn't be too much work and you can see how it works.
Re: Offline Editor
Posted: Tue May 07, 2013 9:06 pm
by lmind
Venus wrote:
Actually, I mean it as I said. I remember once I had two timers on the same page in the nyx version. One long timer to trick the people and a short one and it worked fine. But the tease couldn't be downloaded with TeaseMe because of that and I hat to delete the additional timer.
It's kinda the opposite direction, but still similar to your problem. If there aren't too many pages containing multiple timers you could translate them manually, shouldn't be too much work and you can see how it works.
Hmmm, interesting. I am having the opposite issue. Our combined experiences suggest (to me) that both TeaseMe and Nyx can handle multiple timers on the same page, but it's the translation between them that somehow doesn't work.
What is the syntax for multiple conditional Delays in Nyx? (an example would help me a lot)
In the specific case of my tease, I have too many conditional delays and buttons to translate each into a separate page. I have about 80 such pages, many of them with 10-25 different delays. :( That balloons quickly into over 1000 pages if I try to break them apart. (it's even worse than that, because there are subroutines that bookmark the pages and loop back to them; I think the subroutines would be multiplied, too)
I'm okay with just releasing it as a TeaseMe game, if I have to.
Thanks again for your help,
-lmind
Re: Offline Editor
Posted: Tue May 07, 2013 11:15 pm
by Venus
AH! I think I have misunderstood you first.
You are using several timers combined with these if-set/if-not-set -flags, right? I have to disappoint you but this feature doesn't exist in nyx

Re: Offline Editor
Posted: Wed May 08, 2013 12:35 am
by lmind
Venus wrote:AH! I think I have misunderstood you first.
You are using several timers combined with these if-set/if-not-set -flags, right? I have to disappoint you but this feature doesn't exist in nyx

Ahh, ok. That's too bad. I will publish the TeaseMe version soon, then. Thank you again for your help.
-lmind
Re: Offline Editor
Posted: Fri Oct 18, 2013 12:27 pm
by pc91
I must be doing something wrong.
I add text on the Page Tab. I believe this is the correct Tab to insert and edit text, right?
Then I save the Page.
The text then disappears.
If I then switch to the Page View Tab, the text IS there, as expected.
But, it is not present on the Page tab.
Therefore, I cannot edit the text.
Also, if I then add a Photo from the Image Tab and save the page, the text disappears entirely, and I have to re-insert it.
What am I missing?
Re: Offline Editor
Posted: Fri Oct 18, 2013 6:41 pm
by philo
pc91 wrote:I must be doing something wrong.
I add text on the Page Tab. I believe this is the correct Tab to insert and edit text, right?
Then I save the Page.
The text then disappears.
If I then switch to the Page View Tab, the text IS there, as expected.
But, it is not present on the Page tab.
Therefore, I cannot edit the text.
Also, if I then add a Photo from the Image Tab and save the page, the text disappears entirely, and I have to re-insert it.
What am I missing?
The only time I have seen anything like that was when I had manually edited the tease and accidentally added two pages with the same name.
sounds like what you are doing should work, I tend to do save page between each tab which should do a save and refesh.
does this happen on multiple pages or in different teases or just that specific tease or page?
Re: Offline Editor
Posted: Fri Oct 18, 2013 9:58 pm
by pc91
philo wrote:does this happen on multiple pages or in different teases or just that specific tease or page?
I just tried the editor with a new tease. It does not happen on every page, but there is no real difference between the pages. Nothing fancy, just text and a photo. I did not even specify buttons or a delay. I did notice that sometimes the Page tab shows the <DIV> Tags, and sometimes it does not. Could that make a difference?
Re: Offline Editor
Posted: Sat Oct 19, 2013 7:15 am
by philo
pc91 wrote:philo wrote:does this happen on multiple pages or in different teases or just that specific tease or page?
I just tried the editor with a new tease. It does not happen on every page, but there is no real difference between the pages. Nothing fancy, just text and a photo. I did not even specify buttons or a delay. I did notice that sometimes the Page tab shows the <DIV> Tags, and sometimes it does not. Could that make a difference?
The teaseme format is xml, html is similar but there are diferences which is why xhtml was brought in, there is some procesing inthe text bit to reformat the html so it can be stored as xml. The editor should be generating an error log file, I cant rremember where it puts it off the top of my head, will check later when I am on my pc. Did you install it with the installer or the older way where you copy it to a folder?
there will probably be errors in the log that will let me work out what is happening.
Re: Offline Editor
Posted: Sat Oct 19, 2013 11:41 am
by pc91
philo wrote:Did you install it with the installer or the older way where you copy it to a folder?
there will probably be errors in the log that will let me work out what is happening.
I uninstalled program, then reinstalled using installer just to make sure. I am getting similar behavior. Found log file. Here are what look to be relevant entries [I inserted the ~ to shorten the path:
2013/10/19 07:18:46, saveXml, The process cannot access the file 'C:\Users\USER\AppData\Local\Apps\2.0\~Settings.xml' because it is being used by another process., WinIOError
2013/10/19 07:19:46, saveXml, The process cannot access the file 'c:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:20:12, saveXml, The process cannot access the file 'c:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:27:28, saveXml, The process cannot access the file 'C:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:29:14, saveXml, The process cannot access the file 'C:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:29:29, saveXml, The process cannot access the file 'C:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:29:36, saveXml, The process cannot access the file 'C:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:29:50, saveXml, The process cannot access the file 'C:\TM\Test.xml' because it is being used by another process., WinIOError
2013/10/19 07:32:06, saveXml, The process cannot access the file 'C:\TM\Test.xml' because it is being used by another process., WinIOError
Re: Offline Editor
Posted: Mon Oct 21, 2013 2:17 am
by Trusfrated
I've experienced similar issues to pc91 with text disappearing in the offline editor. In my case, it seems to be related to entering improperly formatted XML in the Page tab. If it doesn't have the correct formatting (such as a malformed tag after editing), when you go to another page (save) and come back, the text is gone. That's why I almost always use the WYSIWYG editor, even if it is a bit of a pain copying the text back and forth.
Not to thread-jack, but the WYSIWYG editor seems to have its own annoying bug. If I type two consecutive spaces there (such as at the end of a sentence, which I almost always do), the code in the upper half of the screen shows one of them as " " (which is probably fine). However, once the text is copied to the page and it is saved, the non breaking space is converted to a line break (<BR>) in the page code. The new line break completely ruins the intended flow of the text in Page View.
Another minor bug: when selecting a thumbnail image on the Image tab, it won't let you select the same image for two consecutive pages (which is sometimes necessary). In order to use the same image again, you have to use the Browse button and select it from the Explorer window.
Not a bug, but a minor quibble: I wish I could set the thumbnails to be larger than 240 pixels. Maybe that's not really a thumbnail by definition, but since we often use galleries with many similar pictures, it would be nice to see larger versions of them in the Image tab. That way, it would be easier to see the sometimes subtle differences between photos.
Let me just make it clear that I love the fact that you wrote this program! It's definitely the main reason I finally started putting together my own tease, even if it is taking me forever to find enough time to complete it. I hope more and more people discover the program and use it as an alternative way to create their own flash teases. Thanks, philo!
Re: Offline Editor
Posted: Mon Oct 21, 2013 6:59 pm
by philo
Thanks for the feedback it is good to know people are using it.
I will have a look when I get a chance.
I am working on another project at the moment which is using up most of my spare time so it may be a while.
I am always open to feedback, so if there are other bugs / annoyances feel free to post them here and I will release a new version when I get time.
Re: Offline Editor
Posted: Fri Nov 22, 2013 8:11 pm
by philo
Version 1.7 released
Tweaks to the way malformed HTML is dealt with in the text edit.
Image thumb nails get deselected when the page changes so you can now select the same picture on consecutive pages.
Nyx only tick box in options which disables fields only used in teaseme.
Link to download page
https://code.google.com/p/tease-me-edit ... loads/list