Page 17 of 27
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Thu Jul 04, 2019 3:57 pm
by xman911
Roblsforbobls wrote: Sat Jun 22, 2019 12:50 am
Ok two things, I have a suggestion and I think I've found a bug.
Here's the suggestion: it would be great to be able to use eval tags in notification titles. For example, this would allow a notification to display the number of points a player has throughout the game and change that number from page to page. Currently the only way to keep the player updated on their points (to my knowledge) is to have either a notification button to display the points when pushed or to tell the player with a Say action on every page.
Here's the bug:
I use the Say action and insert an eval tag in it:
When "apples" is equal to 1, this code yields 11 instead of 2. However when I do
it gives 0. Furthermore, you can get around the issue by doing
to get the expected value of 2. It follows the same behavior when trying to add two variables as well.
You should only use "apples" without + or -, if you want to display the actual numerical value of how many apples you have.
If you want to add more apples you should use Eval and write proper counter. Here is an example if I want to ad 1 apple to my apples.
or shorter version of the above.
even shorter
And if I want to add 10 apples.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Thu Jul 04, 2019 9:09 pm
by Roblsforbobls
xman911 wrote: Thu Jul 04, 2019 1:48 pm
Isn't it simpler to just make a button that makes for example "a = 0" that will reset the value of variable "a" to 0. Of course if the default number for said variable is a 100... then you put in code "a = 100" , so it gets its starting value. Basically copy your "Initializaton" values, to Re-initialize the whole thing with a button. Of course for this button to work without going anywhere it should loop to the same page. I tested it with a single variable... after clicking on the button my variable went from number 26 to 0 and then started to "accumulate" again, but it should work for any number of variables.
I tried to replicate what you did, and made a button that set apple = 0. It did not work because I am using tease storage (meaning the tease will keep that information stored between sessions), not normal variables.
To be clear, if it was this:
initial var: apple = 0
eval: apple++
Say: apple = <apple>,
then a button with eval: apple = 0
would work.
However, it does not work using the code required for tease storage:
initial var: apple = 0
eval: var apple = teaseStorage.getItem("i") ||0
apple++
teaseStorage.setItem("i", apple)
I think every time you use storage it is taking the value that is stored in "i", not what is stored in apple. My understanding is that it only uses apple to interface with "i"?
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Thu Jul 04, 2019 10:02 pm
by Lamei
RemiHiyama wrote: Thu Jul 04, 2019 8:45 am
I've seen that message too. It's confusing because my script still seems to function, so I don't know what the issue is.
Thanks for the feedback. I guess i'll keep writing the tease and if it wont run, ill have to split the tease into two parts.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Thu Jul 04, 2019 10:10 pm
by Roblsforbobls
You mentioned some features that I think would be awesome to have:
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Allow png and gif images.
So much yes!
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Page Labels - Basically an "Action" on a page that doesn't do anything other than being a placeholder with a unique name. Then you can use pages.goto('pagename:label') to jump to that label within a page.
I agree, the only other way to do a similar thing would be to duplicate the page and remove the actions you don't want to happen. It would be easier to be able to just start at a certain point on the page (although it might be difficult to do if the image only appears when you start at the beginning of the page).
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Image Action - Allow eval for image file name
This might be helpful provided that the images have identifiable/unique names
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Image Action - Allow clearing displayed image. I want a help page that can be opened up any time, but want to clear the background to just show text. Now I could use a transparent png, but png images aren't allowed.
I think you're not the only one who wants this. If I have an about page without an image, it would be nice to be able to clear the image. Currently the previous image is used, and this has some utility, but should not be the only option.
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Image Action - Gallery Image - Allow using wildcard for file name
If I am understanding you correctly, then you want to be able to select an image at random? This can be done already. If you want to select a random image from a group of images (rather than from all of the images) then you can put that group into its own gallery.
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Input Field - When running a tease, auto set focus on the field so you can start typing immediately. Right now you have to click the mouse within the field to start typing
A quality of life improvement, I like it.
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Button/Notification Labels - Allow eval within labels
I've asked for this in a previous comment too. This feature would allow notifications to display points; right now the only way to do so is through the Say action.
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Allow multiple images on the screen at the same time
I could see this being useful in specific situations - an RPG tease could use multiple images to display multiple enemies.
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Image Gallery - Allow users to have their own personal galleries, and a tease can pull images from it (maybe based on tags or some sort of grouping capability)
I'm not 100% sure what you mean by this, but I would love the ability to import a gallery from one tease to another so I don't have to upload the same pictures again.
I've actually seen this implemented in "Futanari Mistress". The author probably downloaded the audio of text to speech and uploaded the audio separately. Not as easy as Web Speech API support, but a work-around for anyone who wants this feature right now.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Thu Jul 04, 2019 10:20 pm
by Roblsforbobls
xman911 wrote: Thu Jul 04, 2019 3:57 pm
You should only use "apples" without + or -, if you want to display the actual numerical value of how many apples you have.
If you want to add more apples you should use Eval and write proper counter. Here is an example if I want to ad 1 apple to my apples.
I think the original issue was that I used quotes around the variable. Sometimes in a tease though you want the player to do <variable - 10> strokes, for example. Changing the variable itself would be a round-about way of making it work, because then I would have to return the variable to its original value right after the Say action. Thankfully, I am no longer having this issue, but thank you for the advice!
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Thu Jul 04, 2019 11:14 pm
by Lamei
xman911 wrote: Thu Jul 04, 2019 2:44 pm
Lamei wrote: Thu Jul 04, 2019 8:06 am
I estimate that I will need approximately 150 variables for the new tease. If someone could advise that would be great as I can't continue making the current tease. Thanks
Why would you need... 150... variables... that's just mind boggling number... are you going to make an intergalactic spaceship... and not a milovana tease. Are you sure... you need that many...
I don't think anyone needs that many variables. Are you putting a variable on every page... why do you need so many?! Even 10 variables is probably overkill for most things.
OK... maybe you need them... you can initialize more than one variable in one line by using separator ";"
here is an example.
Code: Select all
var money = 0
var time = 0
var x = 0
Would become...
Code: Select all
var money = 0; var time = 0; var x = 0
But I still can't imagine why you would use so many... why would you track a 150... variables... what for... does every girl have her own variable. It would be interesting 150 different girls with their own variables...
P.S. Now I looked at your Snakes and Lingerie tease... and still can't comprehend for what you would initiate this many variables.

I know 150 sounds crazy, Snakes and Lingerie used 28 variables. I can't give away too much but imagine getting lost in a maze tease that never plays the same way twice

Thanks for your help, ill try putting multiple vars on the same line.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Fri Jul 05, 2019 2:47 pm
by astonia
Lamei wrote: Thu Jul 04, 2019 11:14 pm
xman911 wrote: Thu Jul 04, 2019 2:44 pm
Lamei wrote: Thu Jul 04, 2019 8:06 am
I estimate that I will need approximately 150 variables for the new tease. If someone could advise that would be great as I can't continue making the current tease. Thanks
Why would you need... 150... variables... that's just mind boggling number... are you going to make an intergalactic spaceship... and not a milovana tease. Are you sure... you need that many...
I don't think anyone needs that many variables. Are you putting a variable on every page... why do you need so many?! Even 10 variables is probably overkill for most things.
OK... maybe you need them... you can initialize more than one variable in one line by using separator ";"
here is an example.
Code: Select all
var money = 0
var time = 0
var x = 0
Would become...
Code: Select all
var money = 0; var time = 0; var x = 0
But I still can't imagine why you would use so many... why would you track a 150... variables... what for... does every girl have her own variable. It would be interesting 150 different girls with their own variables...
P.S. Now I looked at your Snakes and Lingerie tease... and still can't comprehend for what you would initiate this many variables.

I know 150 sounds crazy, Snakes and Lingerie used 28 variables. I can't give away too much but imagine getting lost in a maze tease that never plays the same way twice

Thanks for your help, ill try putting multiple vars on the same line.
I have a script running fine with over 600 lines, so I don't think it has anything to do with the number of lines. Most likely there's an error somewhere in the script or you're using a reserved word for a variable. If the problem is saving these variables in teaseStorage you can put them all in a single object and save just that one object with all your variables. I'm not sure if there's a length limit for each teaseStorage variable or not.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Fri Jul 05, 2019 3:03 pm
by astonia
Roblsforbobls wrote: Thu Jul 04, 2019 10:10 pm
astonia wrote: Sun Jun 23, 2019 8:51 pm
- Image Gallery - Allow users to have their own personal galleries, and a tease can pull images from it (maybe based on tags or some sort of grouping capability)
I'm not 100% sure what you mean by this, but I would love the ability to import a gallery from one tease to another so I don't have to upload the same pictures again.
Users would create their own personal galleries and give them tags like "mistress". Then when the tease is running there would be a way show an image from the user's gallery that is tagged "mistress". Then the user can have a consistent experience across teases with images to their own liking. There should be a fallback in the tease of course if the user doesn't have images of that type.
Thinking about this a little more, basically every tease now is self contained, and I think it would be great to have ways to share the content between teases as you can see with several items on my wish list to that effect.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 12:03 am
by Lamei
astonia wrote: Fri Jul 05, 2019 2:47 pm
I have a script running fine with over 600 lines, so I don't think it has anything to do with the number of lines. Most likely there's an error somewhere in the script or you're using a reserved word for a variable. If the problem is saving these variables in teaseStorage you can put them all in a single object and save just that one object with all your variables. I'm not sure if there's a length limit for each teaseStorage variable or not.
Thats good to know that you have 600 lines running normally. I'll recheck the variables to see if there are any reseved words as you suggest. So far i've put multiple variables on one line to reduce the amount of total lines to around 80 but the error is still present. Thanks for your help.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 1:37 am
by RemiHiyama
xman911 wrote: Thu Jul 04, 2019 3:12 pmNo it evaluates every time, it can evaluate more than one time in a single page (if you want that). Maybe you somehow botched the thing and it's just stuck.
I seem to be good at botching the thing then.
I made a
test tease to demonstrate what I'm trying to do and the results I'm getting. In multiple browsers, whenever I press "Do the thing", the first option in the choice shown will say "pizza" (the initial state of the variable), even if the contents of the variable have changed to something else.
astonia wrote: Fri Jul 05, 2019 2:47 pmI have a script running fine with over 600 lines, so I don't think it has anything to do with the number of lines. Most likely there's an error somewhere in the script or you're using a reserved word for a variable.
I can't figure it out. I'm at about 200 lines, and have this error message just sitting there. I don't get any error messages in console when previewing, which seems like it lets out the reserved word issue, and it disappears if I comment out any four lines of code, moves around if I add or remove stuff otherwise. Tried a couple online js checkers, and none of them reported errors.
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 9:32 am
by xman911
RemiHiyama wrote: Sun Jul 07, 2019 1:37 am
xman911 wrote: Thu Jul 04, 2019 3:12 pmNo it evaluates every time, it can evaluate more than one time in a single page (if you want that). Maybe you somehow botched the thing and it's just stuck.
I seem to be good at botching the thing then.
I made a
test tease to demonstrate what I'm trying to do and the results I'm getting. In multiple browsers, whenever I press "Do the thing", the first option in the choice shown will say "pizza" (the initial state of the variable), even if the contents of the variable have changed to something else.
What does the button of "Do the thing" does?! Maybe you should also show what code and where, by showing some screenshots.
Buttons "set foo to pancakes" and "set foo to waffles" are working OK, when I click them the variable changes to pancakes or waffles and stays the same. Do you want to change the variable back to pizza when click "Do the thing"?! For me your tease seems to be working ok... and buttons pizza and cereal just don't do anything. Or maybe you want to reset text variable with 0 ?! No you can't do that, to "reset" a text variable, you should just write up the said variable instead of 0... so if your initial variable is pizza... you should write this...
If your initial variable is "food", you should write this
Also to initialize properly a text variable you should initialize it like this.
Here is a working as intended version of your example. As you see everything works. When you click "Do the thing" (it resets back to "pizza").
https://milovana.com/webteases/showteas ... e27f313cd4
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 10:15 am
by GameMaker
Is there any way to do parallel actions?
I mean, for example, the page has a timer and a choice button.
When the timer starts, a button appears. If I press the button, I will go to another page, but if the timer expires before I press the button, the actions will continue as they should.
I need something like this. Thanks!
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 10:40 am
by Shattered
GameMaker wrote: Sun Jul 07, 2019 10:15 am
Is there any way to do
parallel actions?
I mean, for example, the page has a timer and a choice button.
When the timer starts, a button appears. If I press the button, I will go to another page, but if the timer expires before I press the button, the actions will continue as they should.
I need something like this. Thanks!
Asynchronous timers or Notifications depending on how you want to impliment it
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 2:18 pm
by GameMaker
Shattered wrote: Sun Jul 07, 2019 10:40 am
GameMaker wrote: Sun Jul 07, 2019 10:15 am
Is there any way to do
parallel actions?
I mean, for example, the page has a timer and a choice button.
When the timer starts, a button appears. If I press the button, I will go to another page, but if the timer expires before I press the button, the actions will continue as they should.
I need something like this. Thanks!
Asynchronous timers or Notifications depending on how you want to impliment it
I understood! I can use the button in notifications. Thanks!
Re: Eos Editor Preview - Milovana's new interactive webtease editor
Posted: Sun Jul 07, 2019 3:22 pm
by RemiHiyama
xman911 wrote: Sun Jul 07, 2019 9:32 am What does the button of "Do the thing" does?! Maybe you should also show what code and where, by showing some screenshots.
Just display the choice so it's possible to see if the eval is working or not. Here's the contents of the label for that first choice.
If it was doing what I wanted it to, it should only show "pizza" on the first button if you push "Do the thing" first. Otherwise it should say "pancakes" or "waffles", depending on the current value of foo, and when foo changes the button text should change along with it.
But it doesn't. Pressing 'Set foo to "pancakes"' does what it says it's supposed to (as verified by the lines saying the current value of foo), but when pushing "Do the thing", the button still shows the value that was set in the initialization script.
Full code:
Code: Select all
{
"pages": {
"start": [
{
"say": {
"label": "<p>foo = <eval>foo</eval></p>"
}
},
{
"choice": {
"options": [
{
"label": "Set foo to \"pancakes\"",
"commands": [
{
"goto": {
"target": "setpancakes"
}
}
]
},
{
"label": "Set foo to \"waffles\"",
"commands": [
{
"goto": {
"target": "setwaffles"
}
}
]
},
{
"label": "Do the thing",
"commands": [
{
"goto": {
"target": "thechoice"
}
}
]
}
]
}
}
],
"setpancakes": [
{
"eval": {
"script": "foo = \"pancakes\""
}
},
{
"goto": {
"target": "start"
}
}
],
"setwaffles": [
{
"eval": {
"script": "foo = \"waffles\""
}
},
{
"goto": {
"target": "start"
}
}
],
"thechoice": [
{
"say": {
"label": "<p>foo = <eval>foo</eval></p>"
}
},
{
"choice": {
"options": [
{
"label": "<eval>foo</eval>",
"commands": [
{
"goto": {
"target": "start"
}
}
]
},
{
"label": "cereal",
"commands": [
{
"goto": {
"target": "start"
}
}
]
}
]
}
}
]
},
"modules": {},
"files": {},
"galleries": {},
"editor": {
"recentImages": []
},
"init": "var foo = \"pizza\";"
}