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

SarasaBot crashing #257

Closed ErogeSeiyuu closed 5 years ago

ErogeSeiyuu commented 5 years ago

SarasaBot keeps crashing after finishing the first raid it joined.

  1. Start SarasaBot, Initialized, Bot joined 1 raid that matched the parameters provided.
  2. Bot ran using provided script (super simple script). Raid over, collected rewards, go back to /#quest/assist
  3. Bot found another raid that matched the parameters, and got to the summon selection screen.
  4. SarasaBot stopped running and exit without any warning nor error message.

For reference, my viramate setting has "Highlight character panels" turned Off, Keyboard shortcuts On, and my .ini used are as follow:

[Twitter]
*secret stuffs*
RaidsToTrack=Lv120 ゴッドガード・ブローディア,Lvl 120 Godsworn Alexiel,
MaxNumPlayersInRaid=8
MinimumRemainingBossHpPercentage=40
MaximumRemainingBossHpPercentage=100
RaidRequestTimeToLiveInMs=900000
MinDelayInMsBeforeTryingToRejoinRaid=200000
DisplayRaids=true

[General]
Language=en
MaxNumSoulBerries=900
AdditionalNumSoulBerriesToUsePerRefill=1
MaxNumSoulBalms=500
UseSoulBalmsWhenNoRemainingSoulBerries=false 
UseSoulBalmsFirst=true
ChromeDevToolsWindowDockedOnTheRight=true
MaxPageLoadDelayInMsBeforeRetry=3500
MaxTriggerDelayInMsBeforeFallback=2300
MaxResponseDelayInMs=2000
MaxNumActionRetries=1
MinWaitTimeInMsAfterRefresh=2000
TimeLimitInSeconds=72000
UseViramate=true
OngoingRaidsCheckFrequencyInSeconds=0.5
CountdownTimerHorizontalPosition=0
CountdownTimerVerticalPosition=0 
FastRaidRewardCollection=true
MaximumDelayInMinutesBeforeAttemptingToRetreatFromARaid=10

[Inputs]
DelayInMsBetweenMouseDownAndUp=40
RandomDelayInMsBetweenMouseDownAndUp=20
MouseSpeed=700
MouseScrollSpeed=700
ExitKeyCode=112
WaitTimeInMsBeforeClickInput=50

[Summons]
PreferredSummons=Tiamat Omega_2,Grimnir_1,
DefaultSummonAttributeTab=wind,
RerollSummonWhenNoPreferredSummonWasFound=false

[Combat]
MinWaitTimeInMsAfterAttack=500
MinWaitTimeInMsAfterSummon=500
MinWaitTimeInMsAfterAbility=1750
LuaScript=Scripts/alex.lua
ReloadPageOnLastBattle=true
DoNotWaitForServerResponse=false
AdditionalDelayInMsAfter2ChainBurst=1500
AdditionalDelayInMsAfter3ChainBurst=5000
AdditionalDelayInMsAfter4ChainBurst=7600
AdditionalDelayInMsAfterOverchainBurst=7600

[Debug]
Clicks=false
ForceRaidRewardCollection=true

[Alerting]
CaptchaNotificationSoundPath=captcha_notification.mp3
NumNotifications=9999
MaxNumSummonSelectionFailuresBeforePlayingSoundNotification=2

and the super simple .lua

if turn == 1 then
    character_4:WithWaitTime(80):UseSkill(2)
    Refresh()
    EnableChargeAttack()
end
if turn == 5 then
    TerminateBattleAfterAttack()
end
ErogeSeiyuu commented 5 years ago

It seems like SarasaBot was unable to pick summons that is not on PreferredSummons= despite having RerollSummonWhenNoPreferredSummonWasFound=false

I tried using Tiamat Omega_2,Grimnir_1,Tiamat Omega_1,Grimnir, and it starts working again, until there's none of those in the support summon lists.

MegaBlues commented 5 years ago

Try deleting the extra commas on the end of your strings.