SRL Archive - RS has been updated.

65536 -> 131072


Wanted

2009-11-09 18:20:09

The default black color is changed, this has rendered many things in mini-map scanners and Inventory functions (Like all of them) to be obsolete until the color 65536 is changed to 131072. This affects all item DTMs and more aswell…

Someone please update opendev.

Edit: Share your DTMs ect. here.

YoHoJo

2009-11-09 18:21:28

Holy Moly.
Open SRL> Replace All :D!
Nice find, thanks.

Wanted

2009-11-09 18:25:41

The MM is different to, but I think it's dynamic.

Bobarkinator

2009-11-09 18:42:34

I noticed this. Already changed in my Inventory functions. I wasn't sure if it was permanent or not though.

Wanted

2009-11-09 18:47:46

Everyone share your DTMs

ClickPouch (2) RuneCrafting.SCAR


'small': dtm := DTMFromString('78DA63DCC9C0C070870103FC076246100D048' +
'C1B808C4BE82A98C0242394C77810485C21A00664CE03026AF603' +
'8947F8D500001CEB0CEB');
'medium': dtm := DTMFromString('78DA63EC656060B8C78001FE033123880602C' +
'65620E312BA0A2630C908E5314E25424D0F903847400DC8AE4704' +
'D44C06124F08A801F9EB397E3500B06C0EEB');
'large': dtm := DTMFromString('78DA634C646060B8CF8001FE033123880602C' +
'62820E312BA0A2630C908E5312601898B04D4640089CB04D4E400' +
'894704D48412A1261648BC20A02695B01A00223E0F0B');
'giant': dtm := DTMFromString('78DA6334656060B8C78001FE0331238806024' +
'65D20E33CBA0A2630C908E5319A0189B304D4D811618E0B36F7A0' +
'A95127428D01907849408D3561350039310D9D');

YoHoJo

2009-11-09 18:59:09

{*******************************************************************************
function FindPickHeadColor: Boolean;
By: WT-Fakawi fixed by NaumanAkhlaQ
Description: Finds PickHead colors. Returns hc1, 2, 3, 4 & 5 for PickHead
finding of False when No Pick is in either GameTab(tab_Inv) or GameTab(5).
Sets Global variable NoPick.
*******************************************************************************}

Needs a DTM, but the DTM is very specific, so not 100% where to put the parent point.
All of Core doesn't use any DTMs I've checked it all. Heh only DTMs in any of the skills are pouches/pick.
So now we just gotta change all the colors :D Are we 100% sure its changed to that color and ONLY that color?

Edit: Outlines of items is 131072
Black Outlines of Symbols on Minimap/ Black "shadow" under red dots (items) on minimap is still 65536 (i doubt we even use those though :p)

JPHamlett

2009-11-09 18:59:37

that means autocolor should work again

Wanted

2009-11-09 19:00:56

From: J_Pizzle
that means autocolor should work again


?????

Nadeem

2009-11-09 19:08:45

Use a constant for that color, so if they revert you only needa replace one line :)

Edit: Constant in the SRL include, that is.



~NS

Wanted

2009-11-09 19:13:02

From: Nadeem
Use a constant for that color, so if they revert you only needa replace one line :)

Edit: Constant in the SRL include, that is.



~NS


Are you suggesting that all DTMs also should be dynamic?

YoHoJo

2009-11-09 19:14:34

From: Nadeem
Use a constant for that color, so if they revert you only needa replace one line :)

Edit: Constant in the SRL include, that is.
~NS


ROFL Good idea -.- We totally should do that.

Nava2

2009-11-09 19:16:14

Yup. the include is moving that way.. slowly..

Wanted

2009-11-09 19:16:19

Hell yea, idk what Jagex is trying to accomplish changing stuff like this.

HighRoller21

2009-11-09 19:35:03

I hope someone has all the BMP's saved on their computer lol

MylesMadness

2009-11-09 19:42:09

They had to share some srl love after smacking rsbot in the last update

YoHoJo

2009-11-09 19:45:55

From: HighRoller21
I hope someone has all the BMP's saved on their computer lol


What does that even mean rofl.
Bitmaps will probably be fine with tolerance
And if they aren't, then the old bitmaps on comptuer wont help much.
Also, there is a string to bitmap function anyways.
<3 :D?

HighRoller21

2009-11-09 19:52:51

From: YoHoJo
What does that even mean rofl.
Bitmaps will probably be fine with tolerance
And if they aren't, then the old bitmaps on comptuer wont help much.
Also, there is a string to bitmap function anyways.
<3 :D?


Okay I changed:

FindColorsTolerance(TPA, 65536, B.x1, B.y1, B.x2, B.y2, 0);

to

FindColorsTolerance(TPA, 131072, B.x1, B.y1, B.x2, B.y2, 0);

That it?

YoHoJo

2009-11-09 20:04:37

Well, you need to change EVERY 65536 to 131072 EVERYWHERE in the SRL include, then you're done!

HighRoller21

2009-11-09 20:05:13

Fun! *Cracks knuckles* Wish me luck!

Wanted

2009-11-09 20:11:37

From: HighRoller21
Fun! *Cracks knuckles* Wish me luck!


for each file just use ReplaceAll CTRL + R

YoHoJo

2009-11-09 20:12:16

Open Scar + Ctrl+R

HighRoller21

2009-11-09 20:20:25

Done, wasn't that bad.

Wizzup?

2009-11-09 20:22:33

From: YoHoJo
Well, you need to change EVERY 65536 to 131072 EVERYWHERE in the SRL include, then you're done!


Or add a constant yourself, and replace every 65536 with that constant.
I doubt they changed it for every colour though.

HighRoller21

2009-11-09 20:23:59

Would I have to add a constant at the start of each script to achieve this?

Wizzup?

2009-11-09 20:35:54

From: HighRoller21
Would I have to add a constant at the start of each script to achieve this?


Just to SRL, globals.scar.
const
srl_bound_colour = 131072;

and then replace 65536 with srl_bound_colour.

Wanted

2009-11-09 20:38:47

From: Wizzup?
I doubt they changed it for every colour though.


… update SRL pl0x :spot::garfield::bart:

Nadeem

2009-11-09 20:45:37

From: IceFire908
Are you suggesting that all DTMs also should be dynamic?


lol no, i mean for the colors :) add a constant in SRL.scar like
const RUNESCAPE_BLACK = 131072; // or w.e u wanna name the constant

and then just replace all the places from 65536 -> RUNESCAPE_BLACK (:



~NS

HighRoller21

2009-11-09 20:50:17

Well, now that that's done does anyone want/need it?

That is the color constant is done.

ZaSz

2009-11-09 21:17:41

From: Nadeem
lol no, i mean for the colors :) add a constant in SRL.scar like
const RUNESCAPE_BLACK = 131072; // or w.e u wanna name the constant

and then just replace all the places from 65536 -> RUNESCAPE_BLACK (:



~NS


But all dtms are built on the black around items no?

noidea

2009-11-09 21:25:15

From: Nava2
Yup. the include is moving that way.. slowly..


Noooo! Even Narcle told me I should get used to it :<

JPHamlett

2009-11-09 21:27:24

From: IceFire908
?????


u said that the map i dynammic now and doens that mean that its pretty much the same color so then auto color will owrk again it failed before because they changed the road so much and now its a pretty set color i tested it

Wanted

2009-11-09 22:00:35

From: J_Pizzle
u said that the map i dynammic now and doens that mean that its pretty much the same color so then auto color will owrk again it failed before because they changed the road so much and now its a pretty set color i tested it


"You said the map is dynamic now, doesn't that mean that it's pretty much the same color so then auto color will work again it failed before because they changed the road so much and now it's a pretty set color I tested it."

I still don't understand wtf you are saying man. All I can say is that I assume you're saying autocolor works again now because they changed the colors, which doesn't make sense it all. Maybe if you worded/explained yourself better.

Narcle

2009-11-09 22:16:13

From: noidea
Noooo! Even Narcle told me I should get used to it :<


Told you.

And I already SAID that we should have global color constants… this just proves my point. :p

Const
srl_color_outline = 131072;
bank_color_alk = yadayada;


Something like that.

JPHamlett

2009-11-09 22:47:12

From: IceFire908
"You said the map is dynamic now, doesn't that mean that it's pretty much the same color so then auto color will work again it failed before because they changed the road so much and now it's a pretty set color I tested it."

I still don't understand wtf you are saying man. All I can say is that I assume you're saying autocolor works again now because they changed the colors, which doesn't make sense it all. Maybe if you worded/explained yourself better.


ill try but as u may or may not have noticed i am not good at all describing what is in my head and putting it into words


ok so srl autoroadcolor things where broken because of the multiple colors in the road but now that it a very similar color auto color should be able to pick it up again and get the correct color

if that didnt make any sence then im sorry i dont relaly kno how else to word it

Narcle

2009-11-09 23:15:49

const SRL_Black added. This replaced all occurrences of 65536 color, name can be changed at later date.


Updated in Dev svn revision 278

Wizzup?

2009-11-10 04:57:05

From: Nadeem
lol no, i mean for the colors :) add a constant in SRL.scar like
const RUNESCAPE_BLACK = 131072; // or w.e u wanna name the constant

and then just replace all the places from 65536 -> RUNESCAPE_BLACK (:



~NS


I guess we can make all DTM's dynamic too. But a better DTM System would be helpful if we want to achieve that.

nielsie95

2009-11-10 05:04:17

Here's something to convert your old DTMs:


program New;
const
DTM = '78DA63F4606460F0634001E181810C46401A2' +
'8C3F01F0818AD31D54064612490B601B28209A87105B2A209A8F1' +
'23424D38901540841A2FFC6A00C8100982';
var
a: TDDTMArray;
i: Integer;
begin
a := DTMtoDDTM(DTM);
for i := 0 to High(a) do
if (a[i].Color = 65536) then
a[i].Color := 131072;
WriteLn(DDTMtoDTM(a));
end.

You'll need dtmLib for these functions.
If you use more than 1 mainpoint it wont work properly though (DDTMs don't support it).

YoHoJo

2009-11-10 05:11:21

From: Wizzup?
I guess we can make all DTM's dynamic too. But a better DTM System would be helpful if we want to achieve that.


Afaik there's only 4 dtms in SRL
3 Pouches 1 Pickaxe, not a big deal?

Baked0420

2009-11-10 07:42:42

From: Nadeem
Use a constant for that color, so if they revert you only needa replace one line :)

Edit: Constant in the SRL include, that is.



~NS


I was going to say the exact same thing, because 65536 is probably in there a lot, would be so much easier to just change a constant, great minds think alike ;) haha