CS2D 0.1.2.0 Bugs report
250 replies
Code:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
tbl={}
tbl[1]=function() print("test") end
addhook("second","tbl[1]") --causes 'attempt to call a nil value'
tbl={}
tbl[1]={}
tbl[1].test=function() print("test") end
addhook("second","tbl[1].test") --crashes CS2D without warning or error
tbl[1]=function() print("test") end
addhook("second","tbl[1]") --causes 'attempt to call a nil value'
tbl={}
tbl[1]={}
tbl[1].test=function() print("test") end
addhook("second","tbl[1].test") --crashes CS2D without warning or error
I code, therefore I exist.
Lua addhook doesn't work with number keys:
Edit: Too late
Code:
1
2
3
2
3
x = {}
x[1] = function() msg("a") end
addhook("second","x[1]") --> attempt to call nil value
x[1] = function() msg("a") end
addhook("second","x[1]") --> attempt to call nil value
Edit: Too late
Ah I remember posting about this
and you were the next replier.
Also a good workaround is
Anonymous functions (1).

Also a good workaround is


So is the clientside angledif spam on tween_move with rotation going to affect server lag?
edit : also the room entity cant be triggered. and mode # 3 for images in lua does not work, tween move with image mode set as Mode 133-164 bugged(tween_rotates instead of moving).
edit : also the room entity cant be triggered. and mode # 3 for images in lua does not work, tween move with image mode set as Mode 133-164 bugged(tween_rotates instead of moving).
edited 3×, last 31.07.12 05:03:04 am
I'm not sure is this a bug or not, but I'm going to report it:
Here's my script:
When player reloads Aug, it should show message "Reloading Your Aug!", but it wont.
I tried other ways to show the message, but still nothing.
All other weapons work nicely, except Aug
Here's my script:
Code:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("reload","load")
function load(id,mode)
local wp = player(id,"weapontype")
if mode == 1 then
if wp == 33 then
msg("Reloading Your Aug!")
end
end
end
function load(id,mode)
local wp = player(id,"weapontype")
if mode == 1 then
if wp == 33 then
msg("Reloading Your Aug!")
end
end
end
When player reloads Aug, it should show message "Reloading Your Aug!", but it wont.
I tried other ways to show the message, but still nothing.
All other weapons work nicely, except Aug

Don't have time to check whether this was reported or not, but sometimes on happy town and other servers like that building a Supply makes it spawn armor and molotov without being upgraded.
zugcxdxtczgvhioj

Don't have time to check whether this was reported or not, but sometimes on happy town and other servers like that building a Supply makes it spawn armor and molotov without being upgraded.
You dude, meet with a hacker. Sad.
@
palomino:
Supply hack. Basically, faking some offsets, I suppose.

Supply hack. Basically, faking some offsets, I suppose.
@
Suprise: @
oxytamine: Weird, as he actually called for me and told me to check this supply bug. I was GM and everybody knew that.


zugcxdxtczgvhioj
Use
CS2D Bug Reports for all future bug reports please.

