LCKB
sl.dta remove - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124)
+----- Forum: Ep4 Guides (https://lckb.dev/forum/forumdisplay.php?fid=125)
+----- Thread: sl.dta remove (/showthread.php?tid=3117)



- rondo157 - 01-03-2021


Engine/Network/CommunicationInterface.cpp

int CCommunicationInterface::ReadInfo( LoginServer* stLogin )
{
{
sprintf(stLogin[0].szAddress, "your ip"); //edit to your server port/ip
sprintf(stLogin[0].szPort, "%d", port); //pwesty sl.dta removal
}

return 1;
}

Credits: pwesty

Dont forget to change ip here:

Line: 784

{
TempIP.SetIP( 127, 0, 0, 1, USA);
m_vecIPFilter.push_back( TempIP );
}

 




- netoforlan2 - 03-13-2021


I'm not able to compile when I add the code

 

 




- Scura - 03-14-2021


post the errors that the compiler show !




- rondo157 - 03-14-2021


Did you deleted fully function ReadInfo and replaced?

What error?

must be like here: 2




- Scura - 03-14-2021


Tested, can confirm that it works! 

Rondo explained well how it works, probably you just need to configure correctly the variables /index.php?/profile/20320-netoforlan2/&do=hovercard" data-mentionid="20320" href="/index.php?/profile/20320-netoforlan2/" rel="">@netoforlan2

Example:

//Engine/Network/CommunicationInterface.cpp
int CCommunicationInterface::ReadInfo( LoginServer* stLogin )
{
int port = 4001; //change here the port, i've just created a simple var that store the port value

sprintf(stLogin[0].szAddress, "127.0.0.1"); //edit the "127.0.0.1" with your ip, leave the ""
sprintf(stLogin[0].szPort, "%d", port); //pwesty sl.dta removal

return 1;
}

Then check "CommunicationInterface.cpp"

Line: 784

{
TempIP.SetIP( 127, 0, 0, 1, USA); //here you can change 127, 0, 0, 1 with your ip like --> TempIP.SetIP(93, 128, 450, 34, USA);
m_vecIPFilter.push_back( TempIP ); //don't touch this line
}

Hope to have helped ? 

 




- netoforlan2 - 03-15-2021


I managed to solve thank you all