Jump to content

How To Start Game with Argument


Recommended Posts

Hello,

 

If you want to protect little more you binary you can add this to protection to start the game with argument.Because if someone try to open your binary without patcher the game won't open.

 

Open the file UserInterface/UserInterface.cpp and find:

	if (strstr(lpCmdLine, "--hackshield") != 0)
		return 0;

 and add after that this:

	if (strstr(lpCmdLine, "--open-client") == 0)
		return 0;

You can add a message box, that will say Open the patcher or everything you want.

 

then compile it and open it with cmd with the argument that you add.For example:

metin2client.exe --open-client

Feel free to ask any question!

  • Love 13
Link to comment
Share on other sites

Very nice. Thanks for this.

But i have a patcher i start the game in patcher with  System.Diagnostics.Process.Start("metin2client.exe");

and now would start the client with  System.Diagnostics.Process.Start("metin2client.exe --key");

but dosent work can help me why i get this error :

Das System kann die angegebene Datei nicht finden :: System
Link to comment
Share on other sites

 

Very nice. Thanks for this.

But i have a patcher i start the game in patcher with  System.Diagnostics.Process.Start("metin2client.exe");

and now would start the client with  System.Diagnostics.Process.Start("metin2client.exe --key");

but dosent work can help me why i get this error :

Das System kann die angegebene Datei nicht finden :: System

 

Check this out: http://msdn.microsoft.com/en-us/library/h6ak8zt5%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 I think it will helps you.

Or try this:

	ProcessStartInfo startInfo = new ProcessStartInfo();
	startInfo.FileName = "metin2client.exe";
	startInfo.Arguments = "--key";
	Process.Start(startInfo);

@Shichirojii

If you do what I said in tutorial you can not open the game normally,you can open it via patcher or something like game starter with your argument.

  • Love 2
Link to comment
Share on other sites

 

 

Muy agradable. Gracias por esto.

Pero tengo un parche empiezo el juego en parche con System.Diagnostics.Process.Start ("metin2client.exe");

y ahora se inicie el cliente con System.Diagnostics.Process.Start ("metin2client.exe - clave");

pero el trabajo dosent me puede ayudar por qué me sale este error:

Das kann die Sistema angegebene nicht finden :: Sistema Datei

 

Marque esta creo que le ayuda.

O intente esto:

	ProcessStartInfo startInfo = new ProcessStartInfo ();
	startInfo.FileName = "metin2client.exe";
	startInfo.Arguments = "tecla" -;
	Process.Start (startInfo);

@ Shichirojii

Si haces lo que te dije en el tutorial no se puede abrir el juego normalmente, se puede abrir a través de parche o algo así como el juego de arranque con su argumento.

 

Thanks works perfect! How to add an argument?

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 3 months later...
  • 2 months later...
  • Active Member

 

 

 

Anyone know how start the metin2client.exe with argumen from oficial patcher?

run_path="metin2client.exe"

Thanks.

 

is there any answer ?

 

geldi-yine-tipini-siktigimin_351943.jpg

 

 

it's good to know you are following me :)

 

Nahh, I saw your post from Latest posts ;)

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 3 weeks later...

Hello,

 

If you want to protect little more you binary you can add this to protection to start the game with argument.Because if someone try to open your binary without patcher the game won't open.

 

Open the file UserInterface/UserInterface.cpp and find:

	if (strstr(lpCmdLine, "--hackshield") != 0)
		return 0;

 and add after that this:

	if (strstr(lpCmdLine, "--open-client") == 0)
		return 0;

You can add a message box, that will say Open the patcher or everything you want.

 

then compile it and open it with cmd with the argument that you add.For example:

metin2client.exe --open-client

Feel free to ask any question!

How To Starting Game with hackshield ?

Link to comment
Share on other sites

  • 7 months later...
  • 2 weeks later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.