Garry's Mod

Any experienced with LUA?

Submitted by imgucci, , Thread ID: 201361

Thread Closed
22-03-2021, 10:34 PM
#1
Code:
[pointshop2] addons/pointshop2/lua/ps2/client/icons/cl_itemqueue.lua:2: attempt to call field 'CircularQueue' (a boolean value)

1. unknown - addons/pointshop2/lua/ps2/client/icons/cl_itemqueue.lua:2


That is the error and this is the line in cl_itemqueue:
Code:
Pointshop2.IconQueue = Pointshop2.IconQueue or LibK.CircularQueue()

RE: Any experienced with LUA?

#2
22-03-2021, 10:34 PM
imgucci Wrote:
Code:
[pointshop2] addons/pointshop2/lua/ps2/client/icons/cl_itemqueue.lua:2: attempt to call field 'CircularQueue' (a boolean value)

1. unknown - addons/pointshop2/lua/ps2/client/icons/cl_itemqueue.lua:2


That is the error and this is the line in cl_itemqueue:
Code:
Pointshop2.IconQueue = Pointshop2.IconQueue or LibK.CircularQueue()

CircularQueue is LibK function, but idk why would it return bool value. From what i see the function should return meta table.

Code:
function CircularQueue( size )
local obj = {}
obj.readIndex = 1
obj.writeIndex = 1
  
obj.capacity = size or 8
  
return setmetatable( obj, META )
end

It looks like something is wrong with your LibK or Pointshop. Have you edited anything in them? Are they updated to latest version? Maybe you have some uncompatible addon. Have you checked?

RE: Any experienced with LUA?

#3
I think some addons conflict with each other, but IDK how to help, sorry

Users browsing this thread: 1 Guest(s)