SRL Archive - OSR Help

DTM Error


Aegis

2011-11-04 00:59:44

After making some DTMs, I decided to try them out. I get an error whenever I try finding the DTMs. I've tried several scripts to test DTMs, and I get a similar error, pointing to any FindDTM method.

Using my script, I get this error:
Error: Exception: Invalid pointer operation at line 64

The error is shown in C:\Simba\Includes\SRL\SRL\core\amount.scar, at line 64, containing:

'dtm': Result := FindDTM(Ident, x, y, Area.x1, Area.y1, Area.x2, Area.y2);

And when I run this code:
program New; 
var Vial,x,y:integer;
begin
Vial := DTMFromString('78DA63AC666460286740017509960CFF81345' + '086E13F1030B663AA81C8C248205D0B64D51050934F849A2A202B' + '8B809A26202B13BF1A0034E80BCD');
if FindDTM(Vial,x, y,1, 1, 200, 200) then
writeln('Found DTM')
end.

I get:
Error: Exception: Invalid pointer operation at line 5

Care to help? I've been working on this issue for like an hours now, lol. Trying to figure out what's wrong. Figured I'd post before bed. It's probably something completely retarded.

YoHoJo

2011-11-04 01:19:37

I copy pasted
program New;
var Vial,x,y:integer;
begin
Vial := DTMFromString('78DA63AC666460286740017509960CFF81345' + '086E13F1030B663AA81C8C248205D0B64D51050934F849A2A202B' + '8B809A26202B13BF1A0034E80BCD');
if FindDTM(Vial,x, y,1, 1, 200, 200) then
writeln('Found DTM')
end.

Into simba, and I got not compiling errors.

Flight

2011-11-04 03:22:32

I have the same exact error when calling "FindNormalRandoms" at this line:

if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2) or

It makes me wonder if it's a problem within Simba.

YoHoJo

2011-11-04 03:24:38

if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2) or
Missing a closing pretense?
I assume it probably appears later on in the next few lines though….

Flight

2011-11-04 03:51:51

Yep. Run any script and call "findnormalrandoms", you'll get the same error on line 408 in antirandoms.scar.


if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2) or
FindDTM(BookOfKnowledge, x, y, MIX1, MIY1, MIX2, MIY2)) then

Wizzup?

2011-11-04 07:32:40

What Simba is this? (Version 0.98-rc1 / 980?) Where did you get it?

E: I am pretty sure this happens only with Simba > 0.98-rc1.
In my testing 0.98-rc1 gives an access violation, and 0.97.3 just works fine.
I'll get around fixing this in a bit.

Meanwhile, use the Stable simba version. (0.97.3)

Flight

2011-11-04 07:49:40

Yes I'm using 0.98-rc(1?).

Aegis

2011-11-04 10:16:35

From: Flight
Yes I'm using 0.98-rc(1?).


Yup, same here. Well, it's a relief to know it's not a problem on my end! I'll try out the non rc version.

Wizzup?

2011-11-05 07:59:33

I have fixed this in Simba-Next. Try the Simba.exe (i386, win32) from https://www.moparisthebest.com/jenkins/job/Simba_Next/14/ ?
Let me know if it actually finds the dtm though. (It should)