LCKB
need little help with server source - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196)
+---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192)
+---- Thread: need little help with server source (/showthread.php?tid=4051)

Pages: 1 2


- Nikolee - 10-03-2014


Hey guys, im trying to make the old Source working but got little problem.

After i try to login with the Client the LoginServer send the first Packet for the Channels buuuut

the Packet is wrong, well not wrong but the IP and Port is missing..

 

LoginServer looks okey:

 

But the Packet looks like this:

 

I set the IP also manually in the Source and tried to send it for 8 Channels but it didnt worked.

 

And i checked in the Connector source it send just an empty IP and empty Port but i dont understand the IF-Statement.

for (i = 1; i <= gserver.m_maxSubServer; i++)
{
msg << i;
if (result[i - 1])
{
msg << gserver.m_userList[result[i - 1]->m_subno - 1].m_count
<< result[i - 1]->m_ipAddr
<< result[i - 1]->m_portNumber;
}
else
{
msg << (int)-1
<< ""
<< (int)0;
}
}
I guess the LoginServer and Connector have some trouble , hope anyone got a suggestion and can explain me this if(result[i-1]) statement.^^

 




- zicke - 10-03-2014


2009 Files ? 

I see you don't use crypt right ?

the if say if the  i (example it is maxsubserver 5), do the 5 - 1 => 4 

so if i == 4 so result the ip and port number




- Nikolee - 10-03-2014


No i removed the Crypt.

So i have to add some subserver to get the ip & port?

i tried with 8 subserver but result was the same i dont understand why the ip is null and port also..




- Nikolee - 10-03-2014


@zicke lol it actually worked i missed just one setting file loololol

Well i can login but if i start a GameServer i cannot login lol serious [CeNsOrEd]




- zicke - 10-03-2014


yes i think so, the server haven't know how much sub servers set (default is every 0 = don't work) Wink

 

billing server running ? without it is possibly the connector do not transfer you to the gameserver




- Nikolee - 10-04-2014


Yeah i actually got the Problem with the BillingServer can i use the one from wizatek? 

To be specific this is my error in Connector but in gameserver all looks okey lol..




- zicke - 10-04-2014

Yeah you can use that from wiza  it should work fine, this with no billing etc. are not important it works Wink




- Nikolee - 10-04-2014


Im having trouble atm to enter the Char Selection, if you have any suggestion what it could be? - It says just Timed Out but the Problem is the Packet is wrong.

But i cant find this Packet to change it -,-




- zicke - 10-05-2014



Im having trouble atm to enter the Char Selection, if you have any suggestion what it could be? - It says just Timed Out but the Problem is the Packet is wrong.

But i cant find this Packet to change it -,-

All servers running (billing too) ?

How looks your packet ?  

From Channel to Char Selection it is the task from the connector to transfer in the gameserver




- Wizatek - 10-05-2014


The billing server is not important.

remember Eternia Episode 1 ran also without billing server.

 

What yo have to do to make the packets right is undefine all the nightshadow things