Jump to content

Mining Without Static IDs?


Cloxygen

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

  • Recently Browsing   0 members

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