Free2Code
 
Time: 2008-11-21, 09:07pm
Java Help
Subject: Java Help  ·  Posted: 2003-11-17, 07:34am
Rank: Unregistered
hi i have the files to a java game which was loadable and playable on the internet, (multiplayer) but the site was closed down, i managed to grab the files before they completely were unaccesable, but i dont know how to get the files up on the net for people to play again, i own a domain and have bought web space. But what do i do? the site that had the link to the game is completly gone, and i have opened one of the .class files which has the site name in it, like where to load the rest of the files from, but since its not there anymore, i want to load the files from my site, but i dont know how to change the applet settings for it to do this. I have EVERY file which is needed to load and play the game, any guys got some spare time and know alot of java? Maybe help me out?
Thank You
 
  Reply to this ·  Post link ·  Top
Subject: you need an HTML link file  ·  Posted: 2003-11-17, 08:22am
Rank: Unregistered
you need to create a simple html file and load the .class file into your site and it will auto load

<html> <applet code=" .class" width="x" height="x"> </applet> </html>



 
  Reply to this ·  Post link ·  Top
Subject: Re: Java Help  ·  Posted: 2003-11-17, 08:49am
Rank: Unregistered
<head>
<title>Center Fleet Mission: Wormhole NG</title>
</head>

<script language="javascript">
<!--

var value="";
getUser();

var hometownValue="";
getHometown();

function getUser() {

var allcookies=document.cookie;
var pos = allcookies.indexOf("CenterscoreCookieUsername=";
if (pos != -1) {
var start = pos+26;
var end = allcookies.indexOf(";", start);
if (end == -1) end = allcookies.length;
value = allcookies.substring(start,end);
value= unescape(unescape(value));
}
}

function getHometown() {
var allcookies=document.cookie;
var pos = allcookies.indexOf("CenterscoreCookieHometown=";
if (pos != -1) {
var start = pos+26;
var end = allcookies.indexOf(";", start);
if (end == -1) end = allcookies.length;
hometownValue = allcookies.substring(start,end);
hometownValue= unescape(unescape(hometownValue));
}
}

function writeApplet() {
if (value=="" {
document.writeln("<applet code=GameLoader.class width=790 height=479 hspace=0 vspace=0 MAYSCRIPT><param name=applet value=Game><param name=width value=790><param name=height value=479><param name=propfile value=prop.txt><param name=os value=win></applet></td></tr>";
} else {
document.writeln("<applet code=GameLoader.class width=790 height=479 hspace=0 vspace=0 MAYSCRIPT><param name=applet value=Game><param name=width value=790><param name=height value=479><param name=propfile value=prop.txt><param name=os value=win><param name=username value=\""+value+"\"><param name=hometown value=\""+hometownValue+"\"></applet></td></tr>";
}
}
// -->

</script>

<body bgcolor=black leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>

<table border=0 cellspacing=0 cellpadding=0 bgcolor=000000 width=790>
<tr>
<td><IMG src="images/leftBanner.gif" border=0 vspace="0" hspace="0" align="top" width="308" height="60"></td>
<td><IMG src="images/centerBanner.gif" width="318" height="60" border=0 align="baseline" vspace="0" hspace="0"></td>
<td><a target=_blank href="http://www.centerfleet.com">
<IMG src="images/rightBanner.gif" width="163" height="60" border=0 vspace="0" hspace="0" align="top"></a>
</td>

</tr>
<tr><td colspan=3>
<script>writeApplet();</script>
</td></tr>
</table>
</body>
</html>



I have a html file already, but that dosnt work
 
  Reply to this ·  Post link ·  Top
Subject: Re: Java Help  ·  Posted: 2003-11-17, 10:05am
Rank: Unregistered
your not suppose to add your entire code, just the location of the .class file
re-read what i posted and follow that to make it work.
 
  Reply to this ·  Post link ·  Top
Subject: Re: Java Help  ·  Posted: 2003-11-17, 10:41am
Rank: Unregistered
there is loads of .class files, including the applet
 
  Reply to this ·  Post link ·  Top
Subject: Re: Java Help  ·  Posted: 2003-11-17, 01:15pm
Rank: Unregistered
you load the main applet that starts eveything off, like you dont load the individual .class just the main one, and you keep the rest of the classes int he same director as the html file and name your html file the same as the main class program k
 
  Reply to this ·  Post link ·  Top
Subject: Re: Java Help  ·  Posted: 2006-11-14, 06:10pm
Rank: ? (1)
Member #: 29106
any way you could get me those files? I might be able to do something with them.

livefire@gmail.com

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons