Jump to content

Recommended Posts

42 minutes ago, Dobrescu Sebastian said:

I already gave you the topic for argument start, use your brain.

don't speak about brain when you are brain dead

ON:

search in userinterface.cpp

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{

add under

	if (strstr(lpCmdLine, "anything_you_want") == 0)
		return 0;

just like in that tutorial

and in your autopatcher you might have something like this

Start("metin2client.exe");

change it to

Start("metin2client.exe", "anything_you_want");

 

Link to comment
https://metin2.dev/topic/15418-just-start-patcher/#findComment-86572
Share on other sites

  • Premium

The same answer i gave to him. Who is brain dead now ?

+ xDiiZeRx 

After you finish the source part you go to webhost > metin2torrent.config.xml, search cur_patcher_path="game.bin" and there you put your launcher, -argument .

 

+ go to input.cpp

void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)

and Replace with : 

void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)
{
   if (!ch)
      return;

   TPacketCGClientVersion * p = (TPacketCGClientVersion *) c_pData;

        if (strcmp(p->filename, "game.bin") && ch->GetGMLevel() !=GM_IMPLEMENTOR)

        {
   DBManager::instance().Query("INSERT INTO log.wait_hack SET login='%s', nickname='%s'",
        ch->GetDesc()->GetAccountTable().login, ch->GetName());
          return;
 
       }
       sys_log(0, "VERSION: %s %s %s", ch->GetName(), p->timestamp, p->filename);
       ch->GetDesc()->SetClientVersion(p->timestamp); 
}

Go to log and execute :

DROP TABLE IF EXISTS `wait_hack`;
CREATE TABLE `wait_hack` (
  `login` varchar(50) COLLATE big5_bin DEFAULT NULL,
  `nickname` varchar(50) COLLATE big5_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_bin;

 

And you will get the player name who tried to enter without patcher.

Link to comment
https://metin2.dev/topic/15418-just-start-patcher/#findComment-86582
Share on other sites

  • Premium

If you trust my words, official patcher is more good than sanchez. Sanchez patcher have high HDD and cpu usage and can cause some incapability with some operating sistems.

I don't think you can start with argument your launcher with that, try ="Mom.exe,-argument";

Link to comment
https://metin2.dev/topic/15418-just-start-patcher/#findComment-86588
Share on other sites

sorry my bad,

 Process.Start("MoM.exe", "anything");

you can replace all this

                Process startProcess = new Process();
                startProcess.StartInfo.FileName = Globals.BinaryName;
                startProcess.StartInfo.UseShellExecute = false;
                startProcess.Start();

with just this

Process.Start("mom.exe", "anything");

 

Link to comment
https://metin2.dev/topic/15418-just-start-patcher/#findComment-86607
Share on other sites

  • 7 years later...
On 4/1/2017 at 1:12 PM, Abigo said:

sorry my bad,

 Process.Start("MoM.exe", "anything");

you can replace all this

                Process startProcess = new Process();
                startProcess.StartInfo.FileName = Globals.BinaryName;
                startProcess.StartInfo.UseShellExecute = false;
                startProcess.Start();

with just this

Process.Start("mom.exe", "anything");

 

another fix for this, if you dont want to start these things, go to Globals.cs
under
        public static string ConfigName     = "config.exe";
add a new line:

        public static string LaunchArgument = "--yourargument"; // Add this line

then in Starter.cs add this after: 
                startProcess.StartInfo.UseShellExecute = false;
 

this: 

                startProcess.StartInfo.Arguments = Globals.LaunchArgument;
 

 

 

Link to comment
https://metin2.dev/topic/15418-just-start-patcher/#findComment-167738
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.