Originally Posted by
halodon123
The tutorial section - follow it by the letter and you'll be fine. I was confused in the beginning too!
What? Don't mislead him. Judging by the date posted and still no reply, I'd say OP gave up and that was a good idea.
Also doesn't "seem" to be a legally distributed jar file? IANAL but they re-distribute Jagex's jaggl, jagdx, jaclib, jagtheora classes.. :S Maybe legal somehow but I don't know..
Unless OP has a link to the applet being loaded in the webpage, it isn't possible for OP to load "Alotic" in SMART at least.. SMART doesn't download and inspect jars for parameters/flags which is required by this RSPS.. The parameters are set within the applet class itself and not from a web-page.
Shown below:
java Code:
import com.apple.eawt.Application;import java.applet.Applet;import java.awt.BorderLayout;import java.awt.Container;import java.awt.Dimension;import java.awt.Image;import java.net.URL;import java.util.ArrayList;import java.util.List;import java.util.Properties;import javax.swing.ImageIcon;import javax.swing.JFrame;import javax.swing.JPanel;import sun.misc.BASE64Decoder;public class Loader
extends Applet{ private static List ICON_IMAGES
= new ArrayList(); private static final long serialVersionUID
= 1L
; public static Properties properties
= new Properties(); public JFrame appletFrame
; public JPanel appletPanel
= new JPanel(); public static final String LOBBY_ADDRESS
= ""; public static final short SUB_VERSION
= 19; private static final byte[] ICON_DIMENSIONS
= { 16,
32 }; private static final String ICON_DATA
= "ONE HUGE BASE64 ENCODED IMAGE BUFFER HERE.."; public static void main
(String[] paramArrayOfString
) { try { Image localImage
= new ImageIcon(new BASE64Decoder
().
decodeBuffer("ONE HUGE BASE64 ENCODED IMAGE BUFFER HERE..")).
getImage(); ICON_IMAGES.
add(localImage
); for (int k
: ICON_DIMENSIONS
) { ICON_IMAGES.
add(localImage.
getScaledInstance(k, k,
4)); } ??? = Package.
getPackage("com.apple.eawt"); if (??? != null) { Application localApplication
= Application.
getApplication(); if (localApplication
!= null) { localApplication.
setDockIconImage(localImage
); } } } catch (Exception localException
) {} Loader localLoader
= new Loader
(); localLoader.
doFrame(); } public void init
() { loadApplet
(); } void loadApplet
() { setParms
(); drawClient
(); } public void doFrame
() { setParms
(); openFrame
(); drawClient
(); } void setParms
() { properties.
put("separate_jvm",
"true"); properties.
put("cabbase",
"g.cab"); properties.
put("java_arguments",
"-Xmx256m -Xss2m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"); properties.
put("colourid",
"0"); properties.
put("worldid",
"1"); properties.
put("lobbyid",
"1"); properties.
put("lobbyaddress",
""); properties.
put("demoid",
"0"); properties.
put("demoaddress",
""); properties.
put("modewhere",
"0"); properties.
put("modewhat",
"0"); properties.
put("lang",
"0"); properties.
put("objecttag",
"0"); properties.
put("js",
"1"); properties.
put("game",
"0"); properties.
put("affid",
"0"); properties.
put("advert",
"1"); properties.
put("settings",
"wwGlrZHF5gJcZl7tf7KSRh0MZLhiU0gI0xDX6DwZ-Qk"); properties.
put("country",
"0"); properties.
put("haveie6",
"0"); properties.
put("havefirefox",
"0"); properties.
put("cookieprefix",
""); properties.
put("cookiehost",
"google.com"); properties.
put("cachesubdirid",
"0"); properties.
put("crashurl",
""); properties.
put("unsignedurl",
""); properties.
put("sitesettings_member",
"1"); properties.
put("frombilling",
"false"); properties.
put("sskey",
""); properties.
put("force64mb",
"false"); properties.
put("worldflags",
"8"); } void openFrame
() { this.
appletFrame = new JFrame("Alotic"); this.
appletFrame.
setLayout(new BorderLayout()); this.
appletPanel.
setLayout(new BorderLayout()); this.
appletPanel.
add(this); this.
appletPanel.
setPreferredSize(new Dimension(765,
503)); this.
appletFrame.
getContentPane().
add(this.
appletPanel,
"Center"); this.
appletFrame.
setIconImages(ICON_IMAGES
); this.
appletFrame.
pack(); this.
appletFrame.
setVisible(true); this.
appletFrame.
setDefaultCloseOperation(3); } void drawClient
() { try { I.
provideLoaderApplet(this); client localclient
= new client
(); localclient.
init(); localclient.
start(); } catch (Exception localException
) { localException.
printStackTrace(); } } public String getParameter
(String paramString
) { return (String)properties.
get(paramString
); } public URL getDocumentBase
() { return getCodeBase
(); } public URL getCodeBase
() { try { return new URL("http://server.alotic.com"); } catch (Exception localException
) { localException.
printStackTrace(); } return null; }}