SRL Archive - General Botting Help

Best way to set up inventory to be detected?


Foundry

2013-10-03 21:21:21

I installed SRL6 correctly with the right options and settings. Scripts compile and it detects colors but I am having trouble correctly setting up the inventory position to where it is reliably detected.

I run this when my inventory is in the bottom right

program new;
{$DEFINE SMART}
{$i srl-6/srl.simba}
begin
ClearDebug();
smartClientWidth := 1024;
smartClientHeight := 768;
SetupSRL();
setlength(players, 1);
with Players[0] do
begin
LoginName := '';
Password := '';
isActive := True;
end;
wait(2000);
players[0].login();
wait(2000);
writeln(tabBackpack.count());
end.

I get this error after it logs in and attempts to count the items in the backpack (this also applies to the tabBackpack.open function too):

– WARNING: TRSGameTabs._getActiveTabBox(): There's only a single tab open, failed to identify
Exception in Script: Runtime error: "You passed a wrong ye to a finder function: 1020. The client has a height of 1000, thus the ye is out of bounds." at line 171, column 32 in file "C:\Simba\Includes\srl-6\lib\utilities\wrappers.simba"
File[C:\Simba\Includes\SRL-6/logs/SRL log (03-10-13 at 09.17.15 PM).txt] has not been freed in the script, freeing it now.

Tried moving the inventory around and using different client dimensions, but kept on getting the same issue.

Justin

2013-10-05 08:23:59

@HardcorBoter;

I have spoken to Olly about this issue. He is now aware of it and the SRL Developers will make a patch and push it in the include. If you want to keep scripting, I suggest you use the default client size.


smartClientWidth = 960;
smartClientHeight = 640;

Please let me know if you have the same issue with the default size.

Thanks

Justin

Foundry

2013-10-05 18:32:24

Thanks for the info, default size works :)

Justin

2013-10-05 21:01:00

From: HardcorBoter
Thanks for the info, default size works :)


I have imported your post into the Bug tracker. If you wish to follow the progress on this issue, please visit: http://villavu.com/forum/issue.php?issueid=129

Thanks

Justin.