Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Just start patcher


xDiiZeRx

Question

  • Answers 16
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

16 answers to this question

Recommended Posts

  • 0
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
Share on other sites

  • 0
  • 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
Share on other sites

  • 0
  • 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
Share on other sites

  • 0

in sanchez autopatcher

search in Starter.cs

startProcess.Start();

change to

startProcess.Start("MoM.exe", "anything_you_want");

and delete

startProcess.StartInfo.FileName = Globals.BinaryName;

 

Link to comment
Share on other sites

  • 0

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
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 4

      problem Dargon Soul Changre Attribute

    2. 41

      Global Chat

    3. 4

      problem Dargon Soul Changre Attribute

    4. 2

      Startup Loading Window Library

    5. 28

      Ludus2: metin2 fan project

    6. 44

      Inbuild GR2 Animation

    7. 6

      Minimap Mob proto

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.