WT-Fakawi
2009-12-18 03:46:06
You can continue to use scripts but be aware that UpText will no longer render predictable results.
2009-12-18 03:46:06
2009-12-18 04:37:33
2009-12-18 05:04:44
2009-12-18 17:03:25
2009-12-18 21:29:24
I'm aware that Jagex applies random padding to the text, however, the algorithm should correct that as it does not rely on padding…
2009-12-19 03:52:05
if IsTextInAreaEx(7, 7, 160, 20, x, y, 'theuptextyouarelookingfor', 100, Upchars, True, True, 0, 2, -1) then
.....2009-12-19 04:13:39
function IsUpText2(S : String): Boolean;
var x, y : Integer;
begin
Result := IsTextInAreaEx(7, 7, 160, 20, x, y, S, 100, Upchars, True, True, 0, 2, -1);
end;2009-12-19 04:31:41
2009-12-19 05:27:43
From: tompa55
Where do i put in this:
function IsUpText2(S : String): Boolean;var x, y : Integer;begin Result := IsTextInAreaEx(7, 7, 160, 20, x, y, S, 100, Upchars, True, True, 0, 2, -1);end;
?? I just delete something from the script and replace it with this or what??
2009-12-19 05:28:07
From: Zyt3x
Yay! :D
I'll test it right away :)
E: It works :)function IsUpText2(S : String): Boolean;
var x, y : Integer;
begin
Result := IsTextInAreaEx(7, 7, 160, 20, x, y, S, 100, Upchars, True, True, 0, 2, -1);
end;
2009-12-19 05:50:28
From: WT-Fakawi
EDIT: Forget it :(((((… Doesnt Work. I will revert to crude Bitmaps :(
2009-12-19 20:19:50
2009-12-19 20:35:48
From: Simtoon
Can't we help him maintain the fonts?
Instead of him maintaining them himself?
2009-12-19 21:17:56
From: Simtoon
Can't we help him maintain the fonts?
Instead of him maintaining them himself?
2009-12-20 03:18:06
2009-12-20 04:05:12
2009-12-20 04:08:55
From: The Claw
By the sounds of things then, maybe you should release source so more people can have a look at it. If you're not going to be able to fix it any time soon, it's the right thing to do by the community…it would be pretty slack to leave us all effectively unable to script and macro for an indefinate amount of time due to a difference in philosophies.
2009-12-20 05:33:27
From: YoHoJo
Stop it Claw :p, he's not going to. But I do have to admit, Freddy totally set himself up for that in his post!
2009-12-20 06:34:00
From: Freddy1990
Maintaining the fonts is no problem at all, I think most people will agree I've been doing a pretty decent job at that, however, Jagex somehow broke my OCR algorithm, I have no clue how though, by all means it should still work… But I'm having some difficulties fixing it, partially due to the fact that it's over 2 years old and I don't really comment my code often, like only 1% of the time or so, and my code from back then is usually almost unreadable, even by me, so it's rather hard to figure out where it goes wrong… I can't practically test it either because the whole thing is written in Delphi 7 and I'm developing with Delphi 2010, so I have to do the whole thing in a VM which is a slow and annoying process… And most of my spare time is already dedicated to developing SCAR 3.50 to get it ready as soon as possible…
2009-12-20 06:37:26
2009-12-20 10:23:16
2009-12-20 18:06:36
2009-12-20 19:48:40
From: Wizzup?
Why dedicate any time to SCAR 3.50 if the current one isn't even working?
Last time I read something about it you were at 10%, in what, 2 weeks? So it's going to take 18 more weeks before you finish it?
People are already flocking to RSBot just because SCAR simply fails at uptext.
From: Simtoon
Just post the uptext function so people can help fix it you don't have to OS it.
From: Town
Are we aware of the extent of the randomness yet, or if it is random at all? Maybe someone should run a test of how the area varies over a certain amount of time.
2009-12-20 19:58:20
From: Town
Are we aware of the extent of the randomness yet, or if it is random at all? Maybe someone should run a test of how the area varies over a certain amount of time.
From: Freddy1990
I'm aware that nothing I will ever do will satisfy you. And btw, it's actually 10% in 4 months, but that's the completion ratio of the entire program, not just the vital parts requires to run scripts, which is obviously my aim to finish first. No go ahead and twist that into something meaningful to you, I don't care…
2009-12-20 20:06:10
From: Wizzup?
There can be text without any spacing. I did some testing. Which means there is no real way to detect the characters. They just look like one.
2009-12-20 20:10:15
2009-12-20 20:17:32
From: Wizzup?
There's a difference between satisfying people and having realistic views. I don't believe that if you write an OCR for SCAR 3.2x now, you can't use it in 3.50.
From: Cazax
You can separate characters by detecting the black outline and since their X value is always 1 you know there ends the last character.
From: IceFire908
Funny how people say they want to help, that plugin folder is there for a reason.
2009-12-20 20:38:29
From: Cazax
You can separate characters by detecting the black outline and since their X value is always 1 you know there ends the last character.
2009-12-20 20:50:11
From: Wizzup?
I don't see how it helps, because there is no outline in this case, the other character overlaps it:![]()
2009-12-20 21:05:10
2009-12-20 21:37:54
From: Town
Is it possible that the only way to have two characters touching is while there are no shadows? That would make sense. I don't know if writing two separate cases is an option.
2009-12-20 21:46:38
From: Freddy1990
There are always shadows, not because you don't see them that they aren't there… The game won't make that distinction either…
2009-12-20 21:51:48
From: Town
I'm not sure I understand what you said. I was on the assumption that Wizzup's example was showing the uptext on a screen in which the background was the color 0. The shadow of the uptext (or outline as it's been called) is not visible. This, it seems to me, allows the allows the "r" and "t" in the picture to be a pixel or two closer together as there is no shadow in between. Is that more clear, or is that what you have already answered to?
I may be wrong if that picture isn't directly from the game, though.
2009-12-20 21:55:05
2009-12-20 22:00:17
2009-12-20 23:14:18
2009-12-21 00:00:33
2009-12-21 17:25:05
2009-12-22 07:18:57
From: Cigue
Would it help if I screenshotted about a hundred instances of the same uptext taken on different logins to measure what the randomness is?
2009-12-22 17:49:14
2009-12-23 03:31:08
From: anonymity
K, please don't bite my head off, because I am not masterfully knowledgeable in Freddy's code or the usage of uptext.
Yes, I understand how much time, patience, energy drinks, women, naps, bacon, and dedication this would take… however:
1. With the randomness… is is possible to qualitatively AND quantitatively 'record' the different types of text shades, styles, and ect?? - then take that and create a OCR algorithm to include all of the above. After that, make an include (or part of the algorithm … whatever) to run through the different types of text that has been encountered before and generate a proper response to the text that it sees now…
- just a thought… it would very time consuming and often buggy…
2. Try a different vantage point… Take the text that SCAR sees and run that through a render… then have SCAR recognize the pattern and associate it with letters, and build what it says on its own. … and go from there..
- just another thought..
Best wishes with getting whatever you are working on done Freddy.
From all of us, for all of us…
2009-12-30 22:26:43