Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SagaLegacy] Contain more Players!

Skilled Illusionist
Joined
Jul 5, 2006
Messages
329
Reaction score
81
i find a way to contain more player but i'm not sure because i can't compile!
first
open SagaLogin/LoinServer.cs
find
// let new clients (max 10) connect
LoginClientManager.Instance.NetworkLoop( 10 );

replace with
// let new clients connect
LoginClientManager.Instance.NetworkLoop( 100 );

if you want more then change 100 to num to contain player you want!



i hope this works! :thumbup:
 
Last edited:
Newbie Spellweaver
Joined
Jun 3, 2008
Messages
15
Reaction score
0
I've gotten it to compile, but without a userbase I have no way of telling if it truely works like it should so please let me know if it does, if it doesnt i can always set the 10 limit to some odd number like 3000 which is MORE than any one setup should need.



if this does work i'll start looking into adding some of the missing skills
 
Junior Spellweaver
Joined
Nov 23, 2004
Messages
125
Reaction score
2
When you configure you server it asks you how many players max is allowed to connect.
 
Experienced Elementalist
Joined
Apr 3, 2004
Messages
240
Reaction score
19
Hmm i found that in source before but i wasn't sure if it actually increased the amount of allowed players.
Also i didn't bother looking into it cus i didn't have VS2008 at that time and could not compile the changed source.
Now that you're pointing it out as well i think it might just be that part that changes the max players.
Thats the good thing about server sources...you can't hide poop in that like u can in compiled files ^^

I got VS right now, i will compile the changed source today and run it on my server to see if it changes the max players...
 
Newbie Spellweaver
Joined
Jun 3, 2008
Messages
15
Reaction score
0
so i take it that me taken the time to post it was worthless?
 
Skilled Illusionist
Joined
Jul 5, 2006
Messages
329
Reaction score
81
The easy way to edit are

// let new clients (max 10) connect
LoginClientManager.Instance.NetworkLoop( 10 );

Change 10 in the red for number of players you want to contain! :thumbup1:

i'v got C# compile it done very good to contain more player my server is Thai people server
The client support our language that's cool! i'll love this game!
 
Newbie Spellweaver
Joined
Jun 3, 2008
Messages
15
Reaction score
0
guess you dont read, but here it is again anyways
 
Newbie Spellweaver
Joined
Nov 4, 2005
Messages
66
Reaction score
3
I have found the solution to increase allowed clients on Legacy posted below:
In visual studio c#, open SagaLogin (Visual C# Project file should be in the SagaLogin Folder),
once open double click LoginClient.cs and look for the statements below:
TimeSpan span = server.lastPong - server.lastPing;
if (span.TotalMilliseconds < 50)
cInfo.ping = CharServer.Status.OK;
else if (span.TotalMilliseconds < 300)
cInfo.ping = CharServer.Status.CROWDED;
else if (span.TotalMilliseconds >= 300)
cInfo.ping = CharServer.Status.OVERLOADED;
#if Preview_Version
if (LoginClientManager.Instance.clients.Count > 15)
cInfo.ping = CharServer.Status.OVERLOADED;
#endif
And make it look like this:
TimeSpan span = server.lastPong - server.lastPing;
if (span.TotalMilliseconds < 50)
cInfo.ping = CharServer.Status.OK;
else if (span.TotalMilliseconds < 300)
cInfo.ping = CharServer.Status.CROWDED;
else if (span.TotalMilliseconds >= 300)
cInfo.ping = CharServer.Status.OVERLOADED;
else if (LoginClientManager.Instance.clients.Count > 15)
cInfo.ping = CharServer.Status.OVERLOADED;
:?:
Make sure you do this (add--> else if(LoginClientManager.Instance.clients.Count > 15)) if you do not you will get errors
Now you server should support 150+ clients :thumbup1:

Remember to recompile everything (login, gateway, and map)
 
Last edited:
Newbie Spellweaver
Joined
May 2, 2006
Messages
35
Reaction score
3
I have found the solution to increase allowed clients on Legacy posted below:
In visual studio c#, open SagaLogin (Visual C# Project file should be in the SagaLogin Folder),
once open double click LoginClient.cs and look for the statements below:

And make it look like this:

:?:
Make sure you do this (add--> else if(LoginClientManager.Instance.clients.Count > 15)) if you do not you will get errors
Now you server should support 150+ clients :thumbup1:

Remember to recompile everything (login, gateway, and map)



you've actually found the right place, did you notice that there is a #define Preview_version or something like that at the top of the file?
it defines it to be Preview Version and only allow a certain amount of player to connect. just comment out the #define line to disable the connection limit.
Hint, this isn't the only place where should be comment out. there are totally 3 places
 
Back
Top