Forum

> > CS2D > Scripts > Have you seen this error before?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Have you seen this error before?

6 replies
To the start Previous 1 Next To the start

old Re: Have you seen this error before?

EngiN33R
Moderator Off Offline

Quote
Something is wrong with your code - stack overflow, basically, means that most likely some function parses itself so many times the script can't withstand it and shuts down to prevent crash.

old Re: Have you seen this error before?

Lee
Moderator Off Offline

Quote
If I'm reading this right

1
2
3
4
5
6
7
8
9
10
11
function tableToString(t, n, d)
	local s = ""
	if (n == nil) then n = 1 end
	if n<1 then n = 1 end
	if not d then d = " " end
	while (n <= #t) do
		s = s .. t[n] .. "".. d
		n = n + 1
	end
	return s -- <= line 79
end

this isn't a recursive call though so either the file was changed or maybe the stack overflowed from all of the variables... (not likely since we only pushed one extra object onto the stack which switches to at least 200 objects)

old Re: Have you seen this error before?

Banaan
User Off Offline

Quote
You actually keep track of how many objects you use in your code?

Maybe he uses an older version of the code? I searched around a little, found some old code at assembla, but line 79 is an if statement there so it can't cause an overflow either.

old Re: Have you seen this error before?

EngiN33R
Moderator Off Offline

Quote
Well, that's why I said
EngiN33R has written
Something is wrong with your code

and not 'Something is wrong with Lee's code'/'something is wrong with the mod!'.

Most likely he modified the script and did something wrong.

old Re: Have you seen this error before?

AimZ
User Off Offline

Quote
i'm trying to add Lag comp to amx and this happens after 1 kill, i didnt make the lag comp either just trying to figure out why its doing this.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview