Roukys / HHauto

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

Bug [5.6.88] - Crash? Error message from Hentaiheroes #525

Closed bsup68 closed 2 years ago

bsup68 commented 2 years ago

I'm getting an error message while running the script(see screenshot) running in paranoia mode.

OS: Win10 Browser: Chrome with TamperMonkey

Getting the error turning the masterswitch on.

Expected the script to run as it always does, updated to newest version yesterday after the version I used got stuck on collection rewards.

Screenshot of error:

[img]https://i.imgur.com/NceGgeM.png[/img]

My settings on HentaiHeroes:

[img]https://i.imgur.com/PPQKl8v.png[/img]

I hope someone knows what could be wrong.

DreadfulManticore commented 2 years ago

I'm getting the same exact issue on ComixHarem. Except for me its now just loading the website.

Although, setting the Nutaku Harem Heroes window to "Settings Per Tab" fixed it on ComixHarem. Weird.

bsup68 commented 2 years ago

Gonna try the "Settings Per Tab" tomorrow on Hentaiheroes, maybe it works there too :)

Roukys commented 2 years ago

I'm still checking for the moment can't reproduce and it seems a server error Can one of you share a debug log ?

bsup68 commented 2 years ago

Sure, I hope I did that part correct though:

{ "HHAuto_browserVersion": "chrome 101.0.4951.67", "HHAuto_scriptHandler": "Tampermonkey 4.16.1", "HHAuto_version": "5.6.88", "HHAuto_HHSite": "https://www.hentaiheroes.com", "localStorage.HHAuto_Setting_settPerTab": "false", "localStorage.HHAuto_Setting_autoAff": "500000000", "localStorage.HHAuto_Setting_autoAffW": "false", "localStorage.HHAuto_Setting_autoBuyBoosters": "false", "localStorage.HHAuto_Setting_autoBuyBoostersFilter": "B1;B2;B3;B4", "localStorage.HHAuto_Setting_autoChamps": "true", "localStorage.HHAuto_Setting_autoChampsForceStart": "false", "localStorage.HHAuto_Setting_autoChampsFilter": "1;2;3;4;5;6", "localStorage.HHAuto_Setting_autoChampsUseEne": "false", "localStorage.HHAuto_Setting_autoClubChamp": "false", "localStorage.HHAuto_Setting_autoClubChampMax": "999", "localStorage.HHAuto_Setting_autoClubForceStart": "false", "localStorage.HHAuto_Setting_autoContest": "false", "localStorage.HHAuto_Setting_autoExp": "500000000", "localStorage.HHAuto_Setting_autoExpW": "false", "localStorage.HHAuto_Setting_autoFreePachinko": "false", "localStorage.HHAuto_Setting_autoLeagues": "true", "localStorage.HHAuto_Setting_autoLeaguesAllowWinCurrent": "false", "localStorage.HHAuto_Setting_autoLeaguesCollect": "false", "localStorage.HHAuto_Setting_autoLeaguesPowerCalc": "false", "localStorage.HHAuto_Setting_autoLeaguesSelectedIndex": "-1", "localStorage.HHAuto_Setting_autoLeaguesThreshold": "0", "localStorage.HHAuto_Setting_autoLGM": "500000000", "localStorage.HHAuto_Setting_autoLGMW": "false", "localStorage.HHAuto_Setting_autoLGR": "500000000", "localStorage.HHAuto_Setting_autoLGRW": "false", "localStorage.HHAuto_Setting_autoMission": "true", "localStorage.HHAuto_Setting_autoMissionCollect": "true", "localStorage.HHAuto_Setting_autoMissionKFirst": "false", "localStorage.HHAuto_Setting_autoPowerPlaces": "true", "localStorage.HHAuto_Setting_autoPowerPlacesAll": "true", "localStorage.HHAuto_Setting_autoPowerPlacesIndexFilter": "1;2;3;8;14;15;18;19;20;21;22;24", "localStorage.HHAuto_Setting_autoQuest": "false", "localStorage.HHAuto_Setting_autoSideQuest": "false", "localStorage.HHAuto_Setting_autoQuestThreshold": "0", "localStorage.HHAuto_Setting_autoSalary": "true", "localStorage.HHAuto_Setting_autoSalaryMaxTimer": "14400", "localStorage.HHAuto_Setting_autoSalaryMinSalary": "100", "localStorage.HHAuto_Setting_autoSeason": "true", "localStorage.HHAuto_Setting_autoSeasonCollect": "false", "localStorage.HHAuto_Setting_autoSeasonCollectablesList": "\"[]\"", "localStorage.HHAuto_Setting_autoSeasonPassReds": "false", "localStorage.HHAuto_Setting_autoSeasonThreshold": "0", "localStorage.HHAuto_Setting_autoStats": "500000000", "localStorage.HHAuto_Setting_autoStatsSwitch": "false", "localStorage.HHAuto_Setting_autoTrollBattle": "true", "localStorage.HHAuto_Setting_autoTrollMythicByPassParanoia": "false", "localStorage.HHAuto_Setting_autoTrollSelectedIndex": "-1", "localStorage.HHAuto_Setting_autoTrollThreshold": "0", "localStorage.HHAuto_Setting_autoChampsForceStartEventGirl": "false", "localStorage.HHAuto_Setting_buyCombat": "false", "localStorage.HHAuto_Setting_buyCombTimer": "16", "localStorage.HHAuto_Setting_buyMythicCombat": "false", "localStorage.HHAuto_Setting_buyMythicCombTimer": "16", "localStorage.HHAuto_Setting_autoDailyRewardsCollect": "false", "localStorage.HHAuto_Setting_autoDailyRewardsCollectablesList": "\"[]\"", "localStorage.HHAuto_Setting_eventTrollOrder": "1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20", "localStorage.HHAuto_Setting_master": "false", "localStorage.HHAuto_Setting_maxAff": "50000", "localStorage.HHAuto_Setting_maxExp": "10000", "localStorage.HHAuto_Setting_minShardsX10": "10", "localStorage.HHAuto_Setting_minShardsX50": "50", "localStorage.HHAuto_Setting_paranoia": "true", "localStorage.HHAuto_Setting_paranoiaSettings": "140-320/Sleep:28800-30400|Active:250-460|Casual:1500-2700/6:Sleep|8:Casual|10:Active|12:Casual|14:Active|18:Casual|20:Active|22:Casual|24:Sleep", "localStorage.HHAuto_Setting_paranoiaSpendsBefore": "true", "localStorage.HHAuto_Setting_plusEvent": "false", "localStorage.HHAuto_Setting_plusEventMythic": "false", "localStorage.HHAuto_Setting_PoAMaskRewards": "false", "localStorage.HHAuto_Setting_PoVMaskRewards": "false", "localStorage.HHAuto_Setting_SeasonMaskRewards": "false", "localStorage.HHAuto_Setting_showCalculatePower": "true", "localStorage.HHAuto_Setting_showInfo": "true", "localStorage.HHAuto_Setting_showMarketTools": "false", "localStorage.HHAuto_Setting_showTooltips": "true", "localStorage.HHAuto_Setting_spendKobans0": "false", "localStorage.HHAuto_Setting_kobanBank": "1000000", "localStorage.HHAuto_Setting_useX10Fights": "false", "localStorage.HHAuto_Setting_useX10FightsAllowNormalEvent": "false", "localStorage.HHAuto_Setting_useX50Fights": "false", "localStorage.HHAuto_Setting_useX50FightsAllowNormalEvent": "false", "localStorage.HHAuto_Setting_autoPantheon": "false", "localStorage.HHAuto_Setting_autoPantheonThreshold": "0", "localStorage.HHAuto_Setting_autoPoVCollect": "false", "localStorage.HHAuto_Setting_autoPoVCollectablesList": "\"[]\"", "localStorage.HHAuto_Setting_autoDailyGoalsCollect": "false", "localStorage.HHAuto_Setting_autoDailyGoalsCollectablesList": "\"[]\"", "sessionStorage.HHAuto_Temp_autoLoop": "true", "sessionStorage.HHAuto_Temp_battlePowerRequired": "0", "sessionStorage.HHAuto_Temp_leaguesTarget": "", "sessionStorage.HHAuto_Temp_questRequirement": "none", "localStorage.HHAuto_Temp_autoLoopTimeMili": "500", "localStorage.HHAuto_Temp_freshStart": "no", "sessionStorage.HHAuto_Temp_trollToFight": "", "sessionStorage.HHAuto_Temp_Timers": "{\"PoVRemainingTime\":1653649203000}", "localStorage.HHAuto_Temp_HaremSize": "{\"count\":1129,\"count_date\":1653687981913}", "localStorage.HHAuto_Temp_PoVEndDate": "1653649203", "HHAuto_Temp_Logging": { "29.5.2022 14.31.54.429:setHHStoredVarToDefault": "HHStoredVar HHAuto_Temp_autoLoop set to default value : true", "29.5.2022 14.31.54.437:setHHStoredVarToDefault": "HHStoredVar HHAuto_Temp_battlePowerRequired set to default value : 0", "29.5.2022 14.31.54.437:setHHStoredVarToDefault-1": "HHStoredVar HHAuto_Temp_leaguesTarget set to default value : 9", "29.5.2022 14.31.54.437:setHHStoredVarToDefault-2": "HHStoredVar HHAuto_Temp_questRequirement set to default value : none", "29.5.2022 14.44.07.881:setTimer": "PoVRemainingTime set to 19139:13:00:03 (0-3:0-2:0-45:0-4)" } }

bsup68 commented 2 years ago

Updating to 5.6.90 did not fix the problem.

Roukys commented 2 years ago

@bsup68 at the moment I'm not able to reproduce the issue ...

Seems the script is going to an unexisting page ...

Your debug log did not contain any info.

Could you try the following when being on the error page : As you are in chrome :

  1. Open web developer console (menu->more tools->development tools or ctrl+shift+I)
  2. in console tab please type : sessionStorage.HHAuto_Temp_Logging
  3. then hit return and past here the result ( I do hope to see which page is it trying to visit ...)
  4. a more difficult part :
  5. In console tab : Use the button inspect
  6. Then click anywhere on HH window (it should higlight in blue while you move and one clicked it shoud go to element tab of devTools
  7. go back to devTools console tab and type : window.location.href
  8. Paste here the result :)
bsup68 commented 2 years ago

@Roukys thanks for the guide, i'll get to it asap.

Tried the first method, here is the result:

userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:10088 Uncaught (in promise) ReferenceError: $ is not defined at getLanguageCode (userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:10088:5) at Proxy.tms_15610413_d8eb_44a1_9367_29a7000c75af$ (userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:10285:9) at it (:14:1074) at userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:1:124 at userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:1:625 at Object.window.p3243380.649617596 (userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:14404:6) at it (:14:1074) at set (:3:400) at userscript.html?name=HaremHeroes%2520Automatic%252B%252B.user.js&id=15610413-d8eb-44a1-9367-29a7000c75af:1:34 at it (:14:1074) sessionStorage.HHAuto_Temp_Logging '{"30.5.2022 14.27.16.819:setHHStoredVarToDefault":"HHStoredVar HHAuto_Temp_autoLoop set to default value : true","30.5.2022 14.27.16.828:setHHStoredVarToDefault":"HHStoredVar HHAuto_Temp_battlePowerRequired set to default value : 0","30.5.2022 14.27.16.829:setHHStoredVarToDefault":"HHStoredVar HHAuto_Temp_leaguesTarget set to default value : 9","30.5.2022 14.27.16.829:setHHStoredVarToDefault-1":"HHStoredVar HHAuto_Temp_questRequirement set to default value : none","30.5.2022 14.30.14.751:setHHStoredVarToDefault":"HHStoredVar HHAuto_Setting_PoGMaskRewards set to default value : false","30.5.2022 14.30.14.754:setHHStoredVarToDefault":"HHStoredVar HHAuto_Setting_autoPoGCollect set to default value : false","30.5.2022 14.30.14.754:setHHStoredVarToDefault-1":"HHStoredVar HHAuto_Setting_autoPoGCollectablesList set to default value : []","30.5.2022 14.30.18.826:flipParanoia":"setting autoloop to false","30.5.2022 14.30.18.828:flipParanoia":"PARANOIA: Casual burst","30.5.2022 14.30.18.829:setTimer":"paranoiaSwitch set to 19142:14:33:48 (03:30)","30.5.2022 14.30.18.830:gotoPage":"going missions->home","30.5.2022 14.30.18.831:gotoPage":"setting autoloop to false","30.5.2022 14.30.18.831:gotoPage-1":"GotoPage : /home.html in 462ms.","30.5.2022 14.30.18.832:autoLoop":"autoLoop Disabled","30.5.2022 14.30.20.346:doShopping":"Catched error : Could not parse store content.","30.5.2022 14.30.21.358:doBossBattle":"Custom troll fight.","30.5.2022 14.30.21.360:doBossBattle":"Fighting troll N ","30.5.2022 14.30.21.360:doBossBattle-1":"Going to crush: Latest","30.5.2022 14.30.21.360:doBossBattle-2":"Navigating to chosen Troll.","30.5.2022 14.30.21.361:doBossBattle":"setting autoloop to false","30.5.2022 14.30.21.361:gotoPage":"going home->troll-pre-battle","30.5.2022 14.30.21.362:gotoPage":"setting autoloop to false","30.5.2022 14.30.21.363:gotoPage":"GotoPage : /troll-pre-battle.html?id_opponent= in 400ms.","30.5.2022 14.30.21.363:autoLoop":"autoLoop Disabled","30.5.2022 14.30.29.134:doShopping":"Catched error : Could not parse store content.","30.5.2022 15.07.40.2:getPage":"Page unkown for script : sex-god-path / /sex-god-path.html","30.5.2022 15.19.47.763:setTimer":"PoGRemainingTime set to 19172:13:00:01 (29:21:40:14)","30.5.2022 17.47.33.372:flipParanoia":"setting autoloop to false","30.5.2022 17.47.33.376:flipParanoia":"PARANOIA: Casual burst","30.5.2022 17.47.33.377:setTimer":"paranoiaSwitch set to 19142:17:50:41 (03:08)","30.5.2022 17.47.33.377:gotoPage":"going home->home","30.5.2022 17.47.33.378:gotoPage":"setting autoloop to false","30.5.2022 17.47.33.378:gotoPage-1":"GotoPage : /home.html in 371ms.","30.5.2022 17.47.33.379:autoLoop":"autoLoop Disabled","30.5.2022 17.47.34.266:doShopping":"Catched error : Could not parse store content.","30.5.2022 17.47.35.277:doBossBattle":"Custom troll fight.","30.5.2022 17.47.35.279:doBossBattle":"Fighting troll N ","30.5.2022 17.47.35.279:doBossBattle-1":"Going to crush: Latest","30.5.2022 17.47.35.280:doBossBattle":"Navigating to chosen Troll.","30.5.2022 17.47.35.280:doBossBattle-1":"setting autoloop to false","30.5.2022 17.47.35.280:gotoPage":"going home->troll-pre-battle","30.5.2022 17.47.35.281:gotoPage":"setting autoloop to false","30.5.2022 17.47.35.281:gotoPage-1":"GotoPage : /troll-pre-battle.html?id_opponent= in 422ms.","30.5.2022 17.47.35.282:autoLoop":"autoLoop Disabled"}'

Roukys commented 2 years ago

Ok seems your issue is with troll and league selected index not initialized... I'll have to dig into the why.

Please try to change the troll selection dropdown list and same for league the reload to see if it solves your issue

bsup68 commented 2 years ago

@Roukys Didn't get to test solution as I have auto update on, but so far it look like 5.6.92 have got the script up and running and running again :-)

Roukys commented 2 years ago

@bsup68
perfect :)

bsup68 commented 2 years ago

@Roukys Yeah it is :)

Thanks for the fast and effective support and solving the problem 👍