SRL Archive - S.M.A.R.T. Questions and Answers.

SMART start my RSPS


PkHonor

2013-11-16 07:44:42

After a few hours of changing things around, I finally made the SMART screen start without an error in the debug of simba.
Though, when the SMART debug screen opens, it stop after a few seconds saying:


No idea where to change and correct this one. I guess it has something to do with the client.jar of the server. Anyone any idea?

Tickyy

2013-11-16 15:57:19

Go to www.runescape.com in your browser and open the game client

When you get to the login screen you can close runescape and try to run the script again, if that doesn't work, try updating java, then repeat joining the game client part, then open up smart. That should work.

BenLand100

2013-11-16 19:40:44

From: Tickyy
Go to www.runescape.com in your browser and open the game client

When you get to the login screen you can close runescape and try to run the script again, if that doesn't work, try updating java, then repeat joining the game client part, then open up smart. That should work.

He's using a private server, not the normal client, lol.
From: PkHonor
After a few hours of changing things around, I finally made the SMART screen start without an error in the debug of simba.
Though, when the SMART debug screen opens, it stop after a few seconds saying:
No idea where to change and correct this one. I guess it has something to do with the client.jar of the server. Anyone any idea?

Problem is somewhere in your code or the server. SMART tried to load the applet on the page you provided but the server didn't respond or something.

PkHonor

2013-11-17 10:14:43

From: BenLand100
Problem is somewhere in your code or the server. SMART tried to load the applet on the page you provided but the server didn't respond or something.


If it is in the code, it can only be in the smart.simba code; since my startup script only uses the SetupSRL() function.
The only few things I changed in the smart.simba file; is the SMART_URL variable, the smartClientWidth/Height variable to match the client. And the params in smartGetParameters, so it loads the webclient page.

I didn't point in any pathway for the applet though. Could that be the problem?
If that's so; it would be a pretty fast fix, since the HTML is only 16 lines long and the applet is pretty visible;
<applet name="PkHonor_webclient" width="765px" height="503px" archive="client.jar" code="pkhonor/Client.class">

Thank you in advanced.

BenLand100

2013-11-17 12:25:39

The px in the width and height might cause a problem. Take a look at the standard client's applet declaration, and adjust yours to be similar. Also make sure you properly passed the web address to SMART.

PkHonor

2013-11-17 13:10:04

From: BenLand100
The px in the width and height might cause a problem. Take a look at the standard client's applet declaration, and adjust yours to be similar. Also make sure you properly passed the web address to SMART.


With the 'standard client's applet declaration' you mean the one of RuneScape?
The one that's in the world<NUMBER>.runescape.com/,<RANDOM CODE> html?
Because that is in a totally different format as mine.

RuneScape's Applet Declaration:
document.write('<app'); document.write('let ');
document.write('name=runescape ');
document.write('id=game ');
document.write('width="100%" ');
document.write('height="100%" ');
document.write('alt="For assistance please visit http://services.runescape.com/m=rswiki/en/Technical_Help" ');
document.write('archive=gamepack7TZTUWkmwZP7px8fNF8tMumpy+KLeV9p_5413218.jar ');
document.write('code=Rs2Applet.class ');
document.write('mayscript>');

PkHonor's Applet Declaration:
<applet name="PkHonor_webclient" width="765px" height="503px" archive="client.jar" code="pkhonor/Client.class">
<param name="java_arguments" value="-Xmx512m" />
Either your browser is blocking our webclient or you do not have Java installed. Check for any browser messages or go to <a href="http://www.java.com/">http://www.java.com/</a> to download Java.
</applet>

So with 'adjust yours to be similar', you mean the HTML? or do you mean the applet format somewhere in SMART?

bg5

2013-11-17 16:27:40

What is your Simba code?

PkHonor

2013-11-18 02:09:59

I finally got the right input for the client, as I noticed in RuneScape they first delete the param[1] to then paste the *.jar file name behind the param[0]. As for me it should be pasted behind the param[1 & 2]. So after finally fixing that, I noticed that it gave me a error regarding the location. It was because SMART didn't support mapped *.class files, and mine was
code="pkhonor/Client.class"
.
So, I now expect to change the source code of SMART.jar. Because that is (I think) the only way from here. I tried this before, but my compiler gave errors while trying to compile the source.

From: bg5
What is your Simba code?

as for the smart.simba file? or my SetupSRL() launch script?