|
You last visited: Today at 01:00
Advertisement
[Small release]Player limit
Discussion on [Small release]Player limit within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
03/31/2010, 19:30
|
#1
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
[Small release]Player limit
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?
|
|
|
03/31/2010, 20:07
|
#2
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
I'm not sure why someone would use this, but anyway nice release.
Looks good.
|
|
|
03/31/2010, 22:32
|
#3
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
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
|
|
|
03/31/2010, 22:44
|
#4
|
elite*gold: 0
Join Date: Oct 2006
Posts: 75
Received Thanks: 17
|
pserv owner know the use of it , nice release
|
|
|
03/31/2010, 22:47
|
#5
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by gad-legion
pserv owner know the use of it , nice release
|
know the use of what and thanks ^^
|
|
|
03/31/2010, 23:46
|
#6
|
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
|
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.
|
|
|
04/01/2010, 00:01
|
#7
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by p s y k h d
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)
|
|
|
04/01/2010, 01:55
|
#8
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
no....
go to where they actually do strt to login
... check out ym old ip ban release at the same line do like
|| World.AllChars.Count > 20)
Socket.Disconnect();
return;
disconnects before they even login ><
|
|
|
04/01/2010, 02:09
|
#9
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
good
|
|
|
04/01/2010, 06:39
|
#10
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by Hepatitis X
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! ^^,
|
|
|
04/01/2010, 07:11
|
#11
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by -NewDawn-
#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?
|
|
|
04/01/2010, 11:35
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
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
|
|
|
04/01/2010, 12:02
|
#13
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by Hepatitis X
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
|
|
|
04/01/2010, 15:52
|
#14
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
A nice tutorial:
|
|
|
04/01/2010, 18:22
|
#15
|
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
|
What source are you using that can't get past 10 players? and what exactly happens? server crash? if so can you print out the errors?
|
|
|
 |
|
Similar Threads
|
[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?
|
how to know what limit max player in my server
05/03/2009 - EO PServer Hosting - 4 Replies
how to check the limit maximum player and how to set
|
ECSRO Player Limit?
07/24/2008 - SRO Private Server - 23 Replies
Hi,what a Player limit have ECSRO? Its always full. Can they set the limit up?
|
All times are GMT +1. The time now is 01:00.
|
|