SRL Archive - Help and Support

Exception in script.


JPHamlett

2010-09-15 07:27:07

Hey, , so I'm making a script that I am asked to keep private by BlueWorld, and when I test my DTMs I get this.


Compiled succesfully in 1716 ms.
Error: Exception: FindDTMs: DTM[] is not valid. at line 126
The following DTMs were not freed: [0, 1]

Yes, I know they are not freed, but why am I getting the second line?

Here's my code, sorry bout blocking out some of the names of my DTMs, if I left them in there you'd know my script.


Function TestDTMs: boolean;
var
PrivateDTM, X, Y, OtherDTM: integer;
begin
PrivateDTM := DTMFromString('78DA63DCC0C0C060CAC8800CB4751DC0344C9' +
'4713F90D04355039385ABD90C241C08A8590D24CC08A8D90424F4F1A' +
'B010048FC0533');

OtherDTM := DTMFromString('78DA6354666060B06500035608C5B068A13 80' +
'317906604E2FF40C0280A64D830A0012630C908E5318A0309 3702' +
'6A148084170135EA44A8D10512AE04D41820FC854B0D002F1 1084' +
'8');

result := finddtm(OtherDTM, x, y, msx1, msy1, msx2, msy2); // Error line
end;

Wizzup?

2010-09-15 11:49:43

Would you mind posting the original DTM?
writeln(getdtm(otherdtm)) should do the trick. (I'm on my phone can't do it atm)

JPHamlett

2010-09-15 15:57:41

What do you mean post the original DTMs? All I did was change the names of them, they're still the same just as a different variable.

BraK

2010-09-15 16:06:59

all I could get it to write was TMDTM wizzup

Wizzup?

2010-09-15 17:00:11

From: J_Pizzle
What do you mean post the original DTMs? All I did was change the names of them, they're still the same just as a different variable.


The points in the DTM's; the tolerances, etc.

writeln(getdtm(otherdtm).valid);

Returns False. So either the DTM is invalid or Simba falsely claims that the DTM is invalid.

JPHamlett

2010-09-15 22:23:17

well you see, I didn't make the DTMs. BlueWorld did cause my DTM editor fails. It outputs code like this


wefasd234sdhfawiehfudashfa==

Now that just an example but you get the idea.

Wizzup?

2010-09-16 09:47:37

Are you sure you're using the latest extensions /dtm editor? I added the dtm := DTMFromString('blabla'); about 2 months ago to the simba repos. And it surely is in the Simba 0.91 installer. :)

There aren't the very latest; but should work: http://simba.villavu.com/bin/Extensions.zip

JPHamlett

2010-09-19 21:08:36

Used the zip file and I still am getting the same DTM types in the debug box.

HyperSecret

2010-09-20 07:07:51

Idk if it matters at all, but in OtherDTM it looks like there is a space in the DTM. I have never personally seen a space in any dtm. So it could possibly be seeing it as an invalid/incomplete dtm?

Wizzup?

2010-09-20 12:27:00

From: HyperSecret
Idk if it matters at all, but in OtherDTM it looks like there is a space in the DTM. I have never personally seen a space in any dtm. So it could possibly be seeing it as an invalid/incomplete dtm?


That might be it… Good catch. Let us hear if that works J_Pizzle?

JPHamlett

2010-09-20 15:53:56

There we go. It works finally, still won't find it but that probably because the DTMs are bad now.

Wizzup?

2010-09-20 16:43:46

You should just get the dtm_editor of Simba to work. It isn't that hard… Update Simba to the latest version and download the dtm_editor.sex.

JPHamlett

2010-09-20 23:23:50

No it works but it outputs the weird outputs still, but its OK I got it now.