This is a simple and small release for lotf 5017 x.x
Is just for adding a player limit to your server, so it won't crash, when there gets too many players
Open client.cs and search for:
Code:
if (MyChar.MyGuild != null)
under the whole code paste:
Code:
if (World.AllChars.Count >= 50 && Status != 8)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL.", 2011));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL.", 2500));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL.", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL!.", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL!!.", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL!!!.", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL!!!!.", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL!!!!!.", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "THE SERVER IS FULL!!!!!!.", 2000));
MyChar.MyClient.Drop();
}
Then the players will get disconnected, when they try to login, cause the server is full.
Is a LOL code?
Cuz all those who takes the public sources can not hold many players, so the server will crash for them if there gets too many players ^^ so with this there won't be that problem XD
how ever it could be done with a packet that sends the message client way.
But this is just da simple way :P
why not recode the socket? or better yet since i assume you don't know how, use infamous's socket so that the limit doesn't have to be low. 5165 source barely holds 50, i imagine lotf barely holds 20 clients before crashing. good sockets = more players, hell thats why immune has sockets that hold up to 400 clients before crashing. most likely 400 players won't play on a public sourced server, 'most likely' ..binaries are a different story.
why not recode the socket? or better yet since i assume you don't know how, use infamous's socket so that the limit doesn't have to be low. 5165 source barely holds 50, i imagine lotf barely holds 20 clients before crashing. good sockets = more players, hell thats why immune has sockets that hold up to 400 clients before crashing. most likely 400 players won't play on a public sourced server, 'most likely' ..binaries are a different story.
yeah i know, i just meant. Not everybody can recode the sockets XD
however my source is stable (untill now)
I'm not sure why someone would use this, but anyway nice release.
Looks good.
#reported
Remove our private conversation Hepatitis. I told you how inappropriate that is. I don't even know who you are and why you're doing this. Respond in the message I sent you- not on a public thread. I'm just apologizing to the community for his inappropriate behavior Hepatitis is demonstrating. Please keep flames a private matter.
@OP, nice job. I'm glad to see that there are people out there that are thinking of the unexpected. Nice work ^^ I'm not going to use it until it becomes an issue but I will give you thanks =] Just cause you deserve it bro. Good luck on your server! ^^,
#reported
Remove our private conversation Hepatitis. I told you how inappropriate that is. I don't even know who you are and why you're doing this. Respond in the message I sent you- not on a public thread. I'm just apologizing to the community for his inappropriate behavior Hepatitis is demonstrating. Please keep flames a private matter.
@OP, nice job. I'm glad to see that there are people out there that are thinking of the unexpected. Nice work ^^ I'm not going to use it until it becomes an issue but I will give you thanks =] Just cause you deserve it bro. Good luck on your server! ^^,
Thanks, but im sure he talked to my thread and about that nobdies gonna use it, but i thought peoples would cuz it can make the crash lower, if they stop players to enter server XD ^^
@.Ocularis
OK OR NO YAS MENG I NED ASTF MENG OK OR NO?
I didnt say nobody would use this, I personally didn't understand why you released it, but I do now, we'll done! anyway I think recodinv THE socket system would be easy, doubling THE amount of players, And more than that is also possible, but Will be ą littleharder. Sorry for typos, Im on my iPhone
I didnt say nobody would use this, I personally didn't understand why you released it, but I do now, we'll done! anyway I think recodinv THE socket system would be easy, doubling THE amount of players, And more than that is also possible, but Will be ą littleharder. Sorry for typos, Im on my iPhone
i tried, but failed LAWL.
I thought it was more stable, but still not :S
Can hold 10players now LOL.
so i'll try again unleast i find something x.x
[Small Release] Report Player (5165) 08/01/2010 - CO2 PServer Guides & Releases - 9 Replies Hey guys just a small release will help some people I hope.
I did not add PM/GM check to this but it can easily be added.
This is for every player so they can report players and give their reason for the report. You will need to go to your OldCODB folder and make 2 new .txt files.
reason.txtreport.txt
Now go to your NPCDialogue.cs and add this to the bottom.#region Report Player
case 9873: // make sure you change this to the npc you want to use
...
Player Limit 50 :> Arco look here ! 05/06/2010 - CO2 Private Server - 8 Replies I noticed a binary command in which players can put limits on Ex; / maxplayer 50 and can enter only 50 server! I can help someone do something?