[quote] [code]function Commands.kick(args,sender)
MinimumPermission(2,sender)
assert(args[1],“Player to kick is missing”)
local banned = GetPlayersFromString(args[1],sender)
for _,i in pairs(banned) do
if avoidantibans then
Instance.new("Model",Players).Name = i.Name
end
i:Kick()
end
Tell(sender,"Kicked "..tostring(comunpack(banned))..".",3)
end[/code]
-RyanDolan123’s Admin Commands
It occurs when using Person299’s as well:
if string.sub(msg,1,5) == "kick/" then
local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
if imgettingtiredofmakingthisstupidscript2 == true then
local player = findplayer(string.sub(msg,6),speaker)
if player ~= 0 then
for i = 1,#player do
local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
if imgettingtiredofmakingthisstupidscript == false then
if player[i].Name ~= eloname then
player[i]:Kick()
end end end end end end [/quote]
[quote] This is a tricky issue, but rest assured we are trying to track it down.
The reason why it’s so tricky is because usually the error message, such as “bad string length”, is not accurate. This is because somehow reading of bitstream got out of order, and we are trying to deserialize the bitstream as a string when it’s actually something else.
We have plans to add more useful debug information. In mean time, if you guys can repro this issue or have any information that you think might be helpful, such as last thing you were doing or stuff happening in the place right before disconnect, please let us know. [/quote]
This occurs at my place every time the :Kick() function is called.[/quote]
How sure are you of this? Have you tried not kicking anyone and the error no longer happen?
[quote] [quote=“RoboYZ” post=41852]This is a tricky issue, but rest assured we are trying to track it down.
The reason why it’s so tricky is because usually the error message, such as “bad string length”, is not accurate. This is because somehow reading of bitstream got out of order, and we are trying to deserialize the bitstream as a string when it’s actually something else.
We have plans to add more useful debug information. In mean time, if you guys can repro this issue or have any information that you think might be helpful, such as last thing you were doing or stuff happening in the place right before disconnect, please let us know. [/quote]
This occurs at my place every time the :Kick() function is called.[/quote]
How sure are you of this? Have you tried not kicking anyone and the error no longer happen?[/quote]
The error does not happen unless someone is kicked or banned using RyanDolan123’s admin or Person299’s admin calling :Kick().
Happened shortly after the :Kick() method was used on a player. As you can see, all non-coreguis were removed ( we use a custom playerlist and chat gui ) and everything pretty much just stops replicating. The server is instantly removed from the server list and we’re able to start another straight away. No “you have lost connection” or “this game has shutdown” message as you can see.
Happened shortly after the :Kick() method was used on a player. As you can see, all non-coreguis were removed ( we use a custom playerlist and chat gui ) and everything pretty much just stops replicating. The server is instantly removed from the server list and we’re able to start another straight away. No “you have lost connection” or “this game has shutdown” message as you can see. [/quote]
Perfect example. I believe it is an issue with the kick() method. Also, question, do you guys use savestring to save data when the kick is called?
Nope, always been open. However, it does use old data persistence methods which are called when a player joins and leaves (I’m assuming using :kick() fires the leave event)
Nope, always been open. However, it does use old data persistence methods which are called when a player joins and leaves (I’m assuming using :kick() fires the leave event)[/quote]
My game also uses the older data persistence rather than data stores, maybe this could be the problem?
If we could get a date and time for you to show up that’d be nice, it’s kind of important that we have someone with admin privileges there to kick you (wow that’s quite a sentence…)
If we could get a date and time for you to show up that’d be nice, it’s kind of important that we have someone with admin privileges there to kick you (wow that’s quite a sentence…) [/quote]
If we could get a date and time for you to show up that’d be nice, it’s kind of important that we have someone with admin privileges there to kick you (wow that’s quite a sentence…) [/quote]
Now[/quote]
As far as I’ve just been told, you got a repro? If you need it to happen again we can probably get it again.
[quote] [code]function Commands.kick(args,sender)
MinimumPermission(2,sender)
assert(args[1],“Player to kick is missing”)
local banned = GetPlayersFromString(args[1],sender)
for _,i in pairs(banned) do
if avoidantibans then
Instance.new("Model",Players).Name = i.Name
end
i:Kick()
end
Tell(sender,"Kicked "..tostring(comunpack(banned))..".",3)
end[/code]
-RyanDolan123’s Admin Commands
It occurs when using Person299’s as well:
if string.sub(msg,1,5) == "kick/" then
local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
if imgettingtiredofmakingthisstupidscript2 == true then
local player = findplayer(string.sub(msg,6),speaker)
if player ~= 0 then
for i = 1,#player do
local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
if imgettingtiredofmakingthisstupidscript == false then
if player[i].Name ~= eloname then
player[i]:Kick()
end end end end end end [/quote]
Unrelated, but it looks to me like you’ve got a bit of an outdated version of my admin…I renamed comunpack to just unpack a while ago. (Which I should rename again because it’ll confuse people about the normal Lua unpack function…)
You might want to reinsert it to update it. I’m pretty sure that version doesn’t support auto updating
I’ve isolated it (I’m ~70% sure) to a call of loadstring, using countless hours of debugging and print statements. It seems to be that loadstring, which is loading a perfectly fine string, is erroring at certain times. There is a chance that some of the items, in the middle of the loadstring function call, are being set to nil, and the string that I am saving would be "item, "…nil…“item,” but lua is smart enough to error when one tries to concatenate a nil value. I’ve added an exception and am going to see if the crashes persist.
EDIT: Crashes persist, the data saving thing was just a coincidence. added prints before every serverside call to a remoteevent and the times between the last call to a remoteevent and a crash were minutes apart.