exmex / unitymoba-server Goto Github PK
View Code? Open in Web Editor NEWServer for UnityMoba
Server for UnityMoba
Is the project updating now?
I can't find any documentation on how to run this server ?
Is there any chance of you finishing this project? Or have you abandoned it?
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
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.