Here are EOS tutorials

All about the past, current and future webteases and the art of webteasing in general.
---
tt85
Explorer
Explorer
Posts: 13
Joined: Sat Jun 27, 2020 2:58 pm

Photo Gallery Upload Limit or Bug?

Post by tt85 »

Hello dear community,

after a long while working on a tease I encountered a problem,
of not being able to add more photos to a gallery.
The function itself looks fine. In the upper right corner it seems like the tease is not updating/saving the changes
(only in Gallery section - rest works fine).
The popup in the lower left corner says: uploading... ->hashing file -> querying file hash -> Ready.
But unfortunately no files are being added to the galleries (tried different browsers and notebook + tablet)

I edited the tease in json and also renamed the tease (no errors on upload).
The tease hasn´t been published so far (shared only).

My main question is:
1) Is there a way to tweak the tease, so it allows to upload photos to a gallery again?

Side questions:
2a) Is there a limit to the amount of distinct galleries?
2b) Is there a limit to the amount of photos per gallery?
3) What is a healthy amount of photos in a gallery, if I want to use a random photos from the selected gallery? (no preload of photos - healthy distribution)
4) Are galleries from other teases directly accesible, if I have the ID of the gallery?
5) Are galleries accesible by other users?

I´m sorry if a similiar post with identical topic, already exists, but I haven´t found it so far.

Thank You very much for Your help.
tt85
User avatar
Shattered
Experimentor
Experimentor
Posts: 1391
Joined: Fri Jan 11, 2013 6:41 pm
I am a: Switch
Location: United Kingdom

Re: Photo Gallery Upload Limit or Bug?

Post by Shattered »

tt85 wrote: Tue Aug 12, 2025 3:56 pm Hello dear community,

after a long while working on a tease I encountered a problem,
of not being able to add more photos to a gallery.
The function itself looks fine. In the upper right corner it seems like the tease is not updating/saving the changes
(only in Gallery section - rest works fine).
The popup in the lower left corner says: uploading... ->hashing file -> querying file hash -> Ready.
But unfortunately no files are being added to the galleries (tried different browsers and notebook + tablet)

I edited the tease in json and also renamed the tease (no errors on upload).
The tease hasn´t been published so far (shared only).

My main question is:
1) Is there a way to tweak the tease, so it allows to upload photos to a gallery again?

Side questions:
2a) Is there a limit to the amount of distinct galleries?
2b) Is there a limit to the amount of photos per gallery?
3) What is a healthy amount of photos in a gallery, if I want to use a random photos from the selected gallery? (no preload of photos - healthy distribution)
4) Are galleries from other teases directly accesible, if I have the ID of the gallery?
5) Are galleries accesible by other users?

I´m sorry if a similiar post with identical topic, already exists, but I haven´t found it so far.

Thank You very much for Your help.
tt85
Temporary bug preventing uploads, hopefully.
tt85
Explorer
Explorer
Posts: 13
Joined: Sat Jun 27, 2020 2:58 pm

Re: Photo Gallery Upload Limit or Bug?

Post by tt85 »

Shattered wrote: Tue Aug 12, 2025 4:17 pm
tt85 wrote: Tue Aug 12, 2025 3:56 pm Hello dear community,

after a long while working on a tease I encountered a problem,
of not being able to add more photos to a gallery.
The function itself looks fine. In the upper right corner it seems like the tease is not updating/saving the changes
(only in Gallery section - rest works fine).
The popup in the lower left corner says: uploading... ->hashing file -> querying file hash -> Ready.
But unfortunately no files are being added to the galleries (tried different browsers and notebook + tablet)

I edited the tease in json and also renamed the tease (no errors on upload).
The tease hasn´t been published so far (shared only).

My main question is:
1) Is there a way to tweak the tease, so it allows to upload photos to a gallery again?

Side questions:
2a) Is there a limit to the amount of distinct galleries?
2b) Is there a limit to the amount of photos per gallery?
3) What is a healthy amount of photos in a gallery, if I want to use a random photos from the selected gallery? (no preload of photos - healthy distribution)
4) Are galleries from other teases directly accesible, if I have the ID of the gallery?
5) Are galleries accesible by other users?

I´m sorry if a similiar post with identical topic, already exists, but I haven´t found it so far.

Thank You very much for Your help.
tt85
Temporary bug preventing uploads, hopefully.
Thank You :)

Is anyone else experiencing the same issue?
User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
Joined: Sat Jul 07, 2012 10:08 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch
Dom/me(s): No domme
Sub/Slave(s): No sub
Location: British Columbia, Canada

Re: Photo Gallery Upload Limit or Bug?

Post by PlayfulGuy »

tt85 wrote: Wed Aug 13, 2025 5:39 pm
Shattered wrote: Tue Aug 12, 2025 4:17 pm
tt85 wrote: Tue Aug 12, 2025 3:56 pm Hello dear community,

after a long while working on a tease I encountered a problem,
of not being able to add more photos to a gallery.
The function itself looks fine. In the upper right corner it seems like the tease is not updating/saving the changes
(only in Gallery section - rest works fine).
The popup in the lower left corner says: uploading... ->hashing file -> querying file hash -> Ready.
But unfortunately no files are being added to the galleries (tried different browsers and notebook + tablet)

I edited the tease in json and also renamed the tease (no errors on upload).
The tease hasn´t been published so far (shared only).

My main question is:
1) Is there a way to tweak the tease, so it allows to upload photos to a gallery again?

Side questions:
2a) Is there a limit to the amount of distinct galleries?
2b) Is there a limit to the amount of photos per gallery?
3) What is a healthy amount of photos in a gallery, if I want to use a random photos from the selected gallery? (no preload of photos - healthy distribution)
4) Are galleries from other teases directly accesible, if I have the ID of the gallery?
5) Are galleries accesible by other users?

I´m sorry if a similiar post with identical topic, already exists, but I haven´t found it so far.

Thank You very much for Your help.
tt85
Temporary bug preventing uploads, hopefully.
Thank You :)

Is anyone else experiencing the same issue?
Yes, there are a few threads talking about it. Pretty much everyone is having the same problem.

PG
User avatar
Achab1851
Explorer At Heart
Explorer At Heart
Posts: 175
Joined: Tue Oct 23, 2018 6:30 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: Here are EOS tutorials

Post by Achab1851 »

Hello, everyone. I'm having the same problem. Is there any news on this? :-/
User avatar
eXquisite
Explorer
Explorer
Posts: 31
Joined: Sun Feb 06, 2022 1:32 pm
Sexual Orientation: Bisexual/Bi-Curious

Re: Here are EOS tutorials

Post by eXquisite »

NocturneDesires wrote: Mon Oct 06, 2025 4:53 pm Hey everyone,

I’ve been going through the API reference for the Storage System and wanted to ask for a bit of guidance.

Let’s say I have a variable like score, and I also want to create a way to save checkpoints between phases, for example, when a user finishes Phase 1 or Phase 2, they can come back later and continue from that point.

How would I set that up properly using teaseStorage?
I understand the basic example from the docs (getItem / setItem), but I’m not entirely sure how to structure it if I want to handle both a score variable and an array of checkpoints (or even just a simple “currentPhase” tracker).

If anyone has a quick example or snippet showing how this could work, I’d really appreciate it!
I did it like this in the init - it reads your last saved game and if it can't read variable because it's your first game it sets the score and phase to their default value:

Code: Select all

var score = Number(teaseStorage.getItem("score"));
var phase = Number(teaseStorage.getItem("phase"));

if (typeof score === 'undefined') {
    var score = 0;
    var phase = 1;

    teaseStorage.setItem("score", score);
    teaseStorage.setItem("phase", phase);
}
Afterwards, whenever you want the tease to save progress you just use for example when you start phase 5 or want to increase score by 500:

Code: Select all

score = score + 500;
phase = 5;

teaseStorage.setItem("score", score);
teaseStorage.setItem("phase", phase);
Afterward just use 'if' node with statement 'phase === 5' that leads to correct page.

You can also hide buttons (for selecting chapters) if the phase is lower than X, there is a switch under 'Visible' that you can use and put your custom eval.
User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
Joined: Sat Jul 07, 2012 10:08 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch
Dom/me(s): No domme
Sub/Slave(s): No sub
Location: British Columbia, Canada

Re: Here are EOS tutorials

Post by PlayfulGuy »

NocturneDesires wrote: Mon Oct 06, 2025 9:01 pm
eXquisite wrote: Mon Oct 06, 2025 6:44 pm

Code: Select all

var score = Number(teaseStorage.getItem("score"));
var phase = Number(teaseStorage.getItem("phase"));

if (typeof score === 'undefined') {
    var score = 0;
    var phase = 1;

    teaseStorage.setItem("score", score);
    teaseStorage.setItem("phase", phase);
}

Code: Select all

score = score + 500;
phase = 5;

teaseStorage.setItem("score", score);
teaseStorage.setItem("phase", phase);
Thank you so much!💋
For what it's worth, in the init code the above can be abbreviated as follows:

Code: Select all

var score = teaseStorage.getItem("score") || 0;
teaseStorage.setItem("score", score);
var phase = teaseStorage.getItem("phase") || 1;
teaseStorage.setItem("phase", phase);
The first line is equivalent to
if ( teaseStorage.getItem("score") == undefined )
var score = 0;
else
var score = teaseStorage.getItem("score")
but much shorter, and likewise for phase.

PG
User avatar
eXquisite
Explorer
Explorer
Posts: 31
Joined: Sun Feb 06, 2022 1:32 pm
Sexual Orientation: Bisexual/Bi-Curious

Re: Here are EOS tutorials

Post by eXquisite »

NocturneDesires wrote: Wed Oct 08, 2025 2:13 pm Quick question though, how can I actually test if the storage system is working correctly? Like, to confirm that user variables (for example, score and phase) are being saved and then loaded successfully when they return?
Preview the script or use the share link and play the script yourself. You can find both left side in the editor.
undeniable_denial
Explorer At Heart
Explorer At Heart
Posts: 109
Joined: Sat Aug 24, 2019 11:42 am
Gender: Male
Location: Germany

Re: Here are EOS tutorials

Post by undeniable_denial »

NocturneDesires wrote: Wed Oct 08, 2025 2:13 pm Quick question though, how can I actually test if the storage system is working correctly? Like, to confirm that user variables (for example, score and phase) are being saved and then loaded successfully when they return?
Afaik, you can't really check during the tease. You have to reload it, to see if it worked.

Iirc, the data is stored both locally in your browser and in your user account. That means if you use incognito mode without loging in, it will be lost when you close your browser.

Someone correct me if I'm wrong. It's been a while.
User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
Joined: Sat Jul 07, 2012 10:08 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch
Dom/me(s): No domme
Sub/Slave(s): No sub
Location: British Columbia, Canada

Re: Here are EOS tutorials

Post by PlayfulGuy »

NocturneDesires wrote: Wed Oct 08, 2025 2:13 pm Quick question though, how can I actually test if the storage system is working correctly? Like, to confirm that user variables (for example, score and phase) are being saved and then loaded successfully when they return?
Here's a quick demo tease I did to illustrate. TeaseStorage Demo
I've used the "Share" option on the left in the EOS editor to get that link.

You can download the code of the tease using this link, so you can examine it, or import it into a tease in your account to play around with.

The variables for score and phase are initialized in the init script.
On the settings page you can turn Debug on or off, and increase the score and phase values.
The settings page also illustrates using an If action to display different text based on the setting of Debug.
When Debug is on (true) it shows the current values of the variables.

When you click "Start Game" the newGame page shows your current score and phase as well.

Try it out and see what happens.

As far as I recall undeniable_denial is correct about how data is saved, and you must be logged in for the values to save properly, or NOT use an incognito window. I'm not 100% sure on that and haven't tested it, but you can test it out with the demo I made and report back to us, and then we'll all be smarter :-D

PG
Blink_twice
Explorer
Explorer
Posts: 11
Joined: Sat Nov 15, 2025 10:13 pm

Re: Here are EOS tutorials

Post by Blink_twice »

Nevermind.

All sorted.
Last edited by Blink_twice on Sun Dec 07, 2025 9:53 pm, edited 1 time in total.
jsklos
Explorer
Explorer
Posts: 11
Joined: Tue Jul 08, 2025 4:18 am

Might be a dumb question

Post by jsklos »

Hey all, I'm trying to make my first tease and trying to add a metronome to it, but the audio files I'm adding simply aren't playing at all. Like, not even when I try to preview them in the Files tab.

I'm not really educated in coding, so I've been piecing things together bit by bit with a lot of if-then's and other things I've tried to implement (changing which images are randomly selected based on variables) have worked well, but when I try to play audio using similar methods, it doesn't do anything.

Does the preview not play sounds by default? Is there a filesize limit I'm not aware of? Has anyone had a similar issue? I tried searching the forums here for anything like what I'm experiencing and came up empty-handed, so I'm hoping someone has some sort of idea as to what's going on.
User avatar
Shattered
Experimentor
Experimentor
Posts: 1391
Joined: Fri Jan 11, 2013 6:41 pm
I am a: Switch
Location: United Kingdom

Re: Might be a dumb question

Post by Shattered »

jsklos wrote: Fri Dec 05, 2025 5:40 pm Hey all, I'm trying to make my first tease and trying to add a metronome to it, but the audio files I'm adding simply aren't playing at all. Like, not even when I try to preview them in the Files tab.

I'm not really educated in coding, so I've been piecing things together bit by bit with a lot of if-then's and other things I've tried to implement (changing which images are randomly selected based on variables) have worked well, but when I try to play audio using similar methods, it doesn't do anything.

Does the preview not play sounds by default? Is there a filesize limit I'm not aware of? Has anyone had a similar issue? I tried searching the forums here for anything like what I'm experiencing and came up empty-handed, so I'm hoping someone has some sort of idea as to what's going on.
Maybe a stuipid answer, but do you have the audio module turned on under the options tab?
jsklos
Explorer
Explorer
Posts: 11
Joined: Tue Jul 08, 2025 4:18 am

Re: Might be a dumb question

Post by jsklos »

Shattered wrote: Fri Dec 05, 2025 11:29 pm Maybe a stuipid answer, but do you have the audio module turned on under the options tab?
Yeah, I just double checked and I've got it on.
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: Might be a dumb question

Post by phönix »

jsklos wrote: Fri Dec 05, 2025 5:40 pm Hey all, I'm trying to make my first tease and trying to add a metronome to it, but the audio files I'm adding simply aren't playing at all. Like, not even when I try to preview them in the Files tab.

I'm not really educated in coding, so I've been piecing things together bit by bit with a lot of if-then's and other things I've tried to implement (changing which images are randomly selected based on variables) have worked well, but when I try to play audio using similar methods, it doesn't do anything.

Does the preview not play sounds by default? Is there a filesize limit I'm not aware of? Has anyone had a similar issue? I tried searching the forums here for anything like what I'm experiencing and came up empty-handed, so I'm hoping someone has some sort of idea as to what's going on.
Probably the same issue (and solution) as here:
viewtopic.php?p=382022#p382022
Post Reply