SRL Archive - SRL Bugs

SelectWorld,GetWorldInfo


slushpuppy

2012-10-26 07:36:37

* Warning in FindWorld: World Number cannot be 0 **


This started happening after the update

riwu

2012-10-26 07:40:34

Update your SRL.
Also how did you get a World 0 error? If 0 is passed it should return 'World Number cannot be 0'?

slushpuppy

2012-10-26 12:07:00

My apologies, I didn't update. However I still get another error. Don't think the world switcher works

litoris

2012-10-26 15:30:47

Set up the worldinfo array, it's the easiest solution really.

Enslaved

2012-10-26 15:54:14

hows your wildy miner working?

slushpuppy

2012-10-27 07:29:12

Runescape is lagging or we're logged in too many times. Keep trying!
** Warning in FindWorld: World Number cannot be 0 **
Failed to find World 0!
'Login limit exceeded.'
Runescape is lagging or we're logged in too many times. Keep trying!



World info as set by me:

WorldInfo   := [27, 42, 45, 46, 48, 52, 59, 70, 72, 78, 79, 87, 104, 115, 117];      

litoris

2012-10-27 07:34:44

From: slushpuppy
World info as set by me:

WorldInfo   := [27, 42, 45, 46, 48, 52, 59, 70, 72, 78, 79, 87, 104, 115, 117];      


WorldInfo: TVariantArray;       // * [Members {Boolean}, World {Integer}, PVP {Boolean}] 

So you need to set it that way, or not set it at all.
ie
Worldinfo := [False, 16, False]
or [False, 57, True]

riwu

2012-10-27 07:35:09


WorldInfo: TVariantArray; // * [Members {Boolean}, World {Integer}, PVP {Boolean}]
If you want it to select a world randomly from a list, you have to make your own TIA then make it randomly choose one of the index.

From: litoris
WorldInfo: TVariantArray;       // * [Members {Boolean}, World {Integer}, PVP {Boolean}] 

So you need to set it that way, or not set it at all.
ie
Worldinfo := [False, 16, False]
or [False, 57, True]

It is possible now to just input the world integer like [16].

slushpuppy

2012-10-27 07:39:12

Thank you

litoris

2012-10-27 07:56:38

From: riwu

WorldInfo: TVariantArray; // * [Members {Boolean}, World {Integer}, PVP {Boolean}]
If you want it to select a world randomly from a list, you have to make your own TIA then make it randomly choose one of the index.


It is possible now to just input the world integer like [16].


Oh, your commit added that too? Cool.

I still favor the original version because it lets me log into hi-risk wildy worlds.

riwu

2012-10-27 07:59:34

From: litoris
Oh, your commit added that too? Cool.

I still favor the original version because it lets me log into hi-risk wildy worlds.

It should still be able to do that if you input a world that is hi-risk. The world you input decides what world you go to, how does providing extra info on whether it is member or pvp matters?

litoris

2012-10-27 08:12:49

From: riwu
It should still be able to do that if you input a world that is hi-risk. The world you input decides what world you go to, how does providing extra info on whether it is member or pvp matters?

It will click "go back" instead of "log in" on the confirmation screen if you don't set allowpvp to true, and the 3rd component in the array does that. You can set allowpvp true manually too though.

riwu

2012-10-27 08:19:29

From: litoris
It will click "go back" instead of "log in" on the confirmation screen if you don't set allowpvp to true, and the 3rd component in the array does that. You can set allowpvp true manually too though.

Oh, that's kind of weird code considering that you obviously want pvp world if you input a pvp world. I'll update that after bxpw is over then.

slushpuppy

2012-10-27 09:12:14

Hm it worked, but I assume it is impossible to have the script randomly choose a world without making my own TIA?(like what it did before)

riwu

2012-10-27 09:21:05

From: slushpuppy
Hm it worked, but I assume it is impossible to have the script randomly choose a world without making my own TIA?(like what it did before)

Uhm it has never been able to :S It probably only chose the world at index 1.

slushpuppy

2012-10-27 09:37:48

From: riwu
Uhm it has never been able to :S It probably only chose the world at index 1.


Weird because before the recent update, I omitted the WorldInfo record member and I was able to launch multiple SMARTS without having to deal with client limit error

riwu

2012-10-27 09:47:24

From: slushpuppy
Weird because before the recent update, I omitted the WorldInfo record member and I was able to launch multiple SMARTS without having to deal with client limit error

Client limit error? 'Login limit exceeded'? 'Client token expired'? These has nothing to do with SMART, let alone login.simba.

speedster

2012-10-27 10:24:52

He was probably saying that he runs multiple accounts and they all were trying to login on the same world.

But anyway - world.ini isn't being built:
[Worlds]
Count=1
High=0

[World0]
Type=Free
LootShare=False
QuickChat=False
PvP=False


And I get this :

** Warning in FindWorld: World -1 does not exist in worlds.ini **
Failed to find World -1! using :
Players[0].WorldInfo := [True, -1, False];

It used to work before ….

I put an old worldinfo.ini in place, and an old loginplayer function - it works decently so far.