Results 1 to 4 of 4

Thread: DTM Help

  1. #1
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DTM Help

    Im getting an error on the following..

    SCAR Code:
    function LoadOakDTM(tolerancelevel : integer) : integer;
    begin
     case tolerancelevel of
    1:Result := DTMFromString('78DA635CC1C4C 010CB00068C108A4125808D8' +
           '10BCAFF0F048CDB816AA270AB018BAF04AAF120A0E618508D2B7E' +
           '3500B3D90A33');
    2:Result := DTMFromString('78DA635CCCC4C090C400068C108A412E41988' +
           '10BCAFF0F048C4B816A7C71AB018B6F00AA8927A0E620508D377E' +
           '3500C7850A8F');
    3:Result := DTMFromString('78DA635CC1C4C010CB00068C108A4125808D4' +
           '104CAFF0F048CDB816AA270AB018BAF04AAF120A0E618508D2B7E' +
           '3500BE290A5B');
    4:Result := DTMFromString('78DA635CCCC4C090C400068C108A412E41984' +
           '104CAFF0F048C4B816A7C71AB018B6F00AA8927A0E620508D377E' +
           '3500D1D50AB7');
    5:Result := DTMFromString('78DA635CC1C4C010CB00068C108A4125808D4' +
           '112CAFF0F048CDB816AA270AB018BAF04AAF120A0E618508D2B7E' +
           '3500C3510A6F');
    6:Result := DTMFromString('78DA635CCCC4C090C400068C108A412E41984' +
           '112CAFF0F048C4B816A7C71AB018B6F00AA8927A0E620508D377E' +
           '3500D6FD0ACB');
    7:Result := DTMFromString('78DA635CC1C4C010CB00068C108A4125808D4' +
           '119CAFF0F048CDB816AA270AB018BAF04AAF120A0E618508D2B7E' +
           '3500CDA10A97');
    8:Result := DTMFromString('78DA635CCCC4C090C400068C108A412E41984' +
           '119CAFF0F048C4B816A7C71AB018B6F00AA8927A0E620508D377E' +
           '3500E14D0AF3');
     end;
    end;

    [Runtime Error] : Exception: data error in line 406 in script which is the line
    SCAR Code:
    1:Result := DTMFromString('78DA635CC1C4C 010CB00068C108A4125808D8' +
           '10BCAFF0F048CDB816AA270AB018BAF04AAF120A0E618508D2B7E' +
           '3500B3D90A33');

    Also, is there anyway i can turn a DTM string to a DTM i can use in the DTM Test? (editor)?

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nvm, seems the problem was that it could not find the DTM at all. So i just made my own .

    Close/Delete please. Thanks

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    the prob was you had a space in the dtm number

    SCAR Code:
    //                                      |
    //you have a space right here           V
    1:Result := DTMFromString('78DA635CC1C4C 010CB00068C108A4125808D8' +
           '10BCAFF0F048CDB816AA270AB018BAF04AAF120A0E618508D2B7E' +
           '3500B3D90A33');

    delete that and it will work =]

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Haha, nice catch.

    Didnt notice that. DTM wasnt working too good always.

    Thanks

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

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
  •