Results 1 to 13 of 13

Thread: RSC Chars

  1. #1
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default RSC Chars

    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?
    Thick As Blood

  2. #2
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Thick As Blood View Post
    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...

    Code:
    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)

  3. #3
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How how would I go about making this possible?
    Thick As Blood

  4. #4
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    lol im wondering the same thing...

  5. #5
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    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.. >.<

  6. #6
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    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
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    yeah making dtm's isnt fun for each text i need to find
    ..or bitmap masks

  8. #8
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    ..or bitmap masks
    ..or dtms
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  9. #9
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    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

  10. #10
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by antti mies View Post
    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

  11. #11
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Freddy1990 View Post
    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.

  12. #12
    Join Date
    Jan 2015
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by weequ View Post
    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.
    I'm really sorry to necro this, but its all there is..

    When I use this i get
    Code:
     Error: Unknown declaration "tr_NormalChars" at line 10
    Does anyone know how I can use Charsrsc with Simba? And what other parameters should I use for Reading text from RSC?

  13. #13
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by barrylol View Post
    I'm really sorry to necro this, but its all there is..

    When I use this i get
    Code:
     Error: Unknown declaration "tr_NormalChars" at line 10
    Does anyone know how I can use Charsrsc with Simba? And what other parameters should I use for Reading text from RSC?
    You already have your own thread.. Just post there instead.

    You need the correct font in Simba's fonts folder. Then use whatever text reading function you want. http://docs.villavu.com/simba/scriptref/ocr.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •