SRL Archive - Research & Development Lounge

Self-updating colors?


Yuskie

2015-04-25 03:59:57

I was wondering is it possible to write a script that would update colors by itself? Or is it possible to use another script to update script colors?

Clarity

2015-04-25 04:27:06

What kind of color updating are you interested in? Could you be more specific?

Rich

2015-04-25 06:50:21

Thinking about it, it wouldn't actually be too difficult. Let's say you've got a few base colours for a tree in an array and use (A)TPAs to find that tree. Once you've moved the mouse and got confirmation from the mouse-over text you could grab the colour from that particular point and store it in the array of colours to be used for future tree finding.

However it could cause a few problems in some situations in the sense that the base colours you've picked would only be found on the tree, but the new colours you store could also possibly be found in the surrounding area (grass, different trees etc.), and this would probably actually make finding the tree a more laborious process.

It all really depends on the context of what's being clicked on. So as another example, if you were mining Mith rocks you wouldn't expect to find that blue colour anywhere else apart from in the rocks, so gathering more colours shouldn't cause any problems with getting the rock confused with the surrounding area.

Kasi

2015-04-25 06:52:40

Auto Color Aid?

Just make a best color function

bonsai

2015-04-25 07:03:36

From: Rich
Thinking about it, it wouldn't actually be too difficult. Let's say you've got a few base colours for a tree in an array and use (A)TPAs to find that tree. Once you've moved the mouse and go confirmation from the mouse-over text you could grab the colour from that particular point and store it in the array of colours to be used for future tree finding.

However it could cause a few problems in some situations in the sense that the base colours you've picked would only be found on the tree, but the new colours you store could also possibly be found in the surrounding area (grass, different trees etc.), and this would probably actually make finding the tree a more laborious process.

It all really depends on the context of what's being clicked on. So as another example, if you were mining Mith rocks you wouldn't expect to find that blue colour anywhere else apart from in the rocks, so gathering more colours shouldn't cause any problems with getting the rock confused with the surrounding area.


This is basically how bonsaiFighter works

And, yes it's full of problems and annoyances as you imagine

Gu3st...

2015-04-25 07:36:17

SmartColors.simba from SRL-5 did exactly that. :)
Does anyone want to update it for SRL-6?