Diesel

Member
Is there a way to disable client verification?

So there is a clientverification.cs file.

Would setting

private static readonly bool m_DetectClientRequirement = true;

to false stop the verification and allow older clients to connect and not get kicked?
 
Last edited:
Haven't tried that. I have OldClientResponse set to Warn...warns players that they should update their client but doesn't prevent them from playing with an older client
 
Where would I change it to warn? Would it be what I colored in red?


public class ClientVerification
{
private static readonly bool m_DetectClientRequirement = true;
private static readonly OldClientResponse m_OldClientResponse = OldClientResponse.LenientKick;
private static readonly TimeSpan m_AgeLeniency = TimeSpan.FromDays(10);
private static readonly TimeSpan m_GameTimeLeniency = TimeSpan.FromHours(25);
private static ClientVersion m_Required;

public static TimeSpan KickDelay = TimeSpan.FromSeconds(Config.Get("Client.KickDelay", 20.0));
public static bool AllowRegular = Config.Get("Client.AllowRegular", true);
public static bool AllowUOTD = Config.Get("Client.AllowUOTD", true);
public static bool AllowGod = Config.Get("Client.AllowGod", true);

private enum OldClientResponse
{
Ignore,
Warn,
Annoy,
LenientKick,
Kick
}
public static ClientVersion Required
{
get
{
return m_Required;
}
set
{
m_Required = value;
}
 
Thanks, someone wanting to connect to my server couldn't upgrade from 7.0.59 to 7.0.60. Hopefully, that will help them out. Which will help me!
 
Setting the Detect Client to false would mean anyone with a lower client patch could still play. They just wouldn't be able to see any newer items & such from the higher clients. And they wouldn't get any warnings.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back