From 30085bb4a10c25972661c8686bcf32f5a9fe8a87 Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Tue, 22 Jul 2014 16:59:21 -0400 Subject: [PATCH] Fixed GTServer showing 0 for every upload ID in logs. --- GlobalTerminalService/GTServer4.cs | 6 +++--- GlobalTerminalService/GTServer5.cs | 4 ++-- library/Data/DataMysql.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/GlobalTerminalService/GTServer4.cs b/GlobalTerminalService/GTServer4.cs index 5dea2bee..f903120b 100644 --- a/GlobalTerminalService/GTServer4.cs +++ b/GlobalTerminalService/GTServer4.cs @@ -93,7 +93,7 @@ namespace PkmnFoundations.GlobalTerminalService break; } - logEntry.AppendFormat("Box {0} uploaded successfully.", record.SerialNumber); + logEntry.AppendFormat("Box {0} uploaded successfully.", serial); logEntry.AppendLine(); response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK) response.Write(BitConverter.GetBytes(serial), 0, 8); @@ -149,7 +149,7 @@ namespace PkmnFoundations.GlobalTerminalService break; } - logEntry.AppendFormat("Dressup {0} uploaded successfully.", record.SerialNumber); + logEntry.AppendFormat("Dressup {0} uploaded successfully.", serial); response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK) response.Write(BitConverter.GetBytes(serial), 0, 8); @@ -203,7 +203,7 @@ namespace PkmnFoundations.GlobalTerminalService break; } - logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(record.SerialNumber)); + logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(serial)); logEntry.AppendLine(); response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK) response.Write(BitConverter.GetBytes(serial), 0, 8); diff --git a/GlobalTerminalService/GTServer5.cs b/GlobalTerminalService/GTServer5.cs index 1f2a9194..ff0e0cae 100644 --- a/GlobalTerminalService/GTServer5.cs +++ b/GlobalTerminalService/GTServer5.cs @@ -91,7 +91,7 @@ namespace PkmnFoundations.GlobalTerminalService break; } - logEntry.AppendFormat("Musical {0} uploaded successfully.", record.SerialNumber); + logEntry.AppendFormat("Musical {0} uploaded successfully.", serial); logEntry.AppendLine(); response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK) response.Write(BitConverter.GetBytes(serial), 0, 8); @@ -158,7 +158,7 @@ namespace PkmnFoundations.GlobalTerminalService break; } - logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(record.SerialNumber)); + logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(serial)); logEntry.AppendLine(); response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK) response.Write(BitConverter.GetBytes(serial), 0, 8); diff --git a/library/Data/DataMysql.cs b/library/Data/DataMysql.cs index 400a1326..e8be4dfe 100644 --- a/library/Data/DataMysql.cs +++ b/library/Data/DataMysql.cs @@ -1083,7 +1083,7 @@ namespace PkmnFoundations.Data new MySqlParameter("@key", key)); // todo: make a proc to insert both video and party. - InsertBattleVideoParty4(record.Header, (ulong)key, tran); + InsertBattleVideoParty4(record.Header, key, tran); tran.Commit(); return serial; @@ -1422,7 +1422,7 @@ namespace PkmnFoundations.Data new MySqlParameter("@key", key)); // todo: make a proc to insert both video and party. - InsertBattleVideoParty5(record.Header, (ulong)key, tran); + InsertBattleVideoParty5(record.Header, key, tran); tran.Commit(); return serial;