fuzz357 Posted January 13, 2013 Share Posted January 13, 2013 Hey, I was curious about how DTMs work now. It's been a while since I have used SCAR, and a lot seems to have changed. I couldn't find much documentation on DTMs. I noticed there is a TDTM type now, but I cannot find the appropriate "FindDTM" function. It looks like the old FindDTM method takes in an Integer instead of a TDTM object. Is there some some way to get an Integer pointer to the DTM or something? Thanks, fuzz357 Quote Link to comment Share on other sites More sharing options...
LordJashin Posted January 13, 2013 Share Posted January 13, 2013 Tools -> DTM Editor: To make DTM's and then you do: [scar] var DTM: Integer; begin DTM := DTMFromString('78DA63DCC1C4C0A0C4C8800CFEFFFF0FA661A' + '28C2D40353F19F0AB790354F387809A7B40357104EC7204AAB125' + 'A06606508D300135B7816A8E1050530E549348408D1F508D2A7E3' + '50019AB249F'); // Find dtm function goes here FreeDTM(DTM) end. [/scar] Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted January 13, 2013 Share Posted January 13, 2013 I suspect when Freddy gets around to the revamp of Dtms as promised the TDTM type will start being used, just like he reworked Bitmaps. But for now we still use the referenced Dtm as in LordJashin's example. Quote Link to comment Share on other sites More sharing options...
fuzz357 Posted January 13, 2013 Author Share Posted January 13, 2013 Alright, thank you. Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 13, 2013 Share Posted January 13, 2013 TDTM currently is a record type, it was introduced in SCAR Divi 3.00. The DTM system will indeed be revamped soon, certainly somewhere during the course of this year. Quote Link to comment Share on other sites More sharing options...