Roukys / HHauto

GNU General Public License v3.0
45 stars 44 forks source link

Enhancement : Support of hornyheroes.com #330

Closed Franck-75 closed 3 years ago

Franck-75 commented 3 years ago

Which feature is concerned The ability for the script to work with the website hornyheroes.com, the "soft" version of hentai heroes. There is an initialisation problem.

Describe the solution you'd like Same functionnalities than with other supported sites (hentai heroes, comix harem, ...)

Describe alternatives you've considered Added the @match directive but it's not sufficient. There is an infinitive loop at initialisation, in the market.

Additional context N/A

cossname commented 3 years ago

wtf this site? "soft" version of hentai game? its doesnt even loaded properly also didnt found any mention of this game on official HH discord

Franck-75 commented 3 years ago

Yes ! I already played this game some months ago (at another url). It seems to be the definitive url. The opening is like comix harem. This site is opened without advertisement and some days after the advertisement comes. It's totally a KK site. It was down at the same moment during the update of this morning. They replaced cocks and vaginas by fruits or animals. They had to do this for nutaku in the first place.

The site works fine for me. I'm in level 22 (started yesterday) and the Tom script works fine (but not yet updated). I'm mad to do everything manually. The story is exactly the same as HH.

cossname commented 3 years ago

if there would be any official soft version, it would be released on www.nutaku.com, or at least mentioned on blog.kinkoid.com i gues this is a fake version

cossname commented 3 years ago

strange, but site registration data looks like same forrthis site and HH

Franck-75 commented 3 years ago

Try with a virgin navigator to go to hentaiheroes.com and at the first question (do you have 18 ?), answer no. You'll be redirected to hornyheroes.com If it's not a proof...

cossname commented 3 years ago

add

// @match        http*://*.hornyheroes.com/*

also change

        if(ob===undefined || ob === null)
        {
            ob = document.getElementById("hh_hentai");
        }

to

        if(ob===undefined || ob === null)
        {
            ob = document.getElementById("hh_hentai");
        }
        if(ob===undefined || ob === null)
        {
            ob = document.getElementById("hh_sexy");
        }

ps this site unstable

Franck-75 commented 3 years ago

I don't see any unstability on the website. I'm using Firefox. It works for Mission, Salary, Troll. Season, League.

It's not working for Pachinko because Mythic Pachinko does not exists. Infinite loop :

11/08/2021 à 15:04:28.721:autoLoop:Time to fetch Mythic Pachinko. HaremHeroes Automatic++.user.js:145:13 11/08/2021 à 15:04:28.721:getFreeMythicPachinko:Detected Pachinko Screen. Fetching Pachinko HaremHeroes Automatic++.user.js:145:13 11/08/2021 à 15:04:28.723:getFreeMythicPachinko:to mythic HaremHeroes Automatic++.user.js:145:13 11/08/2021 à 15:04:28.724:getFreeMythicPachinko:Catched error : Could not collect Mythic Pachinko... TypeError: $(...)[0] is undefined HaremHeroes Automatic++.user.js:145:13

cossname commented 3 years ago

change

if (Storage().HHAuto_Setting_autoFreePachinko === "true" && busy === false && sessionStorage.HHAuto_Temp_autoLoop === "true" && checkTimer("nextPachinko2Time")) {
            logHHAuto("Time to fetch Mythic Pachinko.");
            busy = true;
            busy = getFreeMythicPachinko();

 }

to

     /*   if (Storage().HHAuto_Setting_autoFreePachinko === "true" && busy === false && sessionStorage.HHAuto_Temp_autoLoop === "true" && checkTimer("nextPachinko2Time")) {
            logHHAuto("Time to fetch Mythic Pachinko.");
            busy = true;
            busy = getFreeMythicPachinko();

        }*/
Franck-75 commented 3 years ago

Not good because if you comment it, you do it for all website. Probably the change has to be done inside getFreeMythicPachinko to handle the case where Mythic Pachinko does not exists.

Roukys commented 3 years ago

I'll check on it :)

Franck-75 commented 3 years ago

There is another compatibility problem. The widget that shows the HH auto statistics, top right of the screens appears 1 second and then disappears. So it's not possible to see the timers.

Roukys commented 3 years ago

@Franck-75 I do not see any error with the info part.

could you send me a debug log ?

Franck-75 commented 3 years ago

Sorry. It's a setting. It was off.

Roukys commented 3 years ago

@Franck-75 support added in v25, please close if confirmed

Franck-75 commented 3 years ago

Great ! Hopefully, this game doesn't have as much as aventure than HH because it's boring.