Page 6 of 27

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Mon Jan 28, 2019 1:47 pm
by FeetTickler
By the way is it possible to have an option in the choice who lead to the next action (after the choice) ? This would make things way easier ! :-D

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Mon Jan 28, 2019 2:40 pm
by kerkersklave
Yes, just select custom with no actions or some action that isn't a goto.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Mon Jan 28, 2019 2:45 pm
by FeetTickler
@kerkersklave it's a suggestion or it works like that ?

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Mon Jan 28, 2019 4:25 pm
by kerkersklave
@FeetTickler
It works like that.

@seraphox:
There is a "bug" with asynchronous timers and choices that do not change the page that. If you start a asynchronous timer befor a choice and the timer triggers before a choice is selected, the choice still stays active, even if you execute further say actions etc.
So you can end up with active buttons and some text below them.
I assume that this is not intensional.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Mon Jan 28, 2019 6:31 pm
by Shattered
seraph0x wrote: Sun Jan 27, 2019 11:10 pm
Shattered wrote: Sun Jan 20, 2019 6:35 pm First bug report being that drag and drop doesn't seem to work in firefox but is in chrome, don't know if im missing something :whistle:
Hmm, works for me. Sometimes it can take a second for the drag to be recognized but I don't think there is anything I can do about that. If it's still happening for you, please make sure you're on the latest version of Firefox and let me know which OS you're using and which tab in Eos you were using.
I'll look into this when I come to make an Eos tease. For now it seems alongside the release of Eos a rather large bug has been added to the HTML5 viewer which ruins a lot of teases. Could you take a look? I'm hoping its a simple fix...

viewtopic.php?f=4&t=21530

Didn't want it to get buried.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 1:18 am
by amythx
Hi and thanks for the amazing editor!

I'm failing to get the IF action working. I have initialized two variables "current" and "limit".
I have a page for only checking these variables: if (current > limit) => goto "p*".
I've tried several different things inside the IF action but everything seems to throw following error (dev tools > console):
Spoiler: show
SyntaxError: "Unexpected token (1:10)"
raisehttps://eosscript.com/acorn.min.js:1:52694unexpectedhttps://eosscript.com/acorn.min.js:1:12133expecthttps://eosscript.com/acorn.min.js:1:12089parseParenExpressionhttps://eosscript.com/acorn.min.js:1:42527parseParenAndDistinguishExpressionhttps://eosscript.com/acorn.min.js:1:43688parseExprAtomhttps://eosscript.com/acorn.min.js:1:41669parseExprSubscriptshttps://eosscript.com/acorn.min.js:1:38652parseMaybeUnaryhttps://eosscript.com/acorn.min.js:1:38236parseMaybeUnaryhttps://eosscript.com/acorn.min.js:1:37930parseMaybeUnaryhttps://eosscript.com/acorn.min.js:1:37930parseExprOpshttps://eosscript.com/acorn.min.js:1:36942parseMaybeConditionalhttps://eosscript.com/acorn.min.js:1:36596parseMaybeAssignhttps://eosscript.com/acorn.min.js:1:36062parseExpressionhttps://eosscript.com/acorn.min.js:1:35428parseStatementhttps://eosscript.com/acorn.min.js:1:15697parseTopLevelhttps://eosscript.com/acorn.min.js:1:13258parsehttps://eosscript.com/acorn.min.js:1:9973parsehttps://eosscript.com/acorn.min.js:1:10604parsehttps://eosscript.com/acorn.min.js:1:87875appendCodehttps://eosscript.com/interpreter.min.js:1:1749valuehttps://eosscript.com/static/js/main.3849890e.chunk.js:1:52923runhttps://eosscript.com/static/js/main.3849890e.chunk.js:1:21766thttps://eosscript.com/static/js/main.3849890e.chunk.js:1:12820_https://eosscript.com/static/js/5.e81bcb8b.chunk.js:1:165903_invokehttps://eosscript.com/static/js/5.e81bcb8b.chunk.js:1:165693thttps://eosscript.com/static/js/5.e81bcb8b.chunk.js:1:166079rhttps://eosscript.com/static/js/5.e81bcb8b.chunk.js:1:645uhttps://eosscript.com/static/js/5.e81bcb8b.chunk.js:1:851 5.e81bcb8b.chunk.js:1:96225
I even tried to evaluate 1 === 1; in order to get the IF action to fire.

My plan is to use the check page to choose which page to load next. I wouldn't need this if there is an API function for goto. Didn't see this in the help section though.


Cheers,
Amy

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 1:45 am
by seraph0x
kerkersklave wrote: Mon Jan 28, 2019 10:17 am This seems to be a new bug introduced by the changes last night and seems to affect everyone.
Oops. That was totally my bad. Fixed!
Shattered wrote: Mon Jan 28, 2019 6:31 pm For now it seems alongside the release of Eos a rather large bug has been added to the HTML5 viewer which ruins a lot of teases. Could you take a look? I'm hoping its a simple fix...

viewtopic.php?f=4&t=21530

Didn't want it to get buried.
Mhh, thanks for the report. I know what the problem is but it's not trivial to fix. I'll respond in the other thread once I have a better handle on it.

Edit: Fixed.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 2:32 am
by kerkersklave
seraph0x wrote: Tue Jan 29, 2019 1:45 am Oops. That was totally my bad. Fixed!
No, as far as I can see, it is still there.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 2:35 am
by seraph0x
kerkersklave wrote: Tue Jan 29, 2019 2:32 am No, as far as I can see, it is still there.
You may have to reload the viewer if you've been using it recently. Reload without cache to ensure you have the latest version.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 2:48 am
by kerkersklave
Ok, that has done the trick, thx.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 7:09 am
by seraph0x
Just rebuilt the action reordering drag-and-drop feature. Should be smoother now and less glitchy but lmk if you run into any issues.
Revuin wrote: Mon Jan 28, 2019 4:46 am Suggestion:

Ability to copy an action (say, if, eval, etc.) and paste into other pages.

This would be useful to me because I have complicated IF actions that I need to remake on every page that I want it on.

Could possibly add the copy option to the 3-dots menu that currently has (duplicate,delete). Then have the paste button next to (rename, duplicate, delete).
Sure, feature added.
Polvish wrote: Fri Jan 25, 2019 2:39 amAlso if I could throw a suggestion out there, I would say add getPage to the interpreter as well such we could supply the goto function with whichever page we wish(mostly random pages based on dice rolls and such)!
Feature added. You can now use dynamically generated Goto targets. One caveat is that because the target pages are dynamically generated, the viewer cannot preload them. So the user may get a delay with this type of goto. Use sparingly.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 7:37 am
by Revuin
seraph0x you're amazing! Thank you for the copy paste feature. I'm making a 114 page tease right now so that has helped save me a lot of time.

I need advice on the best way to determine the number of seconds that has passed from when a timer starts and when the user clicks an option.

I was thinking of doing:

Eval: a = new Date();
Timer (asynchronous)
Choice: StopTimer --> Eval b = new Date();
Eval: c = b - a

Would that work? I'm also not sure how to set it up where clicking the option makes the timer disappear.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 12:46 pm
by eloelo120
how about changing font's size? can you implement that? :-P

i have another suggestion. i would love to create folders in the pages window (where all pages are listed) to manage them better.
also, a feature where i could change order of pages would be amazing too. think about that :)

cheers!

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 12:50 pm
by kerkersklave
Revuin wrote: Tue Jan 29, 2019 7:37 am I need advice on the best way to determine the number of seconds that has passed from when a timer starts and when the user clicks an option.
I would recommend to use Date.now() which gives you the current time in milliseconds.
This is the most convenient way to handle these kinds of cases and you do not even need to instantiate a new Date object.

Re: Eos Editor Preview - Milovana's new interactive webtease editor

Posted: Tue Jan 29, 2019 12:51 pm
by kerkersklave
eloelo120 wrote: Tue Jan 29, 2019 12:46 pm how about changing font's size? can you implement that? :-P
That is a problematic feature if you want to support all kinds of screen sizes. One could do relative font sizes in percent limited to 200% or something. But I don't think it is very usefull.