Here are EOS tutorials

All about the past, current and future webteases and the art of webteasing in general.
---
User avatar
indyc
Explorer At Heart
Explorer At Heart
Posts: 530
Joined: Sun Mar 28, 2021 10:03 pm
Contact:

Re: Here are EOS tutorials

Post by indyc »

@GanyuSimp
If you wouldn't mind PMing me the link to your tease (The share tease thing) I can look at the code and let you know why.
Kinkyboots
Explorer
Explorer
Posts: 8
Joined: Tue Sep 11, 2018 9:30 pm

Re: Here are EOS tutorials

Post by Kinkyboots »

Hello :wave: ,
I think i have a similar problem like GanyuSimp.
These first two page of my tease are working fine and then i get a black screen.
There is the correct link for the next goto page, but i dont see any content. I cant even use the debug tool to jump to a different page. What went wrong? Do you have a hint for me? The rest of the tease is working fine as far as i noticed. I happens just on the page 3 to 5.
User avatar
ritewriter
Explorer At Heart
Explorer At Heart
Posts: 454
Joined: Sun Jan 02, 2022 6:51 am
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: Here are EOS tutorials

Post by ritewriter »

This is so helpful! I'm finally trying to put together my first tease, inspired by Trials of the Succubi, Hero Corruption, and Artificial Alyssa based on my THE CLINIC caption series.

One big issue I've been having is with picture management. I was trying to load up images using IOS and Safari but it seemed to always fail. Having better luck with Edge and PC. But when I try to edit on my ipad, the pictures seem to die. Is there a best practices way to manage images? Is there a max capacity for uploads? (This thing is going to be huge I think)

Thanks for this thread! I'm sure I'll have many more questions.
FireBat9752
Curious Newbie
Curious Newbie
Posts: 4
Joined: Sun Jun 10, 2018 6:54 am

Re: Here are EOS tutorials

Post by FireBat9752 »

How does one go about getting a user to type in a name they want to be referred to then applying that later in multiple points through out?
User avatar
phönix
Explorer At Heart
Explorer At Heart
Posts: 687
Joined: Thu Jun 11, 2020 7:14 am
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: Here are EOS tutorials

Post by phönix »

FireBat9752 wrote: Tue Feb 01, 2022 7:43 am How does one go about getting a user to type in a name they want to be referred to then applying that later in multiple points through out?
Similar like shown in IV.4. in the tutorial above. "prompt" will let you enter a name and store it in a variable of your choice. "say" (see IV.3. for details) will display it.
FireBat9752
Curious Newbie
Curious Newbie
Posts: 4
Joined: Sun Jun 10, 2018 6:54 am

Re: Here are EOS tutorials

Post by FireBat9752 »

phönix wrote: Tue Feb 01, 2022 8:28 am
FireBat9752 wrote: Tue Feb 01, 2022 7:43 am How does one go about getting a user to type in a name they want to be referred to then applying that later in multiple points through out?
Similar like shown in IV.4. in the tutorial above. "prompt" will let you enter a name and store it in a variable of your choice. "say" (see IV.3. for details) will display it.
Thanks, that helped me fix up what I was doing, didn't really understand it on first read, second read I figured it out.
Yo_Boy_123
Explorer
Explorer
Posts: 27
Joined: Sat Sep 04, 2021 7:15 am

Re: Here are EOS tutorials

Post by Yo_Boy_123 »

Thanks for making these tutorials, they have been very helpful to someone with no experience in Javascript.

I have a question: is there an clean way to make a persistent button using the Notification function? IE a button that remains visible and functional even once it's been pressed?

Thank you
User avatar
indyc
Explorer At Heart
Explorer At Heart
Posts: 530
Joined: Sun Mar 28, 2021 10:03 pm
Contact:

Re: Here are EOS tutorials

Post by indyc »

Yo_Boy_123 wrote: Wed Feb 23, 2022 9:44 am Thanks for making these tutorials, they have been very helpful to someone with no experience in Javascript.

I have a question: is there an clean way to make a persistent button using the Notification function? IE a button that remains visible and functional even once it's been pressed?

Thank you
Hey, apologies for being quite late on the answer. Several, including myself, have tried to make this happen but beyond about 10 button presses or so it becomes too space intensive. This is done by copy pasting the button notification inside of itself several times but this is considered nesting which takes up space exponentially the deeper it goes.

If you are open (hehe) to using Open EOS I think it has that functionality and a dev who is happy to add nearly whatever you require.
Yo_Boy_123
Explorer
Explorer
Posts: 27
Joined: Sat Sep 04, 2021 7:15 am

Re: Here are EOS tutorials

Post by Yo_Boy_123 »

indyc wrote: Wed Mar 09, 2022 2:47 am Hey, apologies for being quite late on the answer. Several, including myself, have tried to make this happen but beyond about 10 button presses or so it becomes too space intensive. This is done by copy pasting the button notification inside of itself several times but this is considered nesting which takes up space exponentially the deeper it goes.

If you are open (hehe) to using Open EOS I think it has that functionality and a dev who is happy to add nearly whatever you require.
Alright, I had already considered nesting buttons and decided that that wasn't an ideal solution.

As for using Open EOS, is it similar to EOS in terms of support for someone with almost no experience in coding? EOS so far has been pretty easy to learn and manipulate.
User avatar
Jackall
Explorer At Heart
Explorer At Heart
Posts: 106
Joined: Sun Aug 02, 2020 2:22 pm
Gender: Male
I am a: Submissive

Re: Here are EOS tutorials

Post by Jackall »

Id like to ask for some help with my code.

Code: Select all

//enables 10 rooms
var list = [];
for (let i = 0; i < 10; i++)
{
  var randomkey = getRandomProperty(presence);
  if (randomkey == "r50") {i = i - 1}
  else
    if (list.includes(randomkey)) {i = i - 1}
    else
      list.push(randomkey) ;
		  presence[randomkey] = true;
}
what it does: from a pool of tease-pages it randomly selects 10. It checks if the last selected one is not already on the list with the .include method. This works in browser JS environment but in the EOS version it pops up an error. The "list" is apparently "any" type and i cant call that method on that. If I try initializing the list like this:

Code: Select all

var list = new Array[];
then this line says the brackets [] needs an agrument. When I give it a value (like new Array["r50"]) my tease still wont load but doesnt underline anythin. Copying it to the other environment reports "TypeError: Array.r50 is not a constructor""
(my tease does work if I diasble this whole part of the code). Just want to use the include method or a simple substitute if possible.
fapnip
Explorer At Heart
Explorer At Heart
Posts: 431
Joined: Mon Apr 06, 2020 1:54 pm

Re: Here are EOS tutorials

Post by fapnip »

Jackall wrote: Wed May 25, 2022 4:13 pm It checks if the last selected one is not already on the list with the .include method.
"includes" was introduced in ES2016, Eos uses ES5.

In ES5 you can use (list.indexOf(randomkey) > -1)

Or you could add this polyfill to the top of your init script:

Code: Select all

if(!Array.prototype.includes){
   Array.prototype.includes = function(search){
    return this.indexOf(search)>-1
  }
}
User avatar
Jackall
Explorer At Heart
Explorer At Heart
Posts: 106
Joined: Sun Aug 02, 2020 2:22 pm
Gender: Male
I am a: Submissive

Re: Here are EOS tutorials

Post by Jackall »

fapnip wrote: Wed May 25, 2022 7:47 pm
In ES5 you can use (list.indexOf(randomkey) > -1)
Thanks a lot!
it seems i also needed to use var in the for loop instead of let, the tease loads now! (for now :D )
User avatar
Jackall
Explorer At Heart
Explorer At Heart
Posts: 106
Joined: Sun Aug 02, 2020 2:22 pm
Gender: Male
I am a: Submissive

Re: Here are EOS tutorials

Post by Jackall »

I want to make a hidden timer that continues through pages. So either hide a notification when its created or regular timer that doesnt get cancelled by page switch. How would I go about doing this?
Thamrill
Explorer At Heart
Explorer At Heart
Posts: 301
Joined: Thu Jan 03, 2013 4:55 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Here are EOS tutorials

Post by Thamrill »

Jackall wrote: Mon Jun 06, 2022 12:00 pm I want to make a hidden timer that continues through pages. So either hide a notification when its created or regular timer that doesnt get cancelled by page switch. How would I go about doing this?
One creative way to do it is to create a variable that stores the instant when the timer is started and then having the code verify from time to time if enough time is passed. To do so you can call the following function in eval:

var init= new Date().getTime() / 1000;

then periodically check if (new Date().getTime() / 1000-init) is greater than whatever value you may want, in seconds.

Mind you that in this way you have to specifically check for the passed time, so you can do it only as an action and you can't act in the middle of another action
Image

Image

Image
User avatar
Jackall
Explorer At Heart
Explorer At Heart
Posts: 106
Joined: Sun Aug 02, 2020 2:22 pm
Gender: Male
I am a: Submissive

Re: Here are EOS tutorials

Post by Jackall »

Thamrill wrote: Mon Jun 06, 2022 12:39 pm
var init= new Date().getTime() / 1000;
then periodically check if (new Date().getTime() / 1000-init) is greater than whatever value you may want, in seconds.
Thank you! I will have to place some checkpoints but worth it
Post Reply