Here are EOS tutorials
Re: Here are EOS tutorials
@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.
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

- Posts: 8
- Joined: Tue Sep 11, 2018 9:30 pm
Re: Here are EOS tutorials
Hello
,
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.
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.
- ritewriter
- 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
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.
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

- Posts: 4
- Joined: Sun Jun 10, 2018 6:54 am
Re: Here are EOS tutorials
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?
- phönix
- 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
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 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?
-
FireBat9752
- Curious Newbie

- Posts: 4
- Joined: Sun Jun 10, 2018 6:54 am
Re: Here are EOS tutorials
Thanks, that helped me fix up what I was doing, didn't really understand it on first read, second read I figured it out.phönix wrote: Tue Feb 01, 2022 8:28 amSimilar 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 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?
-
Yo_Boy_123
- Explorer

- Posts: 27
- Joined: Sat Sep 04, 2021 7:15 am
Re: Here are EOS tutorials
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
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
Re: Here are EOS tutorials
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.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
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

- Posts: 27
- Joined: Sat Sep 04, 2021 7:15 am
Re: Here are EOS tutorials
Alright, I had already considered nesting buttons and decided that that wasn't an ideal solution.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.
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.
- Jackall
- Explorer At Heart

- Posts: 106
- Joined: Sun Aug 02, 2020 2:22 pm
- Gender: Male
- I am a: Submissive
Re: Here are EOS tutorials
Id like to ask for some help with my code.
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:
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.
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;
}Code: Select all
var list = new Array[];(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.
Re: Here are EOS tutorials
"includes" was introduced in ES2016, Eos uses ES5.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.
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
}
}- Jackall
- Explorer At Heart

- Posts: 106
- Joined: Sun Aug 02, 2020 2:22 pm
- Gender: Male
- I am a: Submissive
Re: Here are EOS tutorials
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 )
- Jackall
- Explorer At Heart

- Posts: 106
- Joined: Sun Aug 02, 2020 2:22 pm
- Gender: Male
- I am a: Submissive
Re: Here are EOS tutorials
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

- Posts: 301
- Joined: Thu Jan 03, 2013 4:55 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Submissive
Re: Here are EOS tutorials
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: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?
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
- Jackall
- Explorer At Heart

- Posts: 106
- Joined: Sun Aug 02, 2020 2:22 pm
- Gender: Male
- I am a: Submissive
Re: Here are EOS tutorials
Thank you! I will have to place some checkpoints but worth itThamrill 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.
