Giter Site home page Giter Site logo

unitymoba-server's People

Contributors

exmex avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

unitymoba-server's Issues

Finishing project?

Is there any chance of you finishing this project? Or have you abandoned it?

the name attrib doesn't exist in the current context ?

I'm getting an error in Program.cs file line 73 and 75 that attrib doesn't exist in the current context how can i solve this issue

and when i try to login in if i commented this function AddAllMethodsFromType

i get this error

Accepted client

ch:Primary receiving 133->98 body: {
"Type": "Login",
"UserName": "hello",
"Password": "world",
"DeviceType": "All",
"DeviceId": "6969696969696969697"
}
Unknown Packet (Primary): Login

so the problem is in AddAllMethodsFromType
and i can't figure out how to solve this problem

private static int AddAllMethodsFromType(IEnumerable<Type> types)
        {
            var i = 0;
            foreach (var type in types)
            foreach (var method in type.GetMethods())
            foreach (var boxedAttrib in method.GetCustomAttributes(typeof(PacketAttribute), false))
            {
                
                if (!(boxedAttrib is PacketAttribute attrib)) continue; // here attrib is not defined

                var id = attrib.Id; // here is unreachable code
                var parser = (Action<Packet>) Delegate.CreateDelegate(typeof(Action<Packet>), method);

                SetParser(id, parser);

#if DEBUG
                i++;
#endif
            }

            return i;
        }

after solving this problem now when i try to start a match i get this in the console

ch:Primary receiving 665->277 body:{
"Type": "NotifyPartyChange",
"MMaxCount": 1,
"BMainType": 1.0,
"BSubType": 51.0,
"AllowGradeCategorys": "",
"Members": [
{
"PlayerId": 1,
"PlayerName": "Test",
"PlayerAvatar": "I11000301",
"AvatarFrameId": "1",
"Vip": 1,
"Level": 1,
"GradeName": "",
"GuildName": "Staff",
"GuildPosition": 1,
"Status": 1
}
],
"Leader": {
"PlayerId": 1,
"PlayerName": "Test",
"PlayerAvatar": "I11000301",
"AvatarFrameId": "1",
"Vip": 1,
"Level": 1,
"GradeName": "",
"GuildName": "Staff",
"GuildPosition": 1,
"Status": 1
}
}

but the level doesn't load. nothing happens

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.