SRL Archive - Discussions and Debates

Attention certer bug!


Eicca

2007-11-03 06:30:03

******** FOUND TALKING RANDOM TEXT********: Talk-to Niles            
1. spade
2. helmet
3. shield
[Runtime Error] : Out Of Range in line 49 in script C:\Documents and Settings\*****\includes\SRL/SRL/Core/AntiRandoms/Certer.scar

Script i was running was VEM by MasterKill, but I think it doesnt make difference

n3ss3s

2007-11-03 06:38:36

Its in the SRL code, the SetArrayLength should be right after the Inc.

nielsie95

2007-11-03 06:53:53

No, because the length is already set to the max length..

I think it's because 30800 is not the max length..
But SKy better can take a look at it.

n3ss3s

2007-11-03 07:50:14

But what if P is more than 30800?

Harry

2007-11-03 08:23:45

My certer will just talk to the certer, then fail it :ekk: then say it solved it.. :rolleyes: :|

Markus

2007-11-03 08:50:07

Max array length is 16777215.

Eicca

2007-11-03 09:06:53

Well, I'm not complaining, but I just hope this error report helps the SRL developers :P

n3ss3s

2007-11-03 09:28:56

16777215


And color white is 16777215.. What connection do they have?

nielsie95

2007-11-03 11:48:17

From: n3ss3s
But what if P is more than 30800?

I guess that was the problem, yes.

From: Markus
Max array length is 16777215.

It just searches in a small area, so an array of that size isn't needed.

bullzeye95

2007-11-03 12:36:44

From: Markus
Max array length is 16777215.


program New;
var
I: TIntegerArray;
begin
SetLength(I, 99999999);
writeln(inttostr(Length(I)));
I[99999998]:= 5;
writeln(inttostr(I[99999998]));
end.
Apparently not?

R0b0t1

2007-11-03 18:27:38

16777215 is the max for colors.

If you are using 32bit ints, however, its 2^32.