SRL Archive - Help

Can Some one define FreeDTM?


ffcfoo

2010-06-21 22:29:47

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

2010-06-21 22:51:22

Frees the DTM's that are loaded to free up memory.

ffcfoo

2010-06-21 22:58:01

From: Frement
Frees the DTM's that are loaded to free up memory.


Ahh I see. Thank you.

Rich

2010-06-24 12:26:08

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.