SRL Archive - OSR Help

How would I load this in SMART?


rj

2013-07-20 20:46:02

So I'm trying to load a RSPS into smart -.-

So i'm trying this:
SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), '', ',' + 'http://soulsplit.com/playnow/playbrowser.php', 800, 600, 's', '', '');

But it's only compiling -.-

I really have no idea how I could go about doing this. But I know SMART uses getpage to get the params so what would I do with the get page in this instance?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="RuneScape Private Server, RuneScape 2006, Easyplay MMORPG, Pre-EOC RuneScape, Pre EOC Servers, Before EOC Servers, Free RuneScape 2006, Faster EXP & Gameplay. Play 100% free with thousands of players. Status: Online"/>
<meta name="author" content="Soulsplit"/>
<meta name="keywords" content="runescape private server,rsps,rsps toplist, toplist, rs, fatality, matrixftw, matrix, rs2006,2006scape, runescape, jagex, rsps, soulsplit, ss , runescape private servers, near-reality, battlescape, slashscape, runemyth, helix-world, corruptionx, revolutionx, inception, pwnxile, legacy, silabgarza, estrania"/>
<title>Soulsplit - Play Now</title>
<script type="text/javascript">
//<![CDATA[
window.__CF=window.__CF||{};window.__CF.AJS={"vig_key":{"sid":"3edab72b1357f7319fc38a137b55b8fb"},"exprmntly":{"service_id":"13019"},"abetterbrowser":{"ie":"9"}};
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) { var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",mirage:{responsive:1,lazy:1},mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/abv=2706741234/"},atok:"fa1c4b4d4387167f3b25772eb01008e2",zone:"soulsplit.com",rocket:"0",apps:{"vig_key":{"sid":"3edab72b1357f7319fc38a137b55b8fb"},"exprmntly":{"service_id":"13019"},"abetterbrowser":{"ie":"9"}}}];CloudFlare.push({"apps":{"ape":"c6464e928c2f69759cde4b01a1869a85"}});var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.async=!0;a.src="//ajax.cloudflare.com/cdn-cgi/nexp/abv=3609848800/cloudflare.min.js";b.parentNode.insertBefore(a,b);}}catch(e){};
//]]>
</script>
<link rel="shortcut icon" type="image/x-icon" href="img/fav.ico"/>
<link href="/css/style.css" rel="stylesheet" type="text/css"/>
<link href='http://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet' type='text/css'>
</head>
<body>
<applet name="Soulsplit 2.0 Web" publisher="Soulsplit" code="com.soulsplit.b" archive="/clientfiles/playsoulsplit.jar" width="100%" height="800">
<param name="world" id="world" value="0"/>
<param name="width" id="width" value="800"/>
<param name="height" id="height" value="600"/>
<param name="musicvol" id="musicvol" value="0"/>
<param name="java_arguments" value="-Xmx512m -Xss2m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"/>
<br/><font color="#ff0000">A problem occurred with your Java compatability. Please make sure your Java is up to date.</font><br/>
<br/>Get the latest at <a href="http://www.java.com/">http://www.java.com/</a>
</applet>

<section id="wrapper">

<footer>
<div id="left">
<a target="_blank" href="http://soulsplit.com"><div></div></a>
<p>&copy; Soulsplit.com, All Rights Reserved.</p>
</div>
<div id="right">
<ul id="social">
<a target="_blank" href="http://facebook.com/soulsplitinc"><li id="fb"></li></a>
<a target="_blank" href="http://twitter.com/soulsplitdotcom"><li id="twitter"></li></a>
<a target="_blank" href="http://youtube.com/soulsplitofficial"><li id="yt"></li></a>
</ul>
<ul id="os">
<a target="_blank" href="http://windows.microsoft.com/"><li id="win"></li></a>
<a target="_blank" href="http://apple.com"><li id="mac"></li></a>
</ul>
</div>
</footer>
</section>
<script type="text/javascript">
function closeIt() {
return "Are you sure you want to leave this page? When leaving this page you will automatically log out if you are not currently in combat!";
}
window.onbeforeunload = closeIt;
</script>

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script>
<![endif]-->
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
</body>
</html>

Kasi

2013-07-20 22:41:49

just did a little research. The actual jar is at http://soulsplit.com/clientfiles/play.jar

you can't load that in smart because it isn't an applet, to make it into an applet you'd have to mess around with the manifest and add attributes i think. this wouldn't be the approach i would take. i would find a way to sandbox a jar instead of an applet and override the events like that. i would advise you to go speak to benland about this on irc or pm him.

edit: if you cba download virtual box, and use that.

Brandon

2013-07-21 00:43:22

You can always just create a new java project and put:


new URLClassLoader(new URL[]{new URL("http://soulsplit.com/clientfiles/play.jar")}).loadClass("com.soulsplit.swing.GUI").newInstance();


or


this.applet = (Applet)new URLClassLoader(new URL[]{new URL("http://soulsplit.com/clientfiles/play.jar")}).loadClass("a.b").newInstance();
this.applet.init();
this.applet.start();

rj

2013-07-22 10:42:34

@Kasi Thanks, but I don't think I have enough java experience for that (doubt benland wants to do all the work for me :p)

@Brandon I need it to load in SMART :/

Brandon

2013-07-22 10:58:08

From: Officer Barbrady
@Kasi Thanks, but I don't think I have enough java experience for that (doubt benland wants to do all the work for me :p)

@Brandon I need it to load in SMART :/


Why in smart? You'd have to change so many of the internals..

rj

2013-07-22 11:00:23

From: Brandon
Why in smart? You'd have to change so many of the internals..


I thought smart was just loading the jar from the rspage via the smart params

BenLand100

2013-07-22 22:42:41

From: Officer Barbrady
I thought smart was just loading the jar from the rspage via the smart params


Technically yes, but practically there is some RS specific code related to which component to grab/block. It still might just work, though. You should try passing SMART an html page with an applet definition and see what doesn't work. (and post debug output)
You'll need a call like…
SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), 'http://soulsplit.com', '/playnow/play.php?a=1', 800, 600,'','','','')

Although, in testing this, I discovered a bug in SMART that will prevent any applet where the entry point is not in the root package from loading. So wait for v8.2 shortly. I did some quick testing, and SMART (the newest on github) can indeed load the game, but the class specified as the entry point is NOT an applet, which is not only odd, but I don't quite understand how it loads in the browser at all.