Git Product home page Git Product logo

opentibia's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

opentibia's Issues

[Question] About Rsa

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.

Server Structure

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.