Page 1 of 3

BF2 Launcher (beta)

Posted: 2010-10-06 19:45
by AfterDune
I'll update this post when needed.


I got tired of all the BF2-mod shortcuts I had on my desktop and wanted to reduce them. So, I made a little BF2 launcher :p . It works on my pc so far, it'd be nice if you could try it out as well.

Here's what it looks like right now, plain and simple:
Image
Looks shit. What does it do?
It's a simple ".hta" file. HTA stands for "Html Application". It reads the BF2-path from the registry, reads the mods from your mod-directory and auto-selects any previous selected options (mod, resolution, fullscreen, debugger). The .hta file is located online, so you don't have to download anything. Plus, updates are automatically loaded when you start the launcher, easy eh?
All information is stored in cookies, those are stored on your pc. NOTHING is saved online (check the source code if you don't believe me ;) ).


How to run?
Easy, create a new shortcut, put the following line in the target:

Code: Select all

mshta.exe "http://thirdforces.internationalconspiracy.org/~afterdune/pr/launcher/launcher.hta"
You can give the shortcut any icon you want, so your desktop does not contain a lame icon :p . Anyway, launch the shortcut and the BF2 Launcher will be loaded.

I need help!
Missing a resolution? A mod doesn't have a decent name displayed? Anything else? Post here and I'll see what I can do. Please note, I'm not gonna spend too much time on fixing "bugs", since it works like a charm on my pc ;) .


Have fun! Hope it works for you as well.

Re: BF2 Launcher (beta)

Posted: 2010-10-06 20:48
by cyberzomby
Nice! I only have PR installed so it wont be needed for my needs ^_^ (FH is on my external hard-disk with its own copy of BF to go with).

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:11
by /Randoph/
It doesn't work for me with debugger option,but otherwise its good.

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:13
by AfterDune
Strange. That one worked for me :p .

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:28
by karambaitos
if you could add 1280x768 and 1366x768 for 16:9 screens that be awesome

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:30
by AfterDune
Should have them now. Could you check?

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:33
by karambaitos
WOOT they are there thx, but i also cant launch it with debugger checked

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:36
by AfterDune
Do you guys even have bf2_r.exe? :p

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:38
by Ts4EVER
Does this work with the FH2.exe? Otherwise it could mess u your shaders if you start FH2 with it.

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:41
by AfterDune
Yes it does.

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:46
by karambaitos
[R-DEV]AfterDune wrote:Do you guys even have bf2_r.exe? :p
im sorry im just a mere mortal, dont kill me! and nope

Re: BF2 Launcher (beta)

Posted: 2010-10-06 21:47
by AfterDune
I should do a check on that I guess :p .

Re: BF2 Launcher (beta)

Posted: 2010-10-06 23:18
by MikeDude
What does ''debugger'' mean anyway? Ive seen people talk about Debugging more often. What does it do? And why is it needed in some cases?

Re: BF2 Launcher (beta)

Posted: 2010-10-07 05:09
by AfterDune
This option is handy for mappers for example. Like, sometimes your map crashes. If you run BF2 through the debugger, it logs all the errormessages and in most cases, the one that crashes your map is logged as well.

If you only play PR (or any other BF2 mod for that matter) you don't need to use it.

Re: BF2 Launcher (beta)

Posted: 2010-10-07 07:49
by sweedensniiperr
there's only one mod on my desktop <3

Re: BF2 Launcher (beta)

Posted: 2010-10-07 09:05
by Glimmerman
I tested it with Dutch forces but it didnt load at all for some reason.

Re: BF2 Launcher (beta)

Posted: 2010-10-07 09:36
by AfterDune
That's probably because it wants to launch [mod-folder]\pr.exe - which doesn't exist yet. Copy your pr.exe into the pr_daf_repo folder and try again (if it works, repo it as well ;) ).

Re: BF2 Launcher (beta)

Posted: 2010-10-07 09:40
by Hotrod525
i dont need this since the only thing that i play on BF2 engine is PR :D

Re: BF2 Launcher (beta)

Posted: 2010-10-07 09:42
by Durkie
thnx Afterdune it works great :-D

Re: BF2 Launcher (beta)

Posted: 2010-10-07 10:15
by Oddsodz
Interesting tool. but you are missing the res of 1920X1200.

I Have also include it in my next update to the PR-Downloader for 0.95 Unless you don't want me too