#1 2014-04-16 09:43:12

RADIOSMERSH
Player
Russia
Reputation: 0
Location: Russia, Zelenograd
Registered: 2014-04-16
Posts: 4
Windows 7 Firefox 31.0

bf1942:// URL protocol

Inspired by new fh2:// protocol and in the light of recent news about Gamespy, I decided to create one for BF1942. It allows you to join servers from the browser just skipping the login process.

You need to install this small application and then you will be able to join servers from browser, Teamspeak, etc. just by clicking links in the form of:

bf1942://server.ip:port/{mod_name}

e.q. to join Team-SiMPLE server: click
or FHSW-Europ server: click

This installer automatically searches for BF1942 installation directory in registry, and if it fails, then it will left directory blank for user to fill in. Then it extracts .bat file into the BF1942 directory and adds some registry keys, required for operation of protocol. The program is open source and source code with resources can be found here.

Last edited by RADIOSMERSH (2014-04-16 09:52:00)

Offline

    Positive reputation 0   Negative reputation 0

#2 2014-04-16 17:00:01

tuia
BFSoldier
Portugal
Reputation: +1065
Location: Lisbon
Registered: 2012-02-20
Posts: 6,295
Website
Windows 7 Opera 12.16

Re: bf1942:// URL protocol

Thanks for sharing! I will have a look at source code before testing it.

Offline

    Positive reputation 0   Negative reputation 0

#3 2014-04-16 17:12:20

tuia
BFSoldier
Portugal
Reputation: +1065
Location: Lisbon
Registered: 2012-02-20
Posts: 6,295
Website
Windows 7 Opera 12.16

Re: bf1942:// URL protocol

In your BF1942.iss file, you could use this function to support also BF1942 downloaded from Origin as detailed in this post: http://team-simple.org/forum/viewtopic. … 361#p51361
Installer is not cleaning bf1942_from_url.bat file after uninstall and is not working in Windows 7, probably because of administrator rights.

Offline

    Positive reputation 0   Negative reputation 0

#4 2014-04-16 23:16:06

RADIOSMERSH
Player
Russia
Reputation: 0
Location: Russia, Zelenograd
Registered: 2014-04-16
Posts: 4
Windows 7 Firefox 31.0

Re: bf1942:// URL protocol

tuia wrote:

In your BF1942.iss file, you could use this function to support also BF1942 downloaded from Origin as detailed in this post: http://team-simple.org/forum/viewtopic. … 361#p51361
Installer is not cleaning bf1942_from_url.bat file after uninstall and is not working in Windows 7, probably because of administrator rights.

Fixed. Thank you very much. About uninstaller, I just removed it from installer, as there isn't much sense in it.

Offline

    Positive reputation 0   Negative reputation 0

#5 2014-04-17 09:29:39

nämeless
Semi-corrupt admin
Russia
Reputation: +2598
Location: Nizhny Novgorod, Russia
Registered: 2012-09-30
Posts: 9,767
Windows 7 Firefox 28.0

Re: bf1942:// URL protocol

if %var2%  NEQ Blank set joinIP= +joinServer %var2%
if %var3%  NEQ Blank set mod= +game %var3% +restart 1

set launchparameters=%joinIP%%mod%
START BF1942.exe %launchparameters% 

Radiosmersh, there are a lot of things people used to run from browser and this idea with Battlefield 1942 executable launch parameters and its own URL-protocol is very interesting. I have got an idea for you and Tuia, so you can add this in the project. It might help to make things easier.

P.S. Привет Зеленограду!

b6f3mt.jpg

Last edited by nämeless (2014-04-17 09:33:58)

Offline

    Positive reputation 0   Negative reputation 0

#6 2014-04-29 06:12:00

PsychoDad
Player
Reputation: +1
Registered: 2012-11-10
Posts: 29
Windows XP Firefox 28.0

Re: bf1942:// URL protocol

nämeless wrote:
if %var2%  NEQ Blank set joinIP= +joinServer %var2%
if %var3%  NEQ Blank set mod= +game %var3% +restart 1

set launchparameters=%joinIP%%mod%
START BF1942.exe %launchparameters% 

Radiosmersh, there are a lot of things people used to run from browser and this idea with Battlefield 1942 executable launch parameters and its own URL-protocol is very interesting. I have got an idea for you and Tuia, so you can add this in the project. It might help to make things easier.

P.S. Привет Зеленограду!

http://oi59.tinypic.com/b6f3mt.jpg

what you paint runs since years:

http://www.forgottenhope1.com/ServerViewer/index.php

Offline

    Positive reputation 0   Negative reputation 0

#7 2015-11-20 04:54:39

1942 Re-Textured
Player
United States
Reputation: +9
Registered: 2015-10-12
Posts: 18
Windows 10 Opera 33.0

Re: bf1942:// URL protocol

I have tried this on 3 different systems and it never works?

Offline

    Positive reputation 0   Negative reputation 0

Board footer