Exception in Script: Runtime error: "The bitmap[39436481] does not exist" at line 486, column 34 in file "C:\Simba\Includes\SRL-6\lib\utilities\wrappers.simba"
Always stops my GAO script. Sometimes after 1 hour, sometimes after 5 hours.
Line 486 in wrappers.simba is the result line in this function
Simba Code:
function findBitmapToleranceIn(bmp: integer; var x, y: integer; searchBox: TBox; tolerance: integer): boolean; overload;
begin
result := findBitmapToleranceIn(bmp, x, y, searchBox.x1, searchBox.y1, searchBox.x2, searchBox.y2, tolerance);
end;
I don't use bitmaps in my script, so it mist be internal. Looks like it is something to do with the gametabs:
SRL debug:
Edit: It looks like this was using the randomRClickItem() antiban procedure
Edit2: It looks like it failed to get the active tab during the randomRclickItem(), so at the end of the procedure when it tried to return to the previous tab it failed ( tab(-1) doesn't exist).
Edit3: Maybe add a check if getActivetab = -1 then just exit the procedure at the start.
Code:
-- chooseOption._select():
---- chooseOption.isOpen(): result = true
---- Options found: [Clean Grimy guam, Use Grimy guam, Drop Grimy guam, Examine Grimy guam, Set quick-inventory A, Set quick-inventory B, Cancel]
---- Found option "xamine" in "Examine Grimy guam"
-- chooseOption.select() result = true
-- TRSMinimap.getBlackBackground()
---- Found 10 shades of black, finding the most common one...
-- TRSMinimap.getBlackBackground(): 328965
-- WARNING: TRSGametabs.getActiveTab(): There isn't an active tab currently
-- TRSGameTabs.openTab(2)
---- Opening tab via gametab navigation bar
-- TRSGameTabs.openTab(2): result = False
-- TRSGameTabs.openTab(2)
---- Opening tab via gametab navigation bar
-- TRSGameTabs.openTab(2): result = True
-- chooseOption._select():
---- chooseOption.isOpen(): result = true
---- Options found: [Wield Chargebow, Use Chargebow, Drop Chargebow, Examine Chargebow, Set quick-inventory A, Set quick-inventory B, Cancel]
---- Found option "xamine" in "Examine Chargebow"
-- chooseOption.select() result = true
-- TRSGameTabs.openTab(-1)
---- Opening tab via gametab navigation bar
-- ERROR: **gaussian failed**
gaussBoxPoint invalid (83, 0)
Exception in Script: Runtime error: "The bitmap[39436481] does not exist" at line 486, column 34 in file "C:\Simba\Includes\SRL-6\lib\utilities\wrappers.simba"