Attention
The Poster Of This:Name: NaikBoi says NOTE: I DO NOT TAKE ANY CRED FOR THIS AT ALL! I'M ONLY POSTING IT HERE BECAUSE I HAVEN'T FOUND IT ANYWHERE HERE, AND I'VE SEEN A FEW PEOPLE ASKING ABOUT IT.
This is For 317,377 but should be easy for 508!
All You Need Is A Computer, And A Brain, Witch I know you Got Ryan
NOTE: I DO NOT TAKE ANY CRED FOR THIS AT ALL! I'M ONLY POSTING IT HERE BECAUSE I HAVEN'T FOUND IT ANYWHERE HERE, AND I'VE SEEN A FEW PEOPLE ASKING ABOUT IT.
In this tutorial I will be teaching you how to turn a regular client, into a web client. I will be telling you what you need, and how to get it. I will not be teaching you how to edit clients.
All you need is a computer!
The first thing you need to do is get winRar. (most people have it by now, but just to be sure).
You can download it at
http://www.rarlab.com/download.htm
Get the first one (WinRar 3.71)
For those of you who do not know what WinRar is, here is a definition i got at
http://kb.iu.edu/data/anny.html
Code:
WinRAR is a competing product to WinZip; both products compress/decompress and archive files. Files compressed with WinRAR typically have the .rar extension, as opposed to .zip for WinZip archives. WinRAR can also create and decompress a WinZip archived file.
Like later versions of WinZip, WinRAR has the ability to create archives in multiple parts; that is, it not only can compress a file but can split it up into smaller parts. In WinZip, this is called a "split Zip file"; in WinRAR, this is called a "multipart" or "multivolume" archive. When this is done, the extensions for the smaller RAR files end up being .r00, .r01, and so forth, with the first file just having the .rar extension. To decompress a multipart archive, you simply have to ensure that all the component files (.rar, .r00, .r01, etc.) are in the same directory. When you double-click the .rar file, all other files are automatically found by WinRAR without you having to select them, and the final decompressed file is automatically assembled from all those files.
In many Usenet newsgroups, .rar files are favored over .zip files; many FAQs for newsgroups, especially the binary ones, mention and openly push .rar over .zip. Many posters to various groups have said that they prefer the way WinRAR creates multipart archives. Multipart archives are important on Usenet, as a majority of newsgroup servers have strict size limitations for binary groups, and many foreign newsgroup users tend to be on Internet service providers (ISPs) that have strict megabyte limitations on downloads. Because of these limitations, it is actually considered impolite to post very large files, as many people won't be able to download them all at once due to the restrictions. Posting multipart archives solves this problem, as users can download as much as they're able to at one time and still eventually end up with the complete file.
The next thing you need is a client.
EyreScape
http://www.megaupload.com/?d=01SH1FJJ
http://rapidshare.com/files/14966631...OpenSource.rar
ScapeRune
http://www.megaupload.com/?d=3G8V80W1
ScapePlayer
http://www.megaupload.com/?d=3G8V80W1
JehanScape Client
http://www.megaupload.com/?d=W1XZYHYQ
JehanScape Client V2
http://www.megaupload.com/?d=CW59X5KW
Just unzip the rar/zip file with WinRar (downloaded earlier).
But enough of all the preparing, now lets talk about how to turn a client, into a web client.
Getting A Web Site
This can be one of the hardest parts of this whole tutorial (to your wallet), but also one of the most important. I will be telling you how to get a web site. Free web-sites are not what you want to use (unless it is nationvoice)! If you want to buy a web site (domain & hosting) I suggest buying it all through GoDaddy But there are many other places to buy your web site. If you don't want to buy a web site then use Nationvoice
Getting your client to look for images on the web
After you sign up for a website you must edit the file Class30_sub2_sub1_sub1 so it looks on the web for all the images. Sadly costom sprites will not work with web-clients.
Download the new Class30_Sub2_Sub1_Sub1.java Here
Save that file to the clients folder (if it asks to replace, which it will, hit yes).
Now you must upload the clients background image, to a image host. Here are some good ones.
http://imageshack.us/
http://photobucket.com/
Next open up the NEW Class_30_Sub2_Sub1_Sub1.java and search for
Code:
“Image image = ”
Replace That Whole Line With
Code:
Image image = Toolkit.getDefaultToolkit().getImage(new URL("imageurlhere"));
Change the imageurlhere to the url of your client background.
Then Compile the client.
Jaring & Signing The Client
The first thing you must do is download the jar maker/signer Here
Then clear EVERY thing out of the manifest folder.
If you don't have anything in your manifest folder then skip that step.
Next run the jar maker/signer, and open the JarMaker tab.
Set the output directory to your client folder. change the application.jar to anything you want. BUT KEEP THE .JAR PART!!!
Set the input directory to your clients folder.
Then hit the manifest template button, for the main class put client
Then hit the set manifest button, then hit the Create Jar! button
Congrats! You just made a jar!
Now to Sign it.
Signing the jar, basicly tells who made the jar, and what the jars name is.
Signing the Jar
Hit the Jar Signer tab.
For the out put file put the path to your clients folder, and change the application.jar to whateveryouwant.jar
For the signed Jar file put signed_JARNAME
For The Jarsigner path, put the path to your jarsigner.
It should be something like what is allready there.
Then hit the Generate Keystore button/
For keytool location put the path to keytool.exe (should be something like what they have).
For output keystore file put the path to your client folder, and put Keystore as the file name.
Fill in all of the other boxes (self explained). Except the City, Province, country (unless you want to).
And hit generate keystore.
Then for the Keystore file, put the path to the one you just made (should be in clients folder).
And fill out the Keystore alias, Public key, and private key (there what ever you set them as).
And hit Sign Jar!
If that appears when you run the jar (online), then the jar is signed correctly
Your almost done!
Now, upload the jar file to the website you got earlier.
Open up a blank notepad document and put this in.
Code:
archive="JAR URL" code="client">
Change the WEBCLIEBT NAME to the name of the webclient (or what ever you want the pages name to be)
and the JAR URL to the url to the jar.
That is just basic html. You can get more html help at http://w3schools.com/html/default.asp.
Save that as client.html and upload it to your site.
Congrats you have just turned your downloadable client into a webclient!
Fixes:(if needed)
This should stop the connection problems. The connection error "Error connecting, retrying in 10 seconds, 20 seconds, ect." is just an error while connecting to the cache. The easiest way to fix this is to get the client to look for the moparscape cache, because most people have this in their computer and it is always in the same place.
Step 1:
Open your signlink.java file.
If you scoll about half way through the file (it could be different on yours) you should see the following line.
Code:
String string_0_ = ".file_store_32";
Change the .file_store_32 part to C:\WINDOWS\.mpr_file_store_32\
There is an alternative way to fix this.
If you have a line below that line that says
Code:
String string_1_ = "./cache/";
Then you can do it this way.
Make a directory called "cache" (without quotation warks) on your website. Upload all the contents of any of the private server cache folders (like .mpr_file_store_32) to that folder.
PLEASE SCAN EVERYTHING BEFORE YOU UN-ZIP/RAR THEM!!