SRL Archive - S.M.A.R.T.

Editing SmartParams.Simba to load foreign worlds


litoris

2012-08-31 05:37:52

Could a developer that has enough information on the way SMART works help me with loading foreign worlds with SMART? The InitSmart function in SmartParams.simba seems like the place I'd need to edit, but since it uses the plugins and all I don't know exactly what to do. It would be even better if there was a parameter we could use to load a certain world, instead of getting it randomly assigned.
I have an imgur album here with the foreign worlds listed if anyone wants to know which world are the foreign ones.

Benny

2012-08-31 06:13:41

this sounds like a great idea :) would be interesting to see how this plays out

grats

2012-08-31 06:16:45

Been discussed before, only thing that stopped it before was simba didn't have special character support added for the fonts or something along those lines.

Portuguese has my vote, 32 people on F2p server lol.

riwu

2012-08-31 06:24:00

From: grats
Been discussed before, only thing that stopped it before was simba didn't have special character support added for the fonts or something along those lines.

Portuguese has my vote, 32 people on F2p server lol.

You can create ur own fonts. Any srl functions that use uptext will break though since the uptext will be different.
So it'd be similar to private servers where you create most of ur functions. Plenty of functions that doesn't rely on uptext can still be used though.

grats

2012-08-31 06:25:46

I know we can make our own fonts, doesn't change what I said

riwu

2012-08-31 07:05:35

From: grats
I know we can make our own fonts, doesn't change what I said

Font sets are based off bitmaps of each letter and as such OCR should work with any type of character. I'm not an expert in this area though but i'm assuming if it's bitmap, it can be anything. (you can even create a pokemon font in which each pokemon represents a different alphabet ;))

grats

2012-08-31 07:23:31

however when reading the uptext you say look for 'ttack' which in different languages might have a fancy letter, etc

litoris

2012-08-31 10:35:48

Offtopic much? I just asked about getting SMART to work there, text is another issue. I will use DTMs for that if all else fails.

Brandon

2012-08-31 11:30:15

Line 285.. Change Params[0] to something like: http://world72.runescape.com/

It's obviously not good to load like this but it's not that bad either as no one knows if jagex checks this sorta thing.

grats

2012-08-31 11:32:48

From: Brandon
Line 285.. Change Params[0] to something like: http://world72.runescape.com/

It's obviously not good to load like this but it's not that bad either as no one knows if jagex checks this sorta thing.


That's what I use to load my stuff

what about:
http://www.runescape.com/l=3/game.ws?j=1

that's Portuguese,

http://www.runescape.com/l=2/game.ws?j=1

that one is french.. those are the only ones I tried but I really only use the port one

or does it have to be subdirectory? can't test no smart here anyway afk work

Footy

2012-08-31 11:32:55

^Isnt this the same as typing that into your browser? I don't see that setting off red flags, and if I played on foreign servers often, I would probably bookmark a URL like that.

Brandon

2012-08-31 11:36:38

From: grats
That's what I use to load my stuff

what about:
http://www.runescape.com/l=3/game.ws?j=1

that's Portuguese,

http://www.runescape.com/l=2/game.ws?j=1

that one is french.. those are the only ones I tried but I really only use the port one

or does it have to be subdirectory? can't test no smart here anyway afk work



In smart that'd be:

[LEFT]'l=2/,' + Params[1]
[/LEFT]

Olly

2012-08-31 11:37:51

Function GetSmartParams: TStringArray;
var
Params: TStringArray;
Page: String;
begin
Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/l=3/game.ws?j=1'));
Params := Explode(',', Page);
Result := Params;
end;

replace the old one with that, it worked for me.

l=1 = German
l=2 = French
l=3 = Portuguese

litoris

2012-08-31 11:40:14

From: Ollybest
Function GetSmartParams: TStringArray;
var
Params: TStringArray;
Page: String;
begin
Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/l=3/game.ws?j=1'));
Params := Explode(',', Page);
Result := Params;
end;

replace the old one with that, it worked for me.


Will this get the correct parameters?

Olly

2012-08-31 11:41:50

From: litoris
Will this get the correct parameters?


I have no clue… it loaded rs in about 3 seconds so I would say so currently. Im just going off pre smart 7.2 when it didnt get the correct prams and took like 2 mins to load up.

edit: currently its
GetPage('http://www.runescape.com/game.ws?j=1'));    

and all im doing is adding the language url which turns that into

GetPage('http://www.runescape.com/l=3/game.ws?j=1')); 


l=1 = German
l=2 = French
l=3 = Portuguese

So im pretty sure it does load the correct prams, but im not 100% sure since I know nothing about it :P