[C++] kalonline launcher

Newbie Spellweaver
Joined
Jan 25, 2007
Messages
44
Reaction score
0
i am trying to make a kalonile updater
i tryed to do this before and i made the launcher but all the files got deleteed and i forgot how i made it
so i am in the launcher part again
and i am using c++
so i wanna open the kalonline.exe with the exec function but i cant remmeber i used to call it like this
exec(kalonilne\something\somthing,sv_maximized)
or somthing like that but i forgot what are those somthings (kalonline\..\.. --- wut shoud i write here to make the game open :P
 
Re: kalonline launcher

Should those somethings be the relative path to the Kal exe?
I don't know cpp that well so the things after the first initial parameter could either be passed args to the client or another parameter that affects the client but doesn't pass variables...

Either way I'm pretty sure those somethings are its relative path from the launcher.
 
Re: kalonline launcher

well sorry i dont know the reason but someone told me to write it like this
kalonline.exe\somthing\somthin
but i cant remmeber
he didnt explain :P
 
Re: kalonline launcher

#include<stdlib.h> or #include <windows.h>

system("start c:\Documents And Settings\Me\wow.exe");

Something like that (for windows atleast). You can use relative paths or absolute ones...
 
nah he means two arguments because kalonline.exe is a launcher itself...
u could use the engine.exe if u just wanne launch kalonline after the update ... otherwise im not sure but the arguments might be +/load/config .. but not sure
 
Start Game :

Code:
ProcessStartInfo file = new ProcessStartInfo();
            Process kalonline = new Process();
            file.Arguments = "/load /config debug";
            file.FileName = "engine.exe";
            file.WindowStyle = ProcessWindowStyle.Maximized;

            kalonline.StartInfo = file;
            kalonline.Start();

            Application.Exit();

Game option:
Code:
ProcessStartInfo file = new ProcessStartInfo();
            Process kalonline = new Process();
            file.Arguments = "/setup";
            file.FileName = "engine.exe";
            file.WindowStyle = ProcessWindowStyle.Normal;

            kalonline.StartInfo = file;
            kalonline.Start();
 
well i solved it like this :
Code:
winexec("engine.exe\load\config",SW_MAXIMIZE);
and include windows .h :P thanks for ur help all
 
or...
Process.Start("engine", "/test")
(this will be in the same folder)

(its a vb code but im reisntalling my c++ so i cant sat if is same (but should be lol)
 
to make a simple launcer I would recommend eScription - Home in case you never heard of it, check it out.

to launch a prog, with autoit, you will need only this line. & vuala.
Code:
Run("@ScriptDir & "\engine.exe")


to make a GUI with couple seconds in autoit you can use KODA - FormDesigner
 
Back