Problem: When Someone Log in Ping goes High sometimes goes to 5k and all online character feels lag. Then when it load the newly character lag will gone. Is there anything wrong in the code in my teleport.cs this is the first cs run when someone log in? if i am right. Please anyone can help me about this problem.
Patch Source: 5165 from tearoare source, It use mysql.
Features.Guild TGuild = Guilds.Value;
if (GC.MyChar.MyGuild.Allies.ContainsKey(TGuild.Guild ID))
{
GC.SendPacket(Packets.SendGuild(TGuild.GuildID, 7));
}
}
}
catch { }
#endregion
Game.World.Spawns(GC.MyChar, true);
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "Welcome to " + Game.World.Server.ServerName + " ! We Are a Best CoMuNiTy ! Thanks For Enjoy..!");
NPCDialog.SendLanguageChoice(GC);
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "The oficial WebSit is " + Game.World.Server.WebSite + "");
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "Exp Rate : " + Game.World.Server.ExperienceRate + " Exp Skill : " + Game.World.Server.SkillExpRate + " Exp Prof : " + Game.World.Server.ProfExpRate + " PlayersOnline : " + Game.World.H_Chars.Count + " ");
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "The server is still being fixed. Anyway, We want you to enjoy this server.");
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "You need help? Contact Salem Rey Florida Baga");
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "Enjoy.");
GC.MyChar.MyClient.SendPacket(Packets.AttackPacket (0, GC.MyChar.EntityID, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 1, 37));
if (Game.World.KOBoard[0].Name == GC.MyChar.Name)
GC.LocalMessage(2001, System.Drawing.Color.Yellow, "You are the 1st place on the KO board, you gain 2 times more exp than others.");
if (Game.World.CurrentBC.Message != null)
GC.SendPacket(Packets.ChatMessage(GC.MessageID, Game.World.CurrentBC.Name, "ALL", Game.World.CurrentBC.Message, 2500, 0, System.Drawing.Color.White));
GC.MyChar.MyClient.SendPacket(Packets.GeneralData( GC.MyChar.EntityID, Game.World.ScreenColor, 0, 0, 104));
}
}
}
}
Nothing looks obviously wrong, but I didn't look too hard... I just wanted to tell you to remove try/catch blocks around code that won't throw exceptions, and since you have empty catches, there's no telling if you're getting an exception or not, which may help you pinpoint why it's lagging.
[HELP] 5165 Problem 08/25/2012 - CO2 Private Server - 6 Replies Ok, evertime a make a server for someone, i do everything correctly, but when they try to login it says loggin into account, and just sits there forever, any ideas how to fix this problem?
#edit
I know it ain't a login freeze cause I have reset it millions of times.
[Help]5165 problem 12/10/2010 - CO2 Private Server - 2 Replies this is the original 5165 released.
Blowfish.cs line 85:
Native.BF_set_key(_key, data.Length, data);
BlowFish.cs Line 15:
_blowfish.SetKey(key);
[5165]Problem please help must see this. 03/25/2010 - CO2 Private Server - 6 Replies When I'm in the middle of playing in my server, automatically a box problem appeared in my source I don't know what this problem from. If anyone can help me how to fix this?
http://www.mypicx.com/uploadimg/858154149_0324201 0_1.jpg
[Help]5165 Problem 03/17/2010 - CO2 Private Server - 3 Replies After some time without using my source, i found some stange bug....
The gears were in the wrong place :S
Here is the Screenshot:
http://img443.imageshack.us/img443/7758/21249528. jpg
Does anyone know how to fix this?
Thanks in advance