Jump to content

Mining Without Static IDs?


Recommended Posts

Posted
1 minute ago, Polymorphism said:

Using the colorpicker in the osbot api

https://osbot.org/api/org/osbot/rs07/api/ColorPicker.html

 

Basically you'll get the model of the rock -- get yourself any point inside the model (not the position) and use the method #colorAt(x,y) or #colorAt(Point p) to determine if its mine-able

 

It'll some debugging to determine what color you should be checking for

wouldn't this give different results depending on which part of the rock its on? like shadows and shit?

Posted
5 minutes ago, Cloxygen said:

wouldn't this give different results depending on which part of the rock its on? like shadows and shit?

Not sure, never had a reason to use it myself. The game could display colors and shadows separately meaning that it wouldn't matter which part of the rock you grabbed regardless of its shadow or visibility. Maybe someone like @Chris or @Token or @Xerion could provide further info regarding that.

Posted
9 hours ago, Cloxygen said:

Apparently there's a way to make a mining script without static IDs and I'm supposed to ask here for ideas. Any suggestions appreciated. :)

 

8 hours ago, Polymorphism said:

Using the colorpicker in the osbot api

 

8 hours ago, Chris said:

#modifiedcolours

 

Do not use ColorPicker.

And I already have a snippet in the snippets section:

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...