From fc3fff65f3bddd06470680347284a9fe0f10f2c8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 Dec 2021 22:38:08 +0800 Subject: [PATCH] debug eco/stats messages --- ttd.go | 4 ++-- version.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ttd.go b/ttd.go index 8d184fc..fa1cbe6 100644 --- a/ttd.go +++ b/ttd.go @@ -382,13 +382,13 @@ func (s *ServerTTD) Poll(stop chan struct{}) { Packet: p, } sp.Read(buffer[:p.PLength]) - logInfoDebug("Server.Poll() : PacketServerCompanyEconomy :\n- CompanyID: %d", sp.CompanyID) + logInfoDebug("Server.Poll() : PacketServerCompanyEconomy :\n- CompanyID: %d\n- M: %d\tL: %d\tI: %d\n- Delivered now: %d\tLast: %d\tPrevious: %d\n,- Performance last: %d\t Previous: %d\n- Value last: %d\t Previous: %d", sp.CompanyID, sp.Money, sp.Loan, sp.Income, sp.DeliveredCargoThisQuarter, sp.DeliveredCargoLastQuarter, sp.DeliveredCargoPreviousQuarter, sp.PerformanceLastQuarter, sp.PerformancePreviousQuarter, sp.CompanyValueLastQuarter, sp.CompanyValuePreviousQuarter) case AdminPacketServerCompanyStats: sp := PacketServerCompanyStats{ Packet: p, } sp.Read(buffer[:p.PLength]) - logInfoDebug("Server.Poll() : PacketServerCompanyStats :\n- CompanyID: %d", sp.CompanyID) + logInfoDebug("Server.Poll() : PacketServerCompanyStats :\n- CompanyID: %d\n- Vehicles T: %d\tL: %d\tB: %d\tP: %d\tS: %d\n- Stations T: %d\tL: %d\tB: %d\tP: %d\tS: %d", sp.CompanyID, sp.Trains, sp.Lorries, sp.Busses, sp.Planes, sp.Ships, sp.TrainStations, sp.LorryStations, sp.BusStops, sp.Airports, sp.Harbours) case AdminPacketServerChat: sp := PacketServerChat{ Packet: p, diff --git a/version.go b/version.go index 47b267f..9dc0289 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "7e3b0bf" -var buildstamp = "2021-12-04_09:14:19" -var commits = "220" -var version = "7e3b0bf-b220 - 2021-12-04_09:14:19" +var githash = "0a4b2f4" +var buildstamp = "2021-12-04_14:37:53" +var commits = "221" +var version = "0a4b2f4-b221 - 2021-12-04_14:37:53"