Help making a local Flyff Launcher. (Executing Neuz from the start button)

Results 1 to 3 of 3
  1. #1
    Enthusiast djnicke is offline
    MemberRank
    Jun 2012 Join Date
    AustraliaLocation
    37Posts

    Help making a local Flyff Launcher. (Executing Neuz from the start button)

    Hi,




    I need some help with making a patcher / launcher. I am making this in VS 2003, it is a Visual C++ Windows forms Application. I know there are probably better things to write it in but this is about learning programming.

    All I am trying to do is make a launcher that works on my local server. I don't care how it looks atm but so you know what I am doing;




    This is where I am lost, all I need is the code to launch Neuz from the same directory as the launcher is in. Such as a simple thing is fairly embarrasing to not know but I have been searching all over the place and have come up with nothing (internet nerds have overcomplified my search results).

    All I can do to get close is using System::Console:Write. (System::Console::Write("Neuz.exe"); will compile ok but doesn't run it). I have also looked into Start(string Program) etc but cannot work out how to use it. If anyone knows what the (simple) code is to launch Neuz from here please let me know.

    This is the where the code for the start button is;





    I know this probably belongs on a programming forum but I feel a bit more comfortable asking the helpful Flyff folks on here.

    Thankyou in advance!


  2. #2
    Owner raventh1984 is offline
    MemberRank
    May 2011 Join Date
    NetherlandsLocation
    1,499Posts

    Re: Help making a local Flyff Launcher. (Executing Neuz from the start button)

    You need to create an process with CreateProcess()

    Take an look in official patcher on how they do it.

  3. #3
    Enthusiast djnicke is offline
    MemberRank
    Jun 2012 Join Date
    AustraliaLocation
    37Posts

    Re: Help making a local Flyff Launcher. (Executing Neuz from the start button)

    Cool! thanks for pointing me in the right direction mate, this is what I needed (in \updater Main.cpp);

    STARTUPINFO si = { 0, };
    PROCESS_INFORMATION pi;

    // 패치 클라이언트 재 실행
    // if( FALSE == CreateProcess( NULL, "Flyff.exe 1", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ) )
    CString strCmd;
    strCmd.Format("Flyff.exe %s", g_strCmdLine);


    thanks for your help!



Advertisement