Page 1 of 1

Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 1:29 am
by stephenxpimentel
Hey Guys, i was wondering if u could explain to me how to make my launcher load my server.. of course this wouldn't replace daocportal but in the rare occasion that portal is down, i'd like there to be a way for players to connect :) Thanks any help is greatly appreciated!

Re: Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 1:41 am
by Kakuri
A custom launcher would be nice, but if you can't manage that then you can always tell players how to add an entry for your server in the Custom Shards tab of daocportal, or provide a simple batch file that uses dolloader.exe.

Re: Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 1:56 am
by stephenxpimentel
here is my code so far for the launcher, atm the IP is hardcoded, that will prob be changed to be updateable incase of a change, but here is what it is so far. let me know if u think it will work =]
Code: Select all
private void LogInButton_Click(object sender, EventArgs e)
{
if (AccountBox.Text != "" && PasswordBox.Text != "")
{
Process dolloader = new Process();
dolloader.StartInfo.FileName = "dolloader.exe";
dolloader.StartInfo.Arguments = DAoCDirectory + " 71.232.198.160 10300 "+ AccountBox.Text+" "+ PasswordBox.Text;
dolloader.Start();
}
}
i think the names are kinda self explanatory =] Thanks for ur comments!

Re: Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 2:10 am
by Etaew
If you set a favourite server on the portal can't you connect to that even if the list is unavailable?

Re: Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 2:26 am
by DOLBot
I'm pretty sure that when the DOL site is down and the portal, you can still connect through custom shards.

Re: Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 2:34 am
by stephenxpimentel
I'm pretty sure that when the DOL site is down and the portal, you can still connect through custom shards.
u can. lol im just trying to do something i've never done before =]. trying to learn from it and what not, but its hard because i got it to try and load dolloader.exe, but now its saying "Game file not found, please check the first parameter". could anyone with the source code to dolloader tell me the order things need to be in? daoc path, ip, port, account name, password, am i missing some? :)

Re: Creating a Custom Launcher

PostPosted: Wed Nov 25, 2009 4:18 am
by Deniska
DOLLoader.exe <path_to_game.dll> <ip> <port> 1 <username> <password>
Afaik 1 was introduced in some version of the client. Try add this "1" after port and launch again.