Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Amberleaf

ScanForRandoms; bug...

Recommended Posts

There seems to be a problem with the ScanForRandoms; function, It was working fine yesterday but it has since decided to display the message below & attempts to log me out while using my Giant spider fighter on the 3rd floor of the stronghold of security.

 

Unknown random deteced! Detection and solver needs to be made by an expert!

Please contact an OSI developer http://forums.scar-divi.com

Player stuck in unknown random.

Edited by Amberleaf

Share this post


Link to post
Share on other sites

This issue needs to be directed to OSi. Our findrandom feature is a simple extra built ontop of their random finder. We may incorporate our own at some point for it seems alittle faulty from time to time to getting randoms.

 

Right now OSi's random finder is in development by wanted and only wanted right now so it is a pretty big job. I may this week make a new findrandoms2 which will just log out the character if an random is found since the OSi one haqs been a bit faulty lately ( I noticed this yesterday too ) But we shall see what wanted has to say later this week ill give a talk with him about it.

Edited by rsutton

Share this post


Link to post
Share on other sites

Yeah wanted changed the method for detecting if in a random in the last updated and is doing something different than counting tabs like he was because of the bank issue, if you were in the bank screen it would say you were in a random. Im thinking of adding a a chat detection system on top of what we have and that will solve the problem so it wont check for osirandoms unless it finds a chat option available. pretty easy fix for now.

Share this post


Link to post
Share on other sites

It must of been rare for the bank issue. but now it is anything but. I would jsut change it back if it was my choice. Anyways We will work around this one way or another

Share this post


Link to post
Share on other sites
It must of been rare for the bank issue. but now it is anything but. I would jsut change it back if it was my choice. Anyways We will work around this one way or another

It wasn't rare at all, you just do not call scanforrandoms anywhere in your banking method so you never experienced it. Like i said easiest method would just count colors in chat box look for green continue button, and if this is true then do the rest of regular function. Because every random has a chat option to continue pop up.

Share this post


Link to post
Share on other sites

I think I'm going to add something in TabExists so that if it returns false it loops again for a bit until true if not then exits and false. That way maybe a 'ficker' or 'fluke' won't cause it to think tab(s) are missing.

 

Also... do not call Scan randoms when bank screen is up... sigh I 'll guess all ad something that checks for BankScreen then Exit after thinking it's possibly a random...

Share this post


Link to post
Share on other sites
I think I'm going to add something in TabExists so that if it returns false it loops again for a bit until true if not then exits and false. That way maybe a 'ficker' or 'fluke' won't cause it to think tab(s) are missing.

 

Also... do not call Scan randoms when bank screen is up... sigh I 'll guess all ad something that checks for BankScreen then Exit after thinking it's possibly a random...

 

How long are we talking of looping it? Because I call this fairly often in my scripts, sometimes within loops =/. 500 - 1000 ms would hurt but any more could possibly throw off some of my timings.

Share this post


Link to post
Share on other sites

Why not just make random detection simple by detecting whether the spell book tab is still present? I'm sure all random events remove the spell book tab to stop you from using the home teleport spell.

 

procedure DetectRandom;

var x, y: Integer;

begin

If (FindColor(x, y, 2519723, 738, 177, 756, 198) = false) then

begin

repeat

LogOut;

until (LoginScreen = (true))

end;

end;

 

That should detect if the picture of the book has gone missing then log you out.

Edited by Amberleaf

Share this post


Link to post
Share on other sites
Why not just make random detection simple by detecting whether the spell book tab is still present? I'm sure all random events remove the spell book tab to stop you from using the home teleport spell.

 

 

 

That should detect if the picture of the book has gone missing then log you out.

 

That is basically what wanted is doing, he is counting the number of colors instances found and if it is less than then it is in a random and then he runs the rest of the random routines.

Share this post


Link to post
Share on other sites
Why not just make random detection simple by detecting whether the spell book tab is still present? I'm sure all random events remove the spell book tab to stop you from using the home teleport spell.

 

 

 

That should detect if the picture of the book has gone missing then log you out.

 

Tab exists uses essentially the same method so this wouldn't solve what ever is causing this.

 

How long are we talking of looping it? Because I call this fairly often in my scripts, sometimes within loops =/. 500 - 1000 ms would hurt but any more could possibly throw off some of my timings.

 

Yeah I call this a lot too.

 

It wouldn't make a difference unless a tab is missing (like if you were doing it with BankScreen open =/) in which case I'll probably loop it for RR(50, 150) something like that..

Share this post


Link to post
Share on other sites

KK and you can leave the bankscreen checking out of the function, because it could cause more problems. Anyone writing scripts will realize it after a few times of opening the bank and the script stopping hopefully. Im going to add the bank screen to my ScanForRandoms function to fix the issue.

Share this post


Link to post
Share on other sites

Overthinking this issue. I think amber was on the right track with simplicity. Not the right code. but gets the point.

Share this post


Link to post
Share on other sites
Overthinking this issue. I think amber was on the right track with simplicity. Not the right code. but gets the point.

If you look at wanted's post, He is using the same method as amber suggested essentially.........

Share this post


Link to post
Share on other sites
KK and you can leave the bankscreen checking out of the function, because it could cause more problems. Anyone writing scripts will realize it after a few times of opening the bank and the script stopping hopefully. Im going to add the bank screen to my ScanForRandoms function to fix the issue.

 

No point in leaving it out since it will be on the other end if stuff is missing.

Share this post


Link to post
Share on other sites

I guess you got a point, have you thought of looking for the chat option also? like if game tabs missing count color in chat box for the green Continue button.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...