Log in

View Full Version : Can Some one define FreeDTM?



ffcfoo
06-22-2010, 02:29 AM
Hello, I am currently looking at some scripts so I can better understand them. I wen't to beginner scripts so I don't have to look for scripts that are long. So I found this one script and I am going threw it and I found this one part I don't understand. So I wen't to the SCAR Divi CDE Manual and it said this:


Unload deformable template editor.

Could someone explain that more? I have no idea what it means, the part of the script I am trying to figure out is this:


procedure FreeDTMs;
begin
FreeDTM(dtmStoExitMap);
FreeDTM(dtmArriveAtStoExit);
FreeDTM(dtmStoMap);
FreeDTM(dtmWSExitMap);
FreeDTM(dtmArriveAtWSExit);
FreeDTM(dtmWSCaveMap);
FreeDTM(dtmArriveWSCaveMap);
FreeDTM(dtmCaveCoalMap);
FreeDTM(dtmArriveAtCaveCoal);
FreeDTM(dtmWSMap);
FreeDTM(dtmCoalMap);
FreeDTM(dtmArriveCoalMap);
FreeDTM(dtmCaveExitMap);
FreeDTM(dtmArriveCaveExitMap);
FreeDTM(dtmNExitMap);
FreeDTM(dtmArriveNExitMap);
FreeDTM(dtmNStoMap);
FreeDTM(dtmArriveNStoMap);
FreeDTM(dtmPickAxe);
end;

What does FreeDTM do? No big words please, xD. I am not that smart.

Frement
06-22-2010, 02:51 AM
Frees the DTM's that are loaded to free up memory.

ffcfoo
06-22-2010, 02:58 AM
Frees the DTM's that are loaded to free up memory.

Ahh I see. Thank you.

Rich
06-24-2010, 04:26 PM
Adding onto what Frement said, if you don't free DTMs, the script may start to become laggy. Also, if you try to a free a DTM which isn't in use (not been declared) SCAR will give you an error. I'm not sure if Simba will, but I assume so.