MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] Auto Relog isn't working #2743

Open UniqueNIHAL opened 5 months ago

UniqueNIHAL commented 5 months ago

Prerequisites

Minecraft Version

1.20.1

Console Client Version

GitHub build 263, built on 2024-04-15 from commit 403284c

Expected Behavior

Auto relog to work by relogging if my connection fluctuates or if the server lags, basically expecting it to automatically reconnect to the server again and again.

Actual Behavior

Sometimes tries once to reconnect, most of the times it just says connection lost and does not try at all! and happens very often

Steps to Reproduce the bug

  1. Set Auto Relog enabled to true
  2. Set ignore kick msg to true
  3. Set tries to -1 for unlimited

Attach screenshot here (If applicable)

Screenshot 2024-06-26 234453 Screenshot 2024-06-26 183918 Screenshot 2024-06-26 182325 image

Anythings that could help diagnosing the bug

I heard others are facing this issue too on the discord server, I have made sure to enable the feature correctly in the settings and restart it and save the file too, ive attached a screenshot for the same

Device

Laptop

Operating System

Windows

Server Address (If applicable)

play.craftadia.com

Udyz commented 4 months ago

try this.. maybe it can help you reconnect

.ini ``` [[ChatBot.ScriptScheduler.TaskList]] Task_Name = "Auto Reconnect" Trigger_On_First_Login = false Trigger_On_Login = false Trigger_On_Times = { Enable = false, Times = [ ] } Trigger_On_Interval = { Enable = true, MinTime = 60, MaxTime = 120 } # Interval between 60 to 120 seconds Action = "script autoreconnect.txt" ``` autoreconnect.txt ``` # Check if disconnected ifdisconnected reconnect endif ```
UniqueNIHAL commented 4 months ago

I shall try this! Thanksss

milutinke commented 4 months ago

try this.. maybe it can help you reconnect .ini

[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Auto Reconnect"
Trigger_On_First_Login = false
Trigger_On_Login = false
Trigger_On_Times = { Enable = false, Times = [ ] }
Trigger_On_Interval = { Enable = true, MinTime = 60, MaxTime = 120 }  # Interval between 60 to 120 seconds
Action = "script autoreconnect.txt"

autoreconnect.txt

# Check if disconnected
ifdisconnected
  reconnect
endif

This doesn't exists in the MCC.

@UniqueNIHAL Increase the Delay to min 60 seconds and max 300 seconds or more.

UniqueNIHAL commented 4 months ago

I'll tryy it with the delay you mentioned, thanks