From 3e4d6c13359cc51fe84d169957e07a1b30e876b7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 Dec 2021 16:31:05 +0800 Subject: [PATCH] update freq --- ttd.go | 15 +++++++++++---- version.go | 8 ++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ttd.go b/ttd.go index 9b93c91..ea3c1c0 100644 --- a/ttd.go +++ b/ttd.go @@ -777,6 +777,7 @@ func (s *ServerTTD) Initialize() { } err = s.Send(px.Bytes()) failError(err, "Server.Initialize() : Send(AdminUpdateDate)") + logInfoDebug("Server.Initialize : AdminUpdateDate") px = PacketAdminUpdateFrequency{ Packet: Packet{PType: AdminPacketAdminUpdateFrequency}, @@ -785,6 +786,7 @@ func (s *ServerTTD) Initialize() { } err = s.Send(px.Bytes()) failError(err, "Server.Initialize() : Send(AdminUpdateClientInfo)") + logInfoDebug("Server.Initialize : AdminUpdateClientInfo") px = PacketAdminUpdateFrequency{ Packet: Packet{PType: AdminPacketAdminUpdateFrequency}, @@ -793,22 +795,25 @@ func (s *ServerTTD) Initialize() { } err = s.Send(px.Bytes()) failError(err, "Server.Initialize() : Send(AdminUpdateCompanyInfo)") + logInfoDebug("Server.Initialize : AdminUpdateCompanyInfo") px = PacketAdminUpdateFrequency{ Packet: Packet{PType: AdminPacketAdminUpdateFrequency}, UpdateType: AdminUpdateCompanyEconomy, - UpdateFrequency: AdminFrequencyAutomatic, + UpdateFrequency: AdminFrequencyDaily, } err = s.Send(px.Bytes()) failError(err, "Server.Initialize() : Send(AdminUpdateCompanyEconomy)") + logInfoDebug("Server.Initialize : AdminUpdateCompanyEconomy") px = PacketAdminUpdateFrequency{ Packet: Packet{PType: AdminPacketAdminUpdateFrequency}, UpdateType: AdminUpdateCompanyStats, - UpdateFrequency: AdminFrequencyAutomatic, + UpdateFrequency: AdminFrequencyDaily, } - //err = s.Send(px.Bytes()) - //failError(err, "Server.Initialize() : Send(AdminUpdateCompanyStats)") + err = s.Send(px.Bytes()) + failError(err, "Server.Initialize() : Send(AdminUpdateCompanyStats)") + logInfoDebug("Server.Initialize : AdminUpdateCompanyStats") px = PacketAdminUpdateFrequency{ Packet: Packet{PType: AdminPacketAdminUpdateFrequency}, @@ -817,6 +822,7 @@ func (s *ServerTTD) Initialize() { } err = s.Send(px.Bytes()) failError(err, "Server.Initialize() : Send(AdminUpdateChat)") + logInfoDebug("Server.Initialize : AdminUpdateChat") px = PacketAdminUpdateFrequency{ Packet: Packet{PType: AdminPacketAdminUpdateFrequency}, @@ -825,6 +831,7 @@ func (s *ServerTTD) Initialize() { } err = s.Send(px.Bytes()) failError(err, "Server.Initialize() : Send(AdminUpdateConsole)") + logInfoDebug("Server.Initialize : AdminUpdateConsole") s.Status.Initialized = true diff --git a/version.go b/version.go index 16fc0ed..ae7f668 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "f0e764e" -var buildstamp = "2021-12-04_08:24:43" -var commits = "217" -var version = "f0e764e-b217 - 2021-12-04_08:24:43" +var githash = "06b05d8" +var buildstamp = "2021-12-04_08:30:57" +var commits = "218" +var version = "06b05d8-b218 - 2021-12-04_08:30:57"