SRL Archive - General Botting Help

Error.


GRIM

2014-12-16 18:42:45

if self.isButtonActive(BANK_BUTTON_SEARCH) then 

keep getting this while trying to run a script that previously ran perfectly fine.

I'm assuming this is the same problem as the 'production' failure previously a few days ago?
The script i'm running doesn't even bank! o.O
thoughts?

KeepBotting

2014-12-16 18:44:13

What's the error? You gave us the line which is great. So now we know where the error is, but not what it is :p linking to or posting the script would also help.

GRIM

2014-12-16 19:03:22

From: KeepBotting
What's the error? You gave us the line which is great. So now we know where the error is, but not what it is :p linking to or posting the script would also help.


@KeepBotting

Using @BMWxi new snowboarder script

https://villavu.com/forum/showthread.php?t=111285


edit;

the debug

[1] https://villavu.com/forum/showthread.php?t=110430
[2] https://github.com/MerlijnWajer/Simba/releases/tag/simba-1.1.0

Loaded Font CharsNPC
Loaded Font CharsNPC07
Loaded Font CharsTrade
Loaded Font CharsTrade07
Loaded Font FriendChars
Loaded Font LoginChars
Loaded Font MouseoverChars
Loaded Font SmallChars
Loaded Font SmallChars07
Loaded Font SmallCharsNS
Loaded Font StatChars
Loaded Font StatChars07
Loaded Font UpChars
Loaded Font UpChars07
Loaded Font UpChars07_s
Loaded Font UpCharsEx
Loaded Font XPChars
Loaded Font UpChars_s
Error: Operator "NOT" not compatible with "record [0]Pointer; [4]Pointer; end" at line 2530
Compiling failed.

KeepBotting

2014-12-16 19:05:21

From: GRIM
@KeepBotting

Using @BMWxi new snowboarder script

https://villavu.com/forum/showthread.php?t=111285


edit;

the debug

[1] https://villavu.com/forum/showthread.php?t=110430
[2] https://github.com/MerlijnWajer/Simba/releases/tag/simba-1.1.0

Loaded Font CharsNPC
Loaded Font CharsNPC07
Loaded Font CharsTrade
Loaded Font CharsTrade07
Loaded Font FriendChars
Loaded Font LoginChars
Loaded Font MouseoverChars
Loaded Font SmallChars
Loaded Font SmallChars07
Loaded Font SmallCharsNS
Loaded Font StatChars
Loaded Font StatChars07
Loaded Font UpChars
Loaded Font UpChars07
Loaded Font UpChars07_s
Loaded Font UpCharsEx
Loaded Font XPChars
Loaded Font UpChars_s
Error: Operator "NOT" not compatible with "record [0]Pointer; [4]Pointer; end" at line 2530
Compiling failed.


Another user posted with the same issue on bonsaiFighter. I'm updating SRL-6 to revision 1025 now. Gonna see what's what.

Edit: I changed the offending line (2530 @ bankscreen.simba) to the following, and scripts compile properly now. I'm going to test the function now to make sure I didn't break anything.
    if (not (self.isSearchOpen())) then 

Edit 2: Yeah, I didn't break anything. Weird, all I did was fix parenthesis conventions. I didn't know it was possible for bad parenthesis to cause compiling errors.


akarigar

2014-12-16 19:15:31

From: KeepBotting
Another user posted with the same issue on bonsaiFighter. I'm updating SRL-6 to revision 1025 now. Gonna see what's what.

Edit: I changed the offending line (2530 @ bankscreen.simba) to the following, and scripts compile properly now. I'm going to test the function now to make sure I didn't break anything.
    if (not (self.isSearchOpen())) then 

Edit 2: Yeah, I didn't break anything. Weird, all I did was fix parenthesis conventions. I didn't know it was possible for bad parenthesis to cause compiling errors.


This has to do with the macro {$f-}. It forces you to use parenthesis. So the following is okay:

if not self.isSearchOpen() then

KeepBotting

2014-12-16 19:19:55

From: akarigar
This has to do with the macro {$f-}. It forces you to use parenthesis.


Oh, gotcha. I'd send a pull request on Github but I don't know how. Oh well. Include-breaking crisis averted :p

Kevin

2014-12-16 19:27:17

From: KeepBotting
Oh, gotcha. I'd send a pull request on Github but I don't know how. Oh well. Include-breaking crisis averted :p


Pull request already made… hopefully it gets noticed soon

The Mayor

2014-12-16 20:05:30

Let's hope @Ashaman88; isn't on holiday too long or srl6 won't be functional by the time he gets back :shifty:

GRIM

2014-12-16 20:28:24

downloaded the update - still didn't work

From: akarigar
This has to do with the macro {$f-}. It forces you to use parenthesis. So the following is okay:

if not self.isSearchOpen() then



did this and clicked save, works now.

thanks everybody

Nottabot

2014-12-16 20:54:22

what do i change? and what do i need to save?

Obquility

2014-12-16 20:54:35

How do we fix this? Not getting the gist of this…
Edit, got it working, thanks

KeepBotting

2014-12-16 21:07:19

From: Nottabot
what do i change? and what do i need to save?


From: jonesy259
How do we fix this? Not getting the gist of this…
Edit, got it working, thanks


Delete the line 2,530 in the file bankscreen.simba and replace it with this:

if not self.isSearchOpen() then

BanditBob

2014-12-17 07:49:10

From: KeepBotting
Delete the line 2,530 in the file bankscreen.simba and replace it with this:

if not self.isSearchOpen() then


You sir, are god.