mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
servers now log (almost) everything to file
- regex'd in mysqlexception logging - servers can now specify server_port, log_path, log_file - added scripts to import/export all tables (exporting will export a handful of garbage table names, open and check for structure before deleting) - fixed packet logging (thanks deviltti)
This commit is contained in:
parent
92339ba0c4
commit
8b93abe86e
238 changed files with 684 additions and 1532 deletions
|
@ -1,13 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Runtime.InteropServices;
|
||||
using FFXIVClassic_Lobby_Server;
|
||||
using FFXIVClassic_Lobby_Server.common;
|
||||
using FFXIVClassic_Map_Server.common;
|
||||
|
||||
namespace FFXIVClassic_Lobby_Server.packets
|
||||
namespace FFXIVClassic_Map_Server.packets
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct SubPacketHeader
|
||||
|
@ -146,14 +141,14 @@ namespace FFXIVClassic_Lobby_Server.packets
|
|||
{
|
||||
#if DEBUG
|
||||
Console.BackgroundColor = ConsoleColor.DarkRed;
|
||||
Console.WriteLine("Size: 0x{0:X}", header.subpacketSize);
|
||||
Log.debug(String.Format("Size: 0x{0:X}", header.subpacketSize));
|
||||
if (header.type == 0x03)
|
||||
Console.WriteLine("Opcode: 0x{0:X}", gameMessage.opcode);
|
||||
Console.WriteLine("{0}", Utils.ByteArrayToHex(getHeaderBytes()));
|
||||
Log.debug(String.Format("Opcode: 0x{0:X}", gameMessage.opcode));
|
||||
Log.debug(String.Format("{0}", Utils.ByteArrayToHex(getHeaderBytes())));
|
||||
if (header.type == 0x03)
|
||||
Console.WriteLine("{0}", Utils.ByteArrayToHex(getGameMessageBytes()));
|
||||
Log.debug(String.Format("{0}", Utils.ByteArrayToHex(getGameMessageBytes())));
|
||||
Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||
Console.WriteLine("{0}", Utils.ByteArrayToHex(data));
|
||||
Log.debug(String.Format("{0}", Utils.ByteArrayToHex(data)));
|
||||
Console.BackgroundColor = ConsoleColor.Black;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue