Results 1 to 7 of 7

Thread: How would I load this in SMART?

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default How would I load this in SMART?

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

    So i'm trying this:
    Simba Code:
    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?

    Code:
    <!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>

  2. #2
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    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.
    Last edited by Kasi; 07-21-2013 at 02:45 AM.

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

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

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


    or

    Java Code:
    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();
    Last edited by Brandon; 07-21-2013 at 05:00 AM.
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

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

    @Brandon I need it to load in SMART :/

  5. #5
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    @Kasi Thanks, but I don't think I have enough java experience for that (doubt benland wants to do all the work for me )

    @Brandon I need it to load in SMART :/
    Why in smart? You'd have to change so many of the internals..
    I am Ggzz..
    Hackintosher

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    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

  7. #7
    Join Date
    Feb 2006
    Location
    Berkeley, CA
    Posts
    1,837
    Mentioned
    52 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    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...
    Code:
    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.
    Last edited by BenLand100; 07-23-2013 at 03:19 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •