SRL Archive - Include Development

RSC Chars


Thick As Blood

2009-11-16 21:18:06

They can be found in SCAR 1.13, but how can they be included in things like GetTextAtEx and ect? Or am I just missing something?

weequ

2009-11-17 03:36:58

From: Thick As Blood
They can be found in SCAR 1.13, but how can they be included in things like GetTextAtEx and ect? Or am I just missing something?
I tried that and failed hard.
Here is what I did…

program New;
var
x, y, Charsrsc, mask: Integer;
S: String;
begin
Charsrsc := LoadChars2(AppPath + 'Fonts\Charsrsc\');
{mask := CreateBitmapMaskFromText('p', Charsrsc);
if FindBitmapMaskTolerance(mask, x, y, 370, 3, 600, 30, 30, 30) then WriteLn(IntToStr(x)+', '+IntToStr(y));}
WriteLn(IntToStr(CharsRSC));
S := GetTextAtEx(379, 5, 0, Charsrsc ,false, true, 0 ,1, -1, 100, false, tr_AllChars)
writeln(S);
end.

It says this in the scar manual:
(If you are planning on creating your own character set, make sure bitmap images are named according to their ASCII codes.)
So I did it, but it still wont work :( (They are not according their ASCII codes in scar 1.13)

Thick As Blood

2009-11-17 12:33:10

How how would I go about making this possible?

weequ

2009-11-17 13:27:35

lol im wondering the same thing…

Gu3st...

2009-11-17 13:40:28

I have tried countless many times to work with LoadChars() and LoadChars2() but I have never ever managed to get it to work.. In the end I made my own FindText.. >.<

Awkwardsaw

2009-11-27 08:25:14

From: Zyt3x
I have tried countless many times to work with LoadChars() and LoadChars2() but I have never ever managed to get it to work.. In the end I made my own FindText.. >.<


yeah :( making dtm's isnt fun for each text i need to find

Gu3st...

2009-11-27 08:46:22

From: Awkwardsaw
yeah :( making dtm's isnt fun for each text i need to find
..or bitmap masks ;)

Awkwardsaw

2009-11-27 09:52:25

From: Zyt3x
..or bitmap masks ;)


..or dtms :)

weequ

2009-12-09 10:06:00

Guys i fould out that they have actually changed some letters. Most if not all changes are just 1 pixel. I think that after fixing them we can use gettextat ;)

Edit: They have only changed m and X. Attached fixed m and X ;)

Freddy1990

2009-12-09 10:40:32

From: antti mies
Guys i fould out that they have actually changed some letters. Most if not all changes are just 1 pixel. I think that after fixing them we can use gettextat ;)

Edit: They have only changed m and X. Attached fixed m and X ;)


Hmm, I've uploaded these to the SCAR Pre-release SVN so the fonts updater will add them

weequ

2009-12-09 10:44:53

From: Freddy1990
Hmm, I've uploaded these to the SCAR Pre-release SVN so the fonts updater will add them
Ty ;) Ur fast btw :P
This works best for me(you change the coords ofcourse+load chars) :
GetTextAtEx(382, 2, 0, Charsrsc, false, false, 0, 1, -1, 100, true, tr_NormalChars);
It reads l as I becouse they look exatly the same.