Page 2 of 3

Re: Gameclient and Visual Studio

Posted: Tue Oct 20, 2015 3:56 pm
by Sacrifice
Sacrifice wrote:
Sacrifice wrote:
FunBeast wrote:Thx for advice - working now!
And how did you do it?, because I have installed visual studio 2012 and has not worked for me.
Will I need to add something else or what?.
If rules could be brocken posting this type of information... tell me it in private message and no problem...

@Zoey76 I have a solution for start executable file with administrator privileges. But, I'm waiting here response for test with original client (version 196 i think) and supply you the executable solution, including source code ofc.

Can you give me a hand you too?
Have you said it was for windows 7? ... It is just that I need to replace another library Windoors 10 ... I'll try and say something here.

Re: Gameclient and Visual Studio

Posted: Tue Oct 20, 2015 6:59 pm
by Sacrifice
Sacrifice wrote:
Sacrifice wrote:
FunBeast wrote:Thx for advice - working now!
And how did you do it?, because I have installed visual studio 2012 and has not worked for me.
Will I need to add something else or what?.
If rules could be brocken posting this type of information... tell me it in private message and no problem...

@Zoey76 I have a solution for start executable file with administrator privileges. But, I'm waiting here response for test with original client (version 198 installer version 2.1) and supply you the executable solution, including source code ofc.

Can you give me a hand you too?
Impossible that works doing exactly... I compiled with line

Code: Select all

ShellExecute(0, L"open", L"cmd.exe", L"/C start l2.bin IP=127.0.0.1", 0, SW_HIDE);
and in local destination address with original system is: 64.25.35.104 (resolved as l2authd.gtm.Lineage2.com)

Re: Gameclient and Visual Studio

Posted: Tue Oct 20, 2015 10:47 pm
by Sacrifice
Could be... like this?:

Code: Select all

ShellExecute(0, "open", "cmd.exe", "/C start l2.bin IP=127.0.0.1", 0, SW_HIDE);
Without "L"??

Re: Gameclient and Visual Studio

Posted: Wed Oct 21, 2015 11:05 am
by Sacrifice
Sacrifice wrote:Could be... like this?:

Code: Select all

ShellExecute(0, "open", "cmd.exe", "/C start l2.bin IP=127.0.0.1", 0, SW_HIDE);
Without "L"??
Wrong :oops: :oops:

Re: Gameclient and Visual Studio

Posted: Thu Oct 22, 2015 2:26 am
by Zoey76
It works.

Re: Gameclient and Visual Studio

Posted: Thu Oct 22, 2015 9:07 am
by Sacrifice
In localhost cant work for me. Tell me like a whisper "the steps" :lol: you follow. Having in mind a original system folder, recently installed client and recently compiled L2.exe file from your repo inside original system. Thats will be my first step.... wich are the next steps... tell me and dont be bad :evil: as I told you... like a whisper... :lol:

Re: Gameclient and Visual Studio

Posted: Fri Oct 23, 2015 4:37 am
by Zoey76
Sacrifice wrote:In localhost cant work for me. Tell me like a whisper "the steps" :lol: you follow. Having in mind a original system folder, recently installed client and recently compiled L2.exe file from your repo inside original system. Thats will be my first step.... wich are the next steps... tell me and dont be bad :evil: as I told you... like a whisper... :lol:
What OS are you using?

Re: Gameclient and Visual Studio

Posted: Fri Oct 23, 2015 8:23 am
by Sacrifice
Windoors 10. It affects to something?...

Re: Gameclient and Visual Studio

Posted: Sat Oct 24, 2015 9:55 pm
by Zoey76
Sacrifice wrote:Windoors 10. It affects to something?...
I haven't tested it there yet, I have VM with Win10 but it's not good enough to run the client.

Re: Gameclient and Visual Studio

Posted: Sat Oct 24, 2015 10:19 pm
by Sacrifice
Then I understood perfectly.

Look... I installed a clean client high five (from 0). Later I rename .dll as -libraryname-.-dll-(for disable gameguard). Later i copied a new library .dll (from imternet) or other system patched that dont have gameguard. Later I copy inside system folder a L2.exe with IP=127.0.0.1. Later I run L2.exe with administrator privileges. Game start, I wrote ID and password and cant pass from login screen. Using wireshark to capure packets from/to por 2106 i discover that cant point to local machine but NCZ0ft. Seems to be that IP=127.0.0.1 nots the command probably being another one...

Any ideas??.
Works on windoor7?

Re: Gameclient and Visual Studio

Posted: Sun Oct 25, 2015 12:29 am
by Zoey76
Sacrifice wrote:Then I understood perfectly.

Look... I installed a clean client high five (from 0). Later I rename .dll as -libraryname-.-dll-(for disable gameguard). Later i copied a new library .dll (from imternet) or other system patched that dont have gameguard. Later I copy inside system folder a L2.exe with IP=127.0.0.1. Later I run L2.exe with administrator privileges. Game start, I wrote ID and password and cant pass from login screen. Using wireshark to capure packets from/to por 2106 i discover that cant point to local machine but NCZ0ft. Seems to be that IP=127.0.0.1 nots the command probably being another one...

Any ideas??.
Works on windoor7?
I use it every day on Win7 without even touching any client DLL.

Re: Gameclient and Visual Studio

Posted: Sun Oct 25, 2015 9:51 am
by Sacrifice
Then its an incompatibility with windoors 10!!!... stupid operating system!.

Re: Gameclient and Visual Studio

Posted: Sun Oct 25, 2015 5:41 pm
by UnAfraid
Windows 10 supports it just fine, you did something really wrong.

Re: Gameclient and Visual Studio

Posted: Sun Oct 25, 2015 9:18 pm
by Sacrifice
Then I will send test system to @Zoey76 via private PM with the idea that he can test...

Re: Gameclient and Visual Studio

Posted: Mon Oct 26, 2015 9:35 pm
by Sacrifice
This line

Code: Select all

ShellExecute(0, L"open", L"cmd.exe", L"/C start l2.bin IP=127.0.0.1", 0, SW_HIDE);
and in concrete

Code: Select all

IP=127.0.0.1
not work
for test...
config on your windows/system32/drivers/etc/hosts file... from 127.0.0.0 localhost to #127.0.0.0 localhost you can see that no work
and do another test compile with this line (dont include IP=127.0.0.1):

Code: Select all

ShellExecute(0, L"open", L"cmd.exe", L"/C start l2.bin", 0, SW_HIDE);
it's the same put or dont put

Conclusion:
1.- L2.exe don't point to 127.0.0.1 or any other IP or host. It's doing host file.
2.- You need with this L2.exe edit your host equally.

and too need to add manifest (Microsoft.VC80.OpenMP.manifest) externally or well L2.exe dont start.

I sended @Zoey76 via private message a complete system folder with which I have been tested... (dont include gameguard) and start from original system when you install from cero Lineage 2 High Five. With this folder system if I start client and dont touch host file dont pass from login section, but if I edit host file and I add lines:

Code: Select all

127.0.0.1 L2authd.Lineage2.com
127.0.0.1 nprotect.lineage2.com
only in that case I can login from I wish.