2023-11-12 01:58:59 +00:00
|
|
|
|
using AscNet.Common.Util;
|
|
|
|
|
using AscNet.GameServer;
|
2023-10-14 17:39:26 +00:00
|
|
|
|
using AscNet.Logging;
|
2023-11-12 01:58:59 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2023-10-06 13:29:27 +00:00
|
|
|
|
|
|
|
|
|
namespace AscNet
|
|
|
|
|
{
|
|
|
|
|
internal class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2023-10-14 17:39:26 +00:00
|
|
|
|
// TODO: Add loglevel parsing from appsettings file
|
|
|
|
|
LoggerFactory.InitializeLogger(new Logger(typeof(Program), LogLevel.DEBUG, LogLevel.DEBUG));
|
|
|
|
|
LoggerFactory.Logger.Info("Starting...");
|
2023-11-11 07:28:21 +00:00
|
|
|
|
|
2023-11-12 01:58:59 +00:00
|
|
|
|
/*byte[] encryptedTest = Miscs.HexStringToByteArray("9020fb38a6adbaaf1555aeaf1fc30e6fda2dec7b6e36607f665165121469ea921f0b5fe44a3e2ae9dbb22c63742f515cfa49804d4bc6ef6375665fdf7bd556fb8965d31dd531b684350fcc098406371cc366aa1a32bde1e31a62a495b938ab426104bc2bede03e1abdf2df300052e9f8effd3c86167f8cc2c1bba7eacd378d2779b6780310b32d5273efbe1dbc47814588f069ac99a43ab8c3239784d3b6f9e3f059acc9ce06024eb4dce4b7bfb1924b45e67e54a62cef878a61201c178f5c84c4ba2a36b3127dc37b7aa1f2b3e73145c332fd6379531844f75cd5c8eb01779eac6ec2f9de5ca0776abe882662078e88b2595c5636e8f8d7ae075f42516805d787fdab29fa602d8802107e739e8dfef0ce07677a1c0a030fb7cc8c561161bb14284cc77a742398c2a2ef18379d5691d6f94ec6e15cd8d8860ad159de442c9b19918bbd7a858c86a90f0d9cf523f75ee53fcf05fa655b7fbeb0a5a22b733815bd22e0adbb3011460b5c777fe96be6ab243162316c7c060fcf909cd02b9a3a00d794d52a4de959e751498f538635e0d4abec6d56e07afa6ac0d6c497a228ef5aab4d24c3cbe5f60c41e859be350433e73bd2f1ae8b3d824b553b8872c79ba85a1b6f57457e842ec9b581940da0e4947577819696a484cb2f0651012bed1b03fe0ce7cc4cc1340287f0e107a716ef7cf34f4222ad326359addfdeb8ab0f983d6d89cfbe036050437009289da1d0b840b3dbe655f95b6a1c561e950db1cf71b93c0f3499da3b381b0624d6ab3b5b91839834e22a884406c24caf47cf495152df40ca6602d588eea87dbe4d5544ad8fa0408939b6a536ba7af5ae8d3359856035c043358bb578e65cebb98a43e60114ad77a9cba0a70716b0da1dc67825f042733a7a382c971766c02b9a1f1cb565ca285197263807a25d102a604f74e6b9cc4adea0790dab0f46364a7e331b76573fde8a41454c55356acff4a2bbab133ed0b56e57bd3edc996de0b8578703005ca722d70d7516612388f0d75c8e48a7a37803cd99360be3da7da7fcd1c8bb2b9ba97e6aab32a81dd291ecdd4efcfc0dd6a11f2944f3d2f9faa6babc65175da91cdfd6afc0d8034ebf39b42f458c032ef3ae709f26098889427917bb099dfff0f930abf5202ca08d596103dc908c62776604fa643fd0499483ae605c6588b79e30cde719312a0d039cb6fdb4ba3a33b34ee37ce37288da6384d1fcd8b0c4a9aaebfeb497d6f7d75c776b0f14f3b0ee5eeefec0f22aae3829f31778f26e80a785cfec3351ec01e0da809146eb75c662ab6179a20f6a8d549a25170634ead19cfc00d3a2259f386156884b5d669f49b6eb63bf37232d8694fdd4cc7d3e1ff93e16634f05a54ff04f6c784dfb9e9b4b58b02e1ac6bfbab043a51eeabc6e90f41fdd76fdddffd1921d781ce5bf96cc78f1093c3a6301b7e2b43fa8cdec6fc33af403dab6853569e22777ad2896071c46aff09afd4f8cb5b43e5875228909fe02ef08eb9d970e316fb7c8fb255dec8d57bc94575ec183e51ceaa8b8f2a4bcfeaceb0d135155e86b536c7f69c225ba639f86d0d921d01cf7c4b0375880a72d6681fc01f55d872c31b3095989d5df45160d5d6679aedc579901bec0bd333506d2aec1eb5459aac910dc80f9648ee8f9642f3e31c9db3ddb4efeefea8e94f31b8082ea5c06a286706981633e4b9480911f5de8fa650f880b3f4626a351edaf1240e74555735128cb6de807a71da7cfb6d5f981a6e358072c2dbf252d7d537e5f28d92203c4e96d2b7ffcca14708ea512a3ed5561532be30d7dcd21445004108af561f26cd5700242d3637563b75f6cd013229f7f000803b52f955e9317feacb547dcc02e98620a99de2056a85f87e087c134f94ce6df3dbe6d72e24ca99921fd6510e105a27d2ebe4e0fcd168f2b798321ebd6c75a1d7f66cef3aee05428370279058935dc1d597d8618cdb08f52f50f662dfaee02dc22a6dd0bfa44c4aa0c8234d5057d8bcb00e6d7938c1804563a38daa15264adbe65faf7631f1eac773ccc147b186fbc1374c9f09d339ade16af225b084842a885c1c8a974aeb80ff837dcfdf3f8bc763ee09b5f9f65be9874e65fbae3bd27c6fa34dd015ed2e2ba660ba69dde0babd1cdfbcae998cbd5c0ffe58b178d4907ddd66710f1c901c58a0d49897cb3545dfe1018aa6ad2e13d3b511ea7d843712528b56d31cfa2a2333a38b110a4a65d0c3d0efefcd7c5997748c6267dabfc55d607b9d1145e32a2d80750d39e880e58731c0838d5208fed5375d736f011aca45e4a9d442c9c2705bcf8a6aef5bad027262df7970b6ad38b50886a76ece951c43ebde9ffde106e0cb9d66860cb87c8e797f0565418b6a77a332b1ff1d9392bdc4dfe0fd34a2d2d17bae6054043e24c17d343e87044997f57c40ab17429553f30a7f0578c1fdc50d8ee35b7ae0381a8a45b30576fa2a0c3e0b6b9e5ae3431e1f4c5948d4aeb74a2bbfa357057721f62f4422f55d3f4f5575e2d724bcde74ccc3e3e5f2a2cb1a2dc48e05ea78aedca7a3afa4f949cfde5efa4636101e6e40bdf06ca9cc5bb36971660eca6017cf09087fbdfd0d2ab9ca5cbfdb7ba2f57c434a393661d443e2f5d77c2033c30b741bc6c74ebe85ae1043ebc8230b378025ce317dfe62ea8e18735e74bc7c203bb9cba2549e9532fdea53d52465fca53cd271c2b98379c19cd0ffd7bd08006d0b1e5b9ce0866e3ee179f98820c98a43a6b86cd654be2f479bf20b54db1b41cdbbcfcfa12af73a8069f7c6ec3242df4ed679e7716a4828afe667dfb77aa73d1ccfadb8452511f559ed8af51772486890cb0adb53a8d9699b32ce8
|
|
|
|
|
Crypto.HaruCrypt.Decrypt(encryptedTest);
|
|
|
|
|
LoggerFactory.Logger.Debug(JsonConvert.SerializeObject(encryptedTest));*/
|
|
|
|
|
|
2023-10-14 15:01:49 +00:00
|
|
|
|
#if DEBUG
|
|
|
|
|
if (Common.Common.config.VerboseLevel < Common.VerboseLevel.Debug)
|
|
|
|
|
Common.Common.config.VerboseLevel = Common.VerboseLevel.Debug;
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-10-10 09:56:08 +00:00
|
|
|
|
PacketFactory.LoadPacketHandlers();
|
2023-10-14 17:39:26 +00:00
|
|
|
|
Task.Run(Server.Instance.Start);
|
2023-10-06 13:29:27 +00:00
|
|
|
|
SDKServer.SDKServer.Main(args);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|