Change the dirtColor number in RTB Preferences to the colorId of a brown in your colorset.
Why aren't you using getClosestPaintColor yet?
He didn't know about it? Not everyone is up to par with you oh greatness.
Here is a getClosestPaintColor function created by Space Guy:Code: [Select]function getClosestPaintColor(%rgba){ %prevdist = 100000; %colorMatch = 0; for(%i = 0; %i < 64; %i++) { %color = getColorIDTable(%i); if(vectorDist(%rgba, getWords(%color, 0, 2)) < %prevdist && getWord(%rgba, 3) - getWord(%color, 3) < 0.3 && getWord(%rgba, 3) - getWord(%color, 3) > -0.3) { %prevdist = vectorDist(%rgba,%color); %colormatch = %i; } } return %colormatch;}I just thought you might wanna use this for your Infinite Mining mod to work on any colorset.
function getClosestPaintColor(%rgba){ %prevdist = 100000; %colorMatch = 0; for(%i = 0; %i < 64; %i++) { %color = getColorIDTable(%i); if(vectorDist(%rgba, getWords(%color, 0, 2)) < %prevdist && getWord(%rgba, 3) - getWord(%color, 3) < 0.3 && getWord(%rgba, 3) - getWord(%color, 3) > -0.3) { %prevdist = vectorDist(%rgba,%color); %colormatch = %i; } } return %colormatch;}
I've got an idea, instead of checking for brown, which might break on special colorsets. You can set which color to check for, so you could make it work with your colorset or make it seem like a different material.
The admin tools (Speed dig and speed place) don't work for me. There's no difference also, it gives some syntax errors in the console.
i love this. thank you lil
-wtfsnip-
BumpWtf