SRL Archive - Reflection Help

Reflection [Rev. 67] Error


turbobk

2008-08-11 08:40:36

Me and skilld u, are working on a script at the moment and after updating to the latest Reflection revision I get this Error:
[Runtime Error] : Invalid Opcode Parameter in line 32 in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Walking.Scar

Which is this line:
{*******************************************************************************
procedure R_FFlag(Distance: Integer);
By: ZephyrsFury
Description: Similar to the original except it uses Reflection.
*******************************************************************************}
procedure R_FFlag(Dist: Integer);
var
Dx, Dy, Tx, Ty, m, d1, d2, w, h: Integer;
begin
while (GetFlag(Dx, Dy)) do //<---- Line 32
begin
w := (Dx - GetMyPos.x) * 4;
h := (Dy - GetMyPos.y) * 4;
d1 := Round(Sqrt(Sqr(w) + Sqr(h)));
if (d1 >= Dist) then
begin

Has anyone else got this problem and/or know how to fix?

Thanks alot,
TurboBk :)

sjlou

2008-08-11 08:46:40

getting the same problem :(

turbobk

2008-08-11 08:49:00

From: dushii
getting the same problem :(


I've just PM'ed Widget to let him know, hopefully he replys/fixes it soon..

EDIT: All of the Reflection Devs are OFFLINE! :(

carlover

2008-08-11 09:03:47

Take a look at the change log I'm pretty sure that you will find what is wrong in there. :)

turbobk

2008-08-11 09:06:14

From: carlover
Take a look at the change log I'm pretty sure that you will find what is wrong in there. :)


I know what is wrong..
They have changed the FFlag to R_FFlag in their WalkToTile function, and they did something wrong, I've had a look at it and I can't see anything that looks weird.

carlover

2008-08-11 21:20:44

They changed everything to TPointarrays…