d1emain3qc
04-07-2005, 09:56 PM
I need help here. I have been trying to get this to work for every one but it seem to work only for me.
I created block that when you click on the image for COD UO server or CS SOURCE server it auto connects you to that server.
Here is the code.
<div align="center">
<table class="buttonbar" border="0" id="table1">
<tr>
<td class="sidebartitle"><center>
<a href="coduo://67.18.27.228:28960/?game=Call of Duty: United Offensive">
<img src="http://www.d1eclan.net/images/link/final.gif" border="0"></a><br>
<br>
<a href="steam:%20-applaunch%20240%20+connect%67.15.59.145:27015">
<img src="http://www.d1eclan.net/phpnuke/images/link/final1.gif" border="0"></a><br>
<br>
Connect 24/7<br>
<br>
Provided by: <a href="http://www.d1eclan.net">|D1E|Clan</a>
</center> </td>
</tr>
</table>
Ok I tested it on my PC it works fine other members tried it it gives them a blank web page. Does any one know if this is the proper code and if not can some one help me with this.
Thanks
d1emain3qc
04-07-2005, 09:59 PM
I also wanted to add a password feild if needed for the COD UO server connection.
Weird request but I am working on some little project of mine.
Thanks
d1emain3qc
04-08-2005, 11:58 AM
I hope some one can help with this one.
d1emain3qc
04-08-2005, 08:28 PM
I just completed searching for a way to get people to join a COD UO Server from a web page. The main objective to this was to create a page that would be easy to join a PUG UO SD 24/7 Match server. So for the people interested in joining a PUG match please try this link and give me some feed back. http://www.d1eclan.net/phpnuke/modu...-Chat/chat.html
And for those wanting the code well here we go:
To launch a server with no password.
Code:
<td class="sidebartitle"><center>
<a href="coduo://66.165.90.151:28960?game=Call of Duty: United Offensive">
<img src="http://www.d1eclan.net/phpnuke/images/link/final.gif" border="0"></a>
To launch server with password.
Code:
<td class="sidebartitle"><center>
<a href="coduo://66.165.90.151:28960/?password=test123"/?game=Call of Duty: United Offensive">
<img src="http://www.d1eclan.net/phpnuke/images/link/final.gif" border="0"></a>
Some brosers dont support Application launch from a web site download this http://www.d1eclan.net/phpnuke/down...tarter-1.23.exe
And for COD it is the same but you replace EXP.
Code:
<td class="sidebartitle"><center>
<a href=""cod://212.42.16.96:29362/?game=Default"">
<img src="http://www.d1eclan.net/phpnuke/images/link/final.gif" border="0"></a>
Some one ask me about CS well this I am not sure but something like this might work.
Code:
href="://212.42.16.38:28912/?game=Counter Strike (Steam)"
Any ways I hope this is going to help some one else..
OldDog
04-09-2005, 09:10 AM
What d1emain3qc is saying here is that there is a Java class called "coduo" that can be used by a browser to start a game from within a web site. Unless you have this class loaded (pretty unlikely...it wasn't in my case), you will need to install a program called URLGameStarter. His link is broken, above, so you can get it here: http://www.olddogvt.net/downloads/urlstarter.zip. His code, in the example is correct, I tested it myself on both my server and his, but connecting clients must have the Java class installed for it to work. The program puts the class(es) on your machine, for any game that it finds (in my case, CoD, CoDUO, Doom3, SOF, MOHAA(+Spearhead and Breakthrough, etc.), although I don't know the classes for the others.
A non-client dependent method is also available. The only problem with it is that it works only with IE. The code (complete HTML) is below. I acquired this from someone who I've forgotten...whoever it was, please forgive me for not giving you the credit. It also works quite well, as long as you follows the ActiveX rules stated on the web page (not completely secure, though, so beware, given IE's much-deserved rep):
<HTML>
<STYLE>
<?
include($libpath."default.css");
?>
</style>
<SCRIPT language="VBScript" type="text/vbscript">
Function PopExe
'declare variables
Dim WSHShell,str_RegKey,str_codpath,str_homepath,str_b asepath,str_codexe,str_ip
'Create WinShell object
Set WSHShell = CreateObject("WScript.Shell")
'Read the CoDUO install path
str_RegKey="HKLM\SOFTWARE\Activision\Call of Duty\InstallPath"
'Add CoDUOMP.exe to the cod path
str_codpath=WSHShell.RegRead(str_RegKey) + "\CoDUOMP.exe"
'Define fs_homepath for use in executing CODUOMP.exe
str_homepath=WSHShell.RegRead(str_RegKey)
'Define fs_basepath for use in executing CODUOMP.exe
str_basepath=WSHShell.RegRead(str_RegKey)
'Define the IP by Hostname (or IP)
str_ip="olddog.kicks-ass.net"
'Define the execution command setting
str_codexe= str_codpath + " +set fs_homepath " + str_homepath + " +set fs_basepath " + str_basepath + "+connect " + str_ip + " +cl_allowdownload 0"
'Execute CoDUOMP.exe from the users install folder and connect to the defined server
WSHShell.Run str_codexe, 1, true
'Clear WSHShell
set WSHShell = nothing
'End Wscrpt, destroying the object
Wscript.quit(0)
End Function
</SCRIPT>
<body bgcolor="#000000">
<center>
<table align="center" cellspacing=0 cellpadding=4 width="80%" border=0>
<tr>
<td> <div align=center>
<img border="0" src="Images/cod-uo-logo2.jpg" width="269" height="100"><br><font size="3" color="#FF0000">Warning: Game Launch will only work in Internet Explorer!</font></div></td>
</tr>
<TR>
<TD> <div align=center><form><input type="button" name="btnLaunch" onClick="PopExe" value="Click Here to Join The OldDog Server"></form></div></TD>
</TR>
<table border="1" cellpadding="3" cellspacing="5" class="top-table" style="border-collapse: collapse; color: #FFFFFF; font-family: Tahoma; font-size: 8pt" width="80%">
<TR>
<TD align="center"><BR><BR><font color="#FFFFFF"><div align=left>If clicking the "Join The OldDog Server" button doesn't work, follow these steps:
<OL><LI>Select "Tools" --> "Internet Options"
<LI>Click on the "Security Tab"
<LI>Click on the "Custom Level" button
<LI>Under "ActiveX controls and plug-ins", find the section "Initialize and script ActiveX controls not marked as safe"
<LI>Select the option "Prompt"
<LI>Click on the "OK" button to confirm the security change
<LI>Click on the "OK" button to close the "Internet Options" form
<LI>Click on the Join OldDog Public Server button again and click OK to the message prompt; you will then auto-connected to the server.</OL></font></TD>
</TR>
</table>
</body>
</HTML>
I am using this on my web site now, see it in action at http://www.olddogvt.net, and look in the contents to the left for the "Join the OldDog Server" link. This is quite a slick script...but it assumes a standard install path for CoDUO. It then creates a Windows Shell to run the executable.
Again, I wish I could remember where I got it. If the author sees this, please give yourself some credit...:D
d1emain3qc
04-09-2005, 11:24 AM
I am not the best of explainers. So this was a very good add in to this tread.
OldDog
04-09-2005, 12:06 PM
No, you did ok...I just wanted to add my 2 cents...:D
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.