mtanksl / opentibia Goto Github PK
View Code? Open in Web Editor NEWA simple implementation in C# of open tibia server.
A simple implementation in C# of open tibia server.
I am curious, I am really not a C# programmer but I am trying to accomplish the usage of Rsa by using your code in 7.72 in general.
I am doing it like this:
`public static void Parse(Connection connection)
{
var message = connection.InMessage;
if (message.GetByte() != 0x01)
{
Console.WriteLine("Invalid first packet.");
connection.Close();
return;
}
var clientOS = message.GetUShort();
var version = message.GetUShort();
message.SkipBytes(12);
Rsa.DecryptAndReplace(message.Buffer, message.Position, message.Length);
connection.SymmetricKey[0] = message.GetUInt();
connection.SymmetricKey[1] = message.GetUInt();
connection.SymmetricKey[2] = message.GetUInt();
connection.SymmetricKey[3] = message.GetUInt();
var accountNumber = message.GetUInt();
var password = message.GetString();
SendDisconnectLogin(connection, "hello world");
}`
But the result of the Rsa decrypted packet is always invalid, in C++ I can manage and debug this with ease but with C# I cannot. Maybe I am doing something wrong?
The Rsa numbers are the same as yours and I am using OTC with stock RSA to test it.
Hi Mtanksl,
Hope you're doing well. I'm a Unity developer currently working on an MMO server project. While digging around, I stumbled upon your code and gotta say, it's impressive!
Just a bit curious - where did you get the ideas to structure the server the way you did? Did you follow any specific papers or already established server structures?
Also, could you shed some light on how it scales? Can it handle a large crowd, say, 3k+ players, like some OT TFS servers do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.