Your first webtease? Let us help you out!

Post all technical issues and questions here. We'll gladly help you wherever we can.
HitThemHarder
Explorer
Explorer
Posts: 10
Joined: Thu Apr 17, 2025 10:15 pm

Re: Your first webtease? Let us help you out!

Post by HitThemHarder »

I tried your suggestion of making the buttons invisible. I did a test run after entering the code for the first one and all the buttons are now invisible!
What have I done wrong?
Screenshot included so you can see what's happening
Attachments
Screenshot (1).png
Screenshot (1).png (109.88 KiB) Viewed 15092 times
User avatar
phönix
Explorer At Heart
Explorer At Heart
Posts: 688
Joined: Thu Jun 11, 2020 7:14 am
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: Your first webtease? Let us help you out!

Post by phönix »

All on this screenshot looks okay.
Have you set the timing of the say action right before the choice action to 'instant' ? (wild guess)
HitThemHarder
Explorer
Explorer
Posts: 10
Joined: Thu Apr 17, 2025 10:15 pm

Re: Your first webtease? Let us help you out!

Post by HitThemHarder »

How do I create a dice roll?
And, can I contain one within a notification?

I'm creating a page where the task lasts for 20 mins
The user can take a break whenever they like but must roll a 6 to resume
Rolling 1-5 will result in a punishment and re-roll

Can anyone help me?
User avatar
666
Explorer At Heart
Explorer At Heart
Posts: 211
Joined: Sat Oct 03, 2009 9:12 am

Re: Your first webtease? Let us help you out!

Post by 666 »

Hi
I attempted my first EOS tease and created a short 20 page tease that appeared to work perfectly. However, when I went to the publish tab it told me that there were errors that needed correcting before I could post it. I don't really understand what the errors are and even deleting the pages where it said the errors existed didn't solve the problem.

Here is what I can see.

Validation Errors

pages.page2[0].image.locator Must be at least 1 characters long

pages.page2[0].image.locator Does not match the regex pattern ^(file:[^\/]+|gallery:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/(\*|[0-9]+))$

pages.page17[2].timer.duration Does not match the regex pattern ^(([1-9][0-9]*(\.[0-9]*[1-9])?|0(\.[0-9]*[1-9])?)(w|d|h|m|s|ms))+(-(([1-9][0-9]*(\.[0-9]*[1-9])?|0(\.[0-9]*[1-9])?)(w|d|h|m|s|ms))+)?$

pages.page17[2].timer.duration Does not match the regex pattern ^\$.*$

pages.page17[2].timer.duration Failed to match at least one schema


I attempted a second tease, but right away it has a validation error because it keeps telling me that I must have a page called START, which I have.

Any help would be appreciated.

I actually redid this tease in the Classic Editor but I would like to know how to use this so that I can create EOS teases in future

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

Re: Your first webtease? Let us help you out!

Post by indyc »

I'm guessing you are getting an image error because you probably have a blank image on "Page2". Try deleting that if you can find one and see what it says.

For the timer one, I had this same issue. It is basically saying that you have a timer on "Page17" that does not have a unit of measurement. For some reason when you preview something with a timer of "3" it will assume that it is 3 seconds in the previewer. However, when you go to publish it it needs a unit like "3s" for 3 seconds.

Try those two fixes and try it again. I had very similar errors when I first started so hopefully you can get through them. Feel free to reach out with any more questions!

EDIT: (It's possible that needing a page called start needs to be all lower case, not sure if that is your other issue)
User avatar
indyc
Explorer At Heart
Explorer At Heart
Posts: 530
Joined: Sun Mar 28, 2021 10:03 pm
Contact:

Re: Your first webtease? Let us help you out!

Post by indyc »

HitThemHarder wrote: Thu Jun 05, 2025 10:45 am How do I create a dice roll?
And, can I contain one within a notification?

I'm creating a page where the task lasts for 20 mins
The user can take a break whenever they like but must roll a 6 to resume
Rolling 1-5 will result in a punishment and re-roll

Can anyone help me?
I was hoping someone else could give you a better answer than the inefficient nonsense that I would. What comes to mind is that Math.random() will return a value between 0 and 1. (so it could return like .325154848 or something)

https://rocambille.github.io/en/2019/07 ... avascript/ this link gives instructions but they would have been too hard for me to follow when I was starting out.

So if you want something "simpiler" but less efficient. You could put
dice=0;
in the initiation script.
when you want to roll the dice I would suggest making an evaluation that says:
dice=Math.round(Math.random()*5)+1
Rounding to make it a round integer, the *5 and the +1 to make it return 1,2,3,4,5, or 6 randomly.

Then you can have lots of if statements like If:
dice==6
Do whatever you were wanting to do.

Someone feel free to rip apart the suggestion haha, I'm always a bit bad with these things but I get by with something good enough that I can understand.
User avatar
666
Explorer At Heart
Explorer At Heart
Posts: 211
Joined: Sat Oct 03, 2009 9:12 am

Re: Your first webtease? Let us help you out!

Post by 666 »

indyc wrote: Thu Jun 19, 2025 4:10 pm I'm guessing you are getting an image error because you probably have a blank image on "Page2". Try deleting that if you can find one and see what it says.

For the timer one, I had this same issue. It is basically saying that you have a timer on "Page17" that does not have a unit of measurement. For some reason when you preview something with a timer of "3" it will assume that it is 3 seconds in the previewer. However, when you go to publish it it needs a unit like "3s" for 3 seconds.

Try those two fixes and try it again. I had very similar errors when I first started so hopefully you can get through them. Feel free to reach out with any more questions!

EDIT: (It's possible that needing a page called start needs to be all lower case, not sure if that is your other issue)
Thanks, I'll have a look and come back to you.
User avatar
666
Explorer At Heart
Explorer At Heart
Posts: 211
Joined: Sat Oct 03, 2009 9:12 am

Re: Your first webtease? Let us help you out!

Post by 666 »

Well I had already deleted the page 2 to see if that would clear the errors... kind of odd that the errors still showed up even once the page was deleted I think. But there was definitely a picture there before. I created a new page2 and added an image but the errors are still just the same... it's like the validation errors have nothing to do with what's actually there.

As for the timer that does have a value and again even if I delete the timer from the page I still get the error...
User avatar
indyc
Explorer At Heart
Explorer At Heart
Posts: 530
Joined: Sun Mar 28, 2021 10:03 pm
Contact:

Re: Your first webtease? Let us help you out!

Post by indyc »

Perhaps some errors are pointing to the wrong thing (I remember having trouble with that too), I would suggest checking all of your timers and pictures. Also, make sure it is actually saving when you make changes in the upper right of the editor. Good luck!
User avatar
666
Explorer At Heart
Explorer At Heart
Posts: 211
Joined: Sat Oct 03, 2009 9:12 am

Re: Your first webtease? Let us help you out!

Post by 666 »

All of the timers seem to be in the correct format and all pages have a picture. I just tried deleting all the pages, just leaving a blank 'Start' page and the validiation errors are still there.
Lamei
Explorer
Explorer
Posts: 99
Joined: Wed Jan 30, 2019 8:23 pm

Re: Your first webtease? Let us help you out!

Post by Lamei »

HitThemHarder wrote: Thu Jun 05, 2025 10:45 am How do I create a dice roll?
And, can I contain one within a notification?

I'm creating a page where the task lasts for 20 mins
The user can take a break whenever they like but must roll a 6 to resume
Rolling 1-5 will result in a punishment and re-roll

Can anyone help me?
Hey. A simple dice roll is easy to implement. To create a random number and store it in a variable called 'die', create an 'Eval' action and type following:

var die = Math.floor((Math.random() * 6) +1)

Create a 'Say' action to display the result stored (use the Eval tag to display the number you have generated)

You have rolled a [die]

To implement a punishment or a break create an 'IF' action

IF die < 6 create an action to punish the user and create a 'Goto' action to return to the top of the same page and spin again.

ELSE continue down the page to other actions

Hope this helps. If you would like to see how other users solve problems. Start a new webstease, change the web browser URL from your tease's ID number to any another teases's ID number to view their code (you can save it also). My tease called Snakes and Lingerie" is simple and easy to understand as I'm not a coding expert. The ID for that tease is 40513.

Lamei
Post Reply