Masuzu / SarasaBot

A GBF bot for automated raid farming with scriptable behaviour
https://gbtools.azurewebsites.net/SarasaBot/en/Home
27 stars 4 forks source link

Sarasa bot crashing when raid boss die #271

Closed nutteda closed 5 years ago

nutteda commented 5 years ago

Sarasa bot run perfectly for short time and sometime when raid boss die it crashing without any warn

my .lua

character_1:UseSkill(3) character_1:UseSkill(1) Summon(6) if turn == 2 then character_2:UseSkill(1) character_2:UseSkill(3)

character_3:UseSkill(4) character_3:UseSkill(1) character_4:UseSkill(3) character_4:UseSkill(2) character_4:UseSkill(1) end

my .ini RaidsToTrack=Lv120 グリームニル,Lvl 120 Grimnir

MaxNumPlayersInRaid=10 MinimumRemainingBossHpPercentage=50 MaximumRemainingBossHpPercentage=100 RaidRequestTimeToLiveInMs=180000 MinDelayInMsBeforeTryingToRejoinRaid=20000 DisplayRaids=true

[General] Language=en MaxNumSoulBerries=9999 AdditionalNumSoulBerriesToUsePerRefill=0 MaxNumSoulBalms=9999 UseSoulBalmsWhenNoRemainingSoulBerries=true UseSoulBalmsFirst=false MaxPageLoadDelayInMsBeforeRetry=3500 MaxTriggerDelayInMsBeforeFallback=5000 MaxResponseDelayInMs=2000 MaxNumActionRetries=1 MinWaitTimeInMsAfterRefresh=2000 TimeLimitInSeconds=21000 UseViramate=false OngoingRaidsCheckFrequencyInSeconds=10 WaitForRaidEndBeforeJoiningNewRaid=false CountdownTimerHorizontalPosition=0 CountdownTimerVerticalPosition=0 FastRaidRewardCollection=false MaximumDelayInMinutesBeforeAttemptingToRetreatFromARaid=10 QuickRaidJoining=false [Inputs] DelayInMsBetweenMouseDownAndUp=40 RandomDelayInMsBetweenMouseDownAndUp=20 MouseSpeed=700 MouseScrollSpeed=700 ExitKeyCode=112 WaitTimeInMsBeforeClickInput=50 [Summons] PreferredSummons=shiva DefaultSummonAttributeTab=Misc RerollSummonWhenNoPreferredSummonWasFound=false [Combat] MinWaitTimeInMsAfterAttack=200 MinWaitTimeInMsAfterSummon=3000 MinWaitTimeInMsAfterAbility=1750 LuaScript=Scripts/HL2.lua ReloadPageOnLastBattle=true MaxInactivityPeriodBeforeLeavingTheRaidInMs=6000 EnableEarlyTurnStartWithViramate=false MinWaitTimeBeforeActionAfterEarlyTurnStartInMs=1500 AdditionalDelayInMsAfter2ChainBurst=1500 AdditionalDelayInMsAfter3ChainBurst=5000 AdditionalDelayInMsAfter4ChainBurst=7600 AdditionalDelayInMsAfterOverchainBurst=7600

[Debug] Clicks=false ForceRaidRewardCollection=false ForceRaidJoining=true

[Alerting]

CaptchaNotificationSoundPath=captcha_notification.mp3 NumNotifications=9999 MaxNumSummonSelectionFailuresBeforePlayingSoundNotification=3 Check4SymbolsPendantsCount=false

Max4SymbolsPendantsCount=30000

Masuzu commented 5 years ago

I do not see anything wrong either. Usually crashes in scripts should display a message popup with details on the error. The other possibility would be that your Chrome Devtools window crashed, which can happen if you forget to turn off the "Preserve Log" option (this got me many times in the past). https://twitter.com/GBFPokerBot/status/1112821457309130753

nutteda commented 5 years ago

I always turn it off. But after try it not happen in all kind of raid.It always happen in Magna II raids.

nutteda commented 5 years ago

is that normal? 55601072-26869100-5789-11e9-98f4-7b924636983e

nutteda commented 5 years ago

Capture it always be like this while crash

NaoiKR commented 5 years ago

I realized this happens when the raid boss dies too fast and your characters was using skills in the process.

Sometimes sarasa just shutdown without any error messages when this happens.

I noted that when I was using sarasa in some magna 2 content.

ComfyEchooo commented 5 years ago

Same issue. Is there no way to make a reboot script?

Masuzu commented 5 years ago

This is related to https://github.com/Masuzu/SarasaBot/issues/271 Once the shortcuts are implemented directly for Sarasa Bot, a lot of such issues will be resolved.

Masuzu commented 5 years ago

Sarasa Bot can now emulate key shortcuts on her own as of v2.7.0! https://gbtools.azurewebsites.net/SarasaBot/en/Home/PatchNotes#2-7-0

The good news is that it may solve a ton of issues :) The "bad" news is that the feature is experimental. Enjoy!