CEI with existing Cobalt Essentials install
Closed this issue · 2 comments
02bensch commented
I am experiencing an error after installing CEI on an existing Cobalt Essentials install.
Whenever one or more players are connected, there is a constant spam in the console of:
[12/05/23 14:26:48] [LUA ERROR] txPlayersDatabase: ...ftp/upload/c1/Server/CobaltEssentials/extensions/CEI.lua:812: bad argument #1 to 'for iterator' (table expected, got nil)
[12/05/23 14:26:49] [LUA ERROR] txPlayersDatabase: ...ftp/upload/c1/Server/CobaltEssentials/extensions/CEI.lua:812: bad argument #1 to 'for iterator' (table expected, got nil)
[12/05/23 14:26:50] [LUA ERROR] txPlayersDatabase: ...ftp/upload/c1/Server/CobaltEssentials/extensions/CEI.lua:812: bad argument #1 to 'for iterator' (table expected, got nil)
[12/05/23 14:26:51] [LUA ERROR] txPlayersDatabase: ...ftp/upload/c1/Server/CobaltEssentials/extensions/CEI.lua:812: bad argument #1 to 'for iterator' (table expected, got nil)
Versions:
- BeamMP Server v3.1.1
- Cobalt Essentials v1.7.4
- CEI v0.7.9
StanleyDudek commented
Hi there, thanks for reaching out,
It looks like, based on the part of the file path that I can see: ...ftp/upload/c1/
that CEI isn't handling this properly.
This is on me, as I have a specific standard resources path used in CEI.
If you would, please replace ...\CobaltEssentials\extensions\CEI.lua
with this, and let me know if the errors persist: https://github.com/StanleyDudek/CobaltEssentialsInterface/blob/main/Resources/Server/CobaltEssentials/extensions/CEI.lua
02bensch commented
That solves the issue - thanks!