SRL Archive - Bugs

TMDTM's dont work in extensions


Tv-XxX

2010-05-24 18:16:40

I've told raymond about this in IRC, but I thought i'd make a proper bug report aswel.

Basically, TMDTM's work fine in simba if you use them in a script, but if you add them to an extension (.sex) you get an error saying AddPoint does not exist.


program DTMError;
var
TheDTM: TMDTM;

procedure Init;
begin
TheDTM := TMDTM.create;
TheDTM.AddPoint( CreateDTMPoint( 1, 1, 255, 10, 1, False ) );
Writeln( 'DTM : ' + TheDTM.ToString );
end;

procedure Free;
begin

end;

procedure Attach;
begin;

end;

Procedure Detach;
begin

end;

function GetName : string;
begin;
result := 'DTM Error Example';
end;

function GetVersion : string;
begin;
result := '1.0';
end;

begin
end.

Yours
Tv

Sex

2010-05-24 18:19:39

What is TMDTM?

Tv-XxX

2010-05-24 18:24:31

something used when making a DTM from coords, color, tolerance and area… I'm making a DTM Editor extension, I have all the rest working… the only bit that doesnt work is the DTM creation which needs a TMDTM.

Yours
Tv

Sex

2010-05-24 18:33:22

So it is just like TDTM in SCAR?

Wizzup?

2010-05-24 18:38:06

From: Sex
So it is just like TDTM in SCAR?


Why don't you check it out with the code hints, or the thread Raymond made about it. ;)
Tv-XxX, sounds like a bug. Will investigate in a bit.

Tv-XxX

2010-05-24 18:41:01

Cheers Wizzup :) Then I can finally finish my DTM editor :)

Yours
Tv

Tv-XxX

2010-05-26 04:11:57

Sorry to double post, but I really cant wait for this bug to be fixed :P

So, any news?

yours
Tv

mastaraymond

2010-05-26 04:49:42

From: Tv-XxX
Sorry to double post, but I really cant wait for this bug to be fixed :P

So, any news?

yours
Tv

Ah, well it might take a while as I'm kinda busy with me exams right now (just like Wizzup). Try to create your DTM-editor as a script first (because here the TMDTM's DO work). Then you can always port it later on :).

Tv-XxX

2010-05-26 04:57:49

ok m8, exams come first :) (finished my first year of uni, a week ago so i know exams are a pain :( )

and I've already done as a script and im on the convert part :) still it gives me time to finish the game I'm writting for NDS…

Good luck in your exams, both of you :)

Yours
Tv