Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what happpen for change items then got error #155

Open
bxqt1997 opened this issue Feb 10, 2021 · 4 comments
Open

what happpen for change items then got error #155

bxqt1997 opened this issue Feb 10, 2021 · 4 comments

Comments

@bxqt1997
Copy link

L 02/10/2021 - 07:16:50: Lua Error: addons/pointshop2/lua/ps2/shared/sh_0_pointshop2.lua:126: attempt to call global 'class' (a string value)
stack traceback:
[C]: in function 'class'
addons/pointshop2/lua/ps2/shared/sh_0_pointshop2.lua:126: in function 'LoadPersistentItem'
addons/pointshop2/lua/ps2/server/sv_pointshopcontroller.lua:549: in function 's'
addons/libk/lua/libk/shared/1_sh_promises.lua:57: in function 'f'
addons/libk/lua/libk/shared/1_sh_promises.lua:184: in function 'Resolve'
addons/libk/lua/libk/server/sv_libk_model.lua:519: in function 's'
addons/libk/lua/libk/shared/1_sh_promises.lua:57: in function 'succ'
addons/libk/lua/libk/shared/1_sh_promises.lua:125: in function 'Done'
addons/libk/lua/libk/shared/1_sh_promises.lua:116: in function 'Then'
addons/libk/lua/libk/server/sv_libk_model.lua:518: in function 'callback'
addons/libk/lua/libk/server/sv_libk_database.lua:151: in function <addons/libk/lua/libk/server/sv_libk_database.lua:150>
[C]: in function 'fn'

@ValentinFunk
Copy link
Owner

Looks like another addon that you have is overriding the class global that this addon depends on. Search your addons folder for the text class = and anything if it doesn't start with local, e.g. local class = "Hunter" this will cause issues

@ValentinFunk
Copy link
Owner

Workshop addons could also cause this

@bxqt1997
Copy link
Author

it's not working , I deleted all file except libk , ps2 , pac3 . But I remake a empty database it works again , I think the problem its database

@bxqt1997
Copy link
Author

L 02/12/2021 - 22:00:02: Lua Error: addons/pointshop2-2.24.1/lua/ps2/shared/sh_0_pointshop2.lua:116: attempt to index field 'ItemPersistence' (a nil value)
stack traceback:
[C]: in function '__index'
addons/pointshop2-2.24.1/lua/ps2/shared/sh_0_pointshop2.lua:116: in function 'LoadPersistentItem'
addons/pointshop2-2.24.1/lua/ps2/server/sv_pointshopcontroller.lua:544: in function 's'
addons/libk/lua/libk/shared/1_sh_promises.lua:57: in function 'f'
addons/libk/lua/libk/shared/1_sh_promises.lua:184: in function 'Resolve'
addons/libk/lua/libk/server/sv_libk_model.lua:519: in function 's'
addons/libk/lua/libk/shared/1_sh_promises.lua:57: in function 'succ'
addons/libk/lua/libk/shared/1_sh_promises.lua:125: in function 'Done'
addons/libk/lua/libk/shared/1_sh_promises.lua:116: in function 'Then'
addons/libk/lua/libk/server/sv_libk_model.lua:518: in function 'callback'
addons/libk/lua/libk/server/sv_libk_database.lua:151: in function <addons/libk/lua/libk/server/sv_libk_database.lua:150>
[C]: in functioaddons/pointshop2-2.24.1/lua/ps2/shared/sh_0_pointshop2.lua:116: attempt to index field 'ItemPersistence' (a nil value)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants