[GuideMe] Tease Downloader with EOS Support

Webteases are great, but what if you're in the mood for a slightly more immersive experience? Chat about Tease AI and other offline tease software.

Moderator: 1885

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

Antivirus Warnings Resolved

Post by PlayfulGuy »

New Package With Antivurus Issues Resolved

I have uploaded a repackaged copy of version 0.92 of the downloader that resolves the issues with Windows Defender and other AV packages flagging it as a virus or trojan. The links in the first post of this thread have been updated.

Note that this version has several known issues that I am still working on. It's taking longer than anticipated to get the next release ready so I thought I would go ahead and update the current release while I finish resolving those issues.

I ran the file through VirusTotal.com before uploading and this was the result:
VirusTotal 20210626.jpg
VirusTotal 20210626.jpg (174.49 KiB) Viewed 3286 times
Have Fun!

PG
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

Trusfrated wrote: Thu Jun 24, 2021 6:26 am I have to say, it's really been nice to be able to view EOS teases in GuideMe. Thank you!
Thanks! And yeah, it has been awesome! :-D So many good new teases with EOS.

Trusfrated wrote: Thu Jun 24, 2021 6:26 am Here's a couple I've had a trouble with:

Investigation at Lust House just shows a black screen after the first few pages.

Code: Select all

ERROR Jscript -  FileRunScript ReferenceError: "array_randomizer" is not defined. (globalScript#1519)
Also Parseerror saying Message: The string "--" is not permitted within comments.

(This tease is will not show up in the GuideMe Library even after I put an image in its root folder, so I assume there is something it doesn't like about the XML?)
On the EOS tab, in the "Messages For Specific Conditions" section, set the option for "Potential dead end not marked as end" to Ignore.

On the XML tab, set the option for Empty Page handling to "Drop"

These two are what's causing the parse error with the string "--" is not permitted within comments, and probably the gallery issue too.

For some reason a number of authors like using page names like "--page27". If that page generates an error or warning the resulting comment in the xml contains that invalid string. Unfortunately that's an XML thing I can't control, but I'll see about sanitizing the logged errors/warnings in the next release.

The error about array_randomizer is because the tease defines a function in an eval on a page, followed by code that calls that function. The downloader doesn't handle this very well. It ended up moving the entire thing to the global javascript as function page040_PunishmentRoom_Lockers_array_randomizer() and mangling the code.

Find that function in the XML file and replace it with these two functions:

Code: Select all

      function array_randomizer(a, b) {
          return .5 - Math.random()
      }
      
      function page040_PunishmentRoom_Lockers_array_randomizer(a, b) {
        if ((teaseStorage.getItem('opened_punishmentroom_lockers') === undefined) || (teaseStorage.getItem('opened_punishmentroom_lockers') == -1)){
            teaseStorage.setItem('opened_punishmentroom_lockers', 0)
            teaseStorage.setItem('punishmentroom_lockers_content', ["nothing", "speculum", "ruby"].sort(array_randomizer))
        }
      }

Let me know how that goes. This is only the second time I've seen something like that so I don't know if I'll try fixing that in the downloader, or just treat it like a one-off. Or two-off I guess :-) .

By the way If you get it working and are willing to upload it somewhere to share, I want to use the second post of this thread as a repository for converted teases. If you upload it somewhere send me a link and I'll post it. I keep meaning to get around to doing that with several teases I've converted in the past but too many other things keep coming up.
Trusfrated wrote: Thu Jun 24, 2021 6:26 am In Miss Evans, any time a sound is to be played, I get a little popup window for VLC that has the "file not found" pink question mark in it. (The files seem to be where they're supposed to be, but they don't play.) I have sounds playing fine in other EOS teases, and don't normally see a popup when sounds are played.
I've seen that before (might even have been in that tease) and it means the audio files did not download properly. The only solution I had was to replace them with similar audio files that worked, or convert them to metronomes (see below). The last time I encountered the issue I couldn't figure out why the download failed. I will add this to the list of things to investigate in the future but at this point I've only encountered it twice, and like I said the last time may even have been with the same tease.

Convert them to Metronome
You can temporarily (or permanently) add entries for these files to "audio_to_metronome.txt" and turn on the option to convert audio to metronome. Most of the audio files in this tease look like metronome beats anyway. I don't know what the l1/l2/l3/etc.mp3 files are but maybe you can figure something out for those.

Hope that all helps.

PG
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

ark235 wrote: Sun Jun 13, 2021 2:43 pm This is great! Was just wondering if someone hade made a downloader supporting EOS, and looks like I picked the right time to look :-)

I've tried downloading a few and most are working well. Just found one that appears to be broken:
"Stop! Hentai Headplay"
https://milovana.com/webteases/showtease.php?id=48582

It seems to rely heavily on randomisation, and when downloaded just stops at the first image after the intro/instructions.
I've fixed the issues with this tease in the new version of the downloader (not released yet), and really wanted to try it out so I got it downloaded and converted.

You can download it here: Stop! Hentai Headplay

In GuideMe the slide delays were too short (1 to 2 seconds) and I found I'd often hit Stop but it was too late and I'd end up stopped on the next picture. I converted the delay to a variable for easier customization. I have it set to 3 seconds in this version. Search for slideDelay in the XML.

Have fun!

PG
Laki4n
Curious Newbie
Curious Newbie
Posts: 3
Joined: Sun Nov 22, 2020 10:07 am

Re: [GuideMe] Tease Downloader with EOS Support

Post by Laki4n »

i get error 0xc00007b. Anyone knows how to fix it?
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

Laki4n wrote: Sun Jun 27, 2021 6:12 pm i get error 0xc00007b. Anyone knows how to fix it?
You really need to provide more information, like what were you doing when you got that error? Were you downloading a tease? If so, which one? etc.

Googling that error code it looks like it may be saying you need to install the Visual C++ Runtimes.
Did you get that just trying to run the new downloader package I posted?

Edit: What version of WIndows are you running? And 32 bit OS or 64 bit?
I did some digging and it looks like you may need to install the VC++ 2015 runtimes (download here). There are both 32 bit and 64 bit versions. I checked my machine and I have both (32 and 64 bit) installed, so it probably hurt to install both.

PG
User avatar
Trusfrated
Explorer At Heart
Explorer At Heart
Posts: 465
Joined: Mon Nov 08, 2010 8:41 am
Gender: Male

Re: [GuideMe] Tease Downloader with EOS Support

Post by Trusfrated »

PlayfulGuy wrote: Sat Jun 26, 2021 6:50 pm
Trusfrated wrote: Thu Jun 24, 2021 6:26 am Here's a couple I've had a trouble with:

Investigation at Lust House just shows a black screen after the first few pages.

Code: Select all

ERROR Jscript -  FileRunScript ReferenceError: "array_randomizer" is not defined. (globalScript#1519)
Also Parseerror saying Message: The string "--" is not permitted within comments.
The error about array_randomizer is because the tease defines a function in an eval on a page, followed by code that calls that function. The downloader doesn't handle this very well. It ended up moving the entire thing to the global javascript as function page040_PunishmentRoom_Lockers_array_randomizer() and mangling the code.

Find that function in the XML file and replace it with these two functions:
Spoiler: show

Code: Select all

      function array_randomizer(a, b) {
          return .5 - Math.random()
      }
      
      function page040_PunishmentRoom_Lockers_array_randomizer(a, b) {
        if ((teaseStorage.getItem('opened_punishmentroom_lockers') === undefined) || (teaseStorage.getItem('opened_punishmentroom_lockers') == -1)){
            teaseStorage.setItem('opened_punishmentroom_lockers', 0)
            teaseStorage.setItem('punishmentroom_lockers_content', ["nothing", "speculum", "ruby"].sort(array_randomizer))
        }
      }

Let me know how that goes. This is only the second time I've seen something like that so I don't know if I'll try fixing that in the downloader, or just treat it like a one-off. Or two-off I guess :-) .
Thank you so much! I think I properly replaced the function, and the tease seems to start and work normally now. The only thing is that when you go to the Punishment Room (related to the problem function) there is a line of text that just says "EVAL1". The downloader put this comment in:

Code: Select all

      <!-- Error: This page contained an eval that defines function "array_randomizer()".
The function was moved to global javascript as function "page040_PunishmentRoom_Lockers_array_randomizer()", and the eval was added with an empty statement.
You will need to address this manually. -->
...which makes me think something else may need to be done to fix it. I tried looking at the cached json file to get an idea of what to do, but I'm sorry it's outside of my current skillset to figure this out. I'm not asking you to spend any more time on it; there's plenty of other teases for me to check out!
Trusfrated wrote: Thu Jun 24, 2021 6:26 am In Miss Evans, any time a sound is to be played, I get a little popup window for VLC that has the "file not found" pink question mark in it.
PlayfulGuy wrote: Sat Jun 26, 2021 6:50 pm I've seen that before (might even have been in that tease) and it means the audio files did not download properly. The only solution I had was to replace them with similar audio files that worked, or convert them to metronomes (see below). The last time I encountered the issue I couldn't figure out why the download failed. I will add this to the list of things to investigate in the future but at this point I've only encountered it twice, and like I said the last time may even have been with the same tease.
Ah! That makes sense. I'm should have noticed they were not legitimate files. :blush: So strange that those particular ones refuse to download properly when they work fine in the online version. :unsure: Either way, I can work around it.

Edit: Just as a test, I downloaded the tease with Thamrill's EOS Tease Downloader/player. It retrieved the sounds okay. Unfortunately, they are not accessible because his tease format puts everything into one large file.

Thank you!
ImageImage
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

Trusfrated wrote: Mon Jun 28, 2021 5:07 am
Spoiler: show
PlayfulGuy wrote: Sat Jun 26, 2021 6:50 pm
Trusfrated wrote: Thu Jun 24, 2021 6:26 am Here's a couple I've had a trouble with:

Investigation at Lust House just shows a black screen after the first few pages.

Code: Select all

ERROR Jscript -  FileRunScript ReferenceError: "array_randomizer" is not defined. (globalScript#1519)
Also Parseerror saying Message: The string "--" is not permitted within comments.
The error about array_randomizer is because the tease defines a function in an eval on a page, followed by code that calls that function. The downloader doesn't handle this very well. It ended up moving the entire thing to the global javascript as function page040_PunishmentRoom_Lockers_array_randomizer() and mangling the code.

Find that function in the XML file and replace it with these two functions:
Spoiler: show

Code: Select all

      function array_randomizer(a, b) {
          return .5 - Math.random()
      }
      
      function page040_PunishmentRoom_Lockers_array_randomizer(a, b) {
        if ((teaseStorage.getItem('opened_punishmentroom_lockers') === undefined) || (teaseStorage.getItem('opened_punishmentroom_lockers') == -1)){
            teaseStorage.setItem('opened_punishmentroom_lockers', 0)
            teaseStorage.setItem('punishmentroom_lockers_content', ["nothing", "speculum", "ruby"].sort(array_randomizer))
        }
      }

Let me know how that goes. This is only the second time I've seen something like that so I don't know if I'll try fixing that in the downloader, or just treat it like a one-off. Or two-off I guess :-) .
Thank you so much! I think I properly replaced the function, and the tease seems to start and work normally now. The only thing is that when you go to the Punishment Room (related to the problem function) there is a line of text that just says "EVAL1". The downloader put this comment in:

Code: Select all

      <!-- Error: This page contained an eval that defines function "array_randomizer()".
The function was moved to global javascript as function "page040_PunishmentRoom_Lockers_array_randomizer()", and the eval was added with an empty statement.
You will need to address this manually. -->
...which makes me think something else may need to be done to fix it. I tried looking at the cached json file to get an idea of what to do, but I'm sorry it's outside of my current skillset to figure this out. I'm not asking you to spend any more time on it; there's plenty of other teases for me to check out!
Oh yeah! I forgot about the other half of the equation.
On that page you'll find that the very first action is the empty eval referred to in that error message.
Replace that line with this

Code: Select all

{ action: 'eval', statement: 'page040_PunishmentRoom_Lockers_array_randomizer()' },
That should be all it takes.
Trusfrated wrote: Mon Jun 28, 2021 5:07 am
Trusfrated wrote: Thu Jun 24, 2021 6:26 am In Miss Evans, any time a sound is to be played, I get a little popup window for VLC that has the "file not found" pink question mark in it.
Edit: Just as a test, I downloaded the tease with Thamrill's EOS Tease Downloader/player. It retrieved the sounds okay. Unfortunately, they are not accessible because his tease format puts everything into one large file.
Ahh!!! Very interesting. I believe Thamrill shared his source code, and if not I'll ask him what url he uses to download. He may be able to shed some light on why mine doesn't get anything when most other teases work fine.

Thanks for the tip!

PG
User avatar
Augustulus
Explorer At Heart
Explorer At Heart
Posts: 659
Joined: Fri Dec 25, 2015 4:27 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: [GuideMe] Tease Downloader with EOS Support

Post by Augustulus »

Hey :wave:,

had some time to test out your downloader and it's working great so far :-).
The only little issue I had was an encoding-error in the teases goon! and goon!2.
Here is the log:

Code: Select all

Downloading https://milovana.com/webteases/showtease.php?id=18287 to F:/CorelDREAM 3D Objekte/GuideMe-v0.4.4-Windows.64-bit/Guides
Getting tease info for  https://milovana.com/webteases/showtease.php?id=18287
fetchPage(): Loading previously saved copy F:\CorelDREAM 3D Objekte\MiloDownloader_0.92\Cache\Tease 18287.html
Something went wrong:  <class 'UnicodeDecodeError'>
Details:  'charmap' codec can't decode byte 0x9d in position 2496: character maps to <undefined>
  File "F:\CORELD~1\MILODO~1.92\Downloader.py", line 22, in download_tease
  File "F:\CORELD~1\MILODO~1.92\Downloader.py", line 45, in download
  File "F:\CORELD~1\MILODO~1.92\DownloadLib.py", line 173, in get_tease_details
  File "F:\CORELD~1\MILODO~1.92\DownloadLib.py", line 447, in fetchPage
  File "encodings\cp1252.py", line 23, in decode
Download failed.
If I interpret this right, the teases contain unicode characters and the downloader is trying to interpret them as ansi?
Can you do something about that?

Augustulus
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

Augustulus wrote: Sun Jul 11, 2021 11:06 am Hey :wave:,

had some time to test out your downloader and it's working great so far :-).
The only little issue I had was an encoding-error in the teases goon! and goon!2.
Here is the log:

Code: Select all

Downloading https://milovana.com/webteases/showtease.php?id=18287 to F:/CorelDREAM 3D Objekte/GuideMe-v0.4.4-Windows.64-bit/Guides
Getting tease info for  https://milovana.com/webteases/showtease.php?id=18287
fetchPage(): Loading previously saved copy F:\CorelDREAM 3D Objekte\MiloDownloader_0.92\Cache\Tease 18287.html
Something went wrong:  <class 'UnicodeDecodeError'>
Details:  'charmap' codec can't decode byte 0x9d in position 2496: character maps to <undefined>
  File "F:\CORELD~1\MILODO~1.92\Downloader.py", line 22, in download_tease
  File "F:\CORELD~1\MILODO~1.92\Downloader.py", line 45, in download
  File "F:\CORELD~1\MILODO~1.92\DownloadLib.py", line 173, in get_tease_details
  File "F:\CORELD~1\MILODO~1.92\DownloadLib.py", line 447, in fetchPage
  File "encodings\cp1252.py", line 23, in decode
Download failed.
If I interpret this right, the teases contain unicode characters and the downloader is trying to interpret them as ansi?
Can you do something about that?

Augustulus
Tis turned out to be an easy fix.

New versions have been uploaded and the links in the first post updated.

With the heat of summer things aren't moving very fast right now (likely the same for most around here), and I've got several projects in different areas of life on the go.

I'm still working on the next release of the downloader with a number of big code improvements.

Stay tuned!

PG
User avatar
Augustulus
Explorer At Heart
Explorer At Heart
Posts: 659
Joined: Fri Dec 25, 2015 4:27 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: [GuideMe] Tease Downloader with EOS Support

Post by Augustulus »

PlayfulGuy wrote: Thu Jul 15, 2021 2:25 pm Tis turned out to be an easy fix.

New versions have been uploaded and the links in the first post updated.

With the heat of summer things aren't moving very fast right now (likely the same for most around here), and I've got several projects in different areas of life on the go.

I'm still working on the next release of the downloader with a number of big code improvements.

Stay tuned!

PG
Great. The downloads went well now :-).
I've ran into the same issue with broken audio-files which Trusfrated already mentioned. Did you already had the time to look into this more?
Also don't worry about slow development. It's not that urgent for me :-)

Augustulus
SethK
Explorer
Explorer
Posts: 37
Joined: Thu Jan 21, 2016 6:11 pm
Gender: Male
Sexual Orientation: Straight

Re: [GuideMe] Tease Downloader with EOS Support

Post by SethK »

My antivirus still complains about a trojan.
Serousep
Explorer
Explorer
Posts: 7
Joined: Sat Jun 13, 2020 6:27 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [GuideMe] Tease Downloader with EOS Support

Post by Serousep »

Hi. :wave: I'm having a problem with the Forgotten Part 1 teaser. (https://milovana.com/webteases/showtease.php?id=44709) The thing is that the game always shows pages with "-Alt" (see code), which denote the second meeting with the girl, although the first meeting should show a page without "-Alt". How can this be fixed?

Code: Select all

<Page id="0-housebedS">
        <javascript>
        <![CDATA[
          function pageLoad() {
              actionList = [
                { action: 'image', file: 'Indoor Landscape/979615.jpg' },
                { action: 'if', condition: '(pages.isEnabled(&#x27;BedroomEvaJust1&#x27;))' },
                  { action: 'goto', target: 'BedroomEvaJust1' },
                { action: 'else' },
                  { action: 'goto', target: 'BedroomEvaJust1-Alt' },
                { action: 'endif' },
                { action: 'goto', target: '0-housebed' }
              ];
              handleActions(actionList);
          }
        ]]>
        </javascript>
      </Page>
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

SethK wrote: Thu Jul 29, 2021 9:42 am My antivirus still complains about a trojan.
I just uploaded the release file to VirusTotal and reanalyzed it and some vendors are now flagging it as infected, which it is not.

There is little else I can do at this point other than post instructions on how to run it from the python source code.
That involves installing python, and then installing a bunch of python libraries that I use in the code.
It's fairly easy to do, and If you are willing to go through that I will put together some instructions and post them.

PG
Last edited by PlayfulGuy on Mon Aug 02, 2021 5:33 pm, edited 1 time in total.
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: [GuideMe] Tease Downloader with EOS Support

Post by PlayfulGuy »

Augustulus wrote: Sat Jul 17, 2021 9:13 am
Spoiler: show
PlayfulGuy wrote: Thu Jul 15, 2021 2:25 pm Tis turned out to be an easy fix.

New versions have been uploaded and the links in the first post updated.

With the heat of summer things aren't moving very fast right now (likely the same for most around here), and I've got several projects in different areas of life on the go.

I'm still working on the next release of the downloader with a number of big code improvements.

Stay tuned!

PG
Great. The downloads went well now :-).
I've ran into the same issue with broken audio-files which Trusfrated already mentioned. Did you already had the time to look into this more?
Also don't worry about slow development. It's not that urgent for me :-)

Augustulus
I haven't had the time and energy to look into the audio issue yet. Do you recall what tease it was you had trouble with?
The audio issue is going to be low priority for now as it, so far, has only affected a few teases that I'm aware of. If that's not the case I will put a higher priority on it.

I haven't been able to work on the downloader much at all the last few weeks. Too focused on doing teases and all that leads to :-D and other life stuff. And honestly the ongoing virus nonsense is really killing my motivation.

But, I am getting back to working on the downloader as time and energy permits. I've got one of my main tasks finished, and now I'm starting on improving the handling of the init module javascript.

PG
User avatar
Augustulus
Explorer At Heart
Explorer At Heart
Posts: 659
Joined: Fri Dec 25, 2015 4:27 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: [GuideMe] Tease Downloader with EOS Support

Post by Augustulus »

PlayfulGuy wrote: Mon Aug 02, 2021 5:05 pm I haven't had the time and energy to look into the audio issue yet. Do you recall what tease it was you had trouble with?
The audio issue is going to be low priority for now as it, so far, has only affected a few teases that I'm aware of. If that's not the case I will put a higher priority on it.

I haven't been able to work on the downloader much at all the last few weeks. Too focused on doing teases and all that leads to :-D and other life stuff. And honestly the ongoing virus nonsense is really killing my motivation.

But, I am getting back to working on the downloader as time and energy permits. I've got one of my main tasks finished, and now I'm starting on improving the handling of the init module javascript.

PG
It was definitely the current version of Miss Evans. I had also some other teases, but I downloaded the audio files manually via developer tools from the eos teases meanwhile. Sadly Miss Evans is not loading all the audio files at start, so I have only part of them.

I also discovered a really weird behavior in Karissas Maze were the metronome file will only be played once and then stops, but starts playing again endlessly as soon as the next page loads. This leads to really bad behavior of metronome playing when not intended and not playing when there should be a metronome.
Sadly due to the randomness of the maze, I couldn't check if this might also happen in the eos version here.
In case you want to check it out, you can skip the intro and enter the maze directly, because this behavior is only inside the maze.

Augustulus
Post Reply