prestonelam2003 / CobaltEssentials

CobaltEssentials for beamMP
GNU General Public License v3.0
28 stars 10 forks source link

Warning / Error after starting: CobaltEssentials/CobaltEssentialsLoader.lua:16: attempt to perform arithmetic on a nil value (local 'e') #4

Open ger-pakon opened 3 years ago

ger-pakon commented 3 years ago

Hey, after starting the server I got following Warning/Error

[23/1/2021 20:18:39] [WARN] CobaltEssentialsLoader.lua | ...urces/Server/CobaltEssentials/CobaltEssentialsLoader.lua:16: attempt to perform arithmetic on a nil value (local 'e')

I addition, it's not clear while files are needed to configure. The documentation https://docs.google.com/document/d/1GCXPbN8e0SEJgQ69AU4O7v0aqqITazWInc1wmO1eYuo/edit?usp=sharing does not fit to the 1.5.3 release. :-(

Cheers, Pakon

ger-pakon commented 3 years ago

Hey,

do you need additional information?

Cheers, Pakon

20dka commented 3 years ago

that errror might mean that you put it in the wrong folder?

oh actually.. are you on windows or linux?

ger-pakon commented 3 years ago

I'm on linux. It's located unter ~/Resources/Server/CobaltEssentials/.

Is linux not supported?

20dka commented 3 years ago

im afraid not at the moment as the codebase uses \\ which is the windows path separator this doesnt look like a lua limitation so it could be fixed in the future

ger-pakon commented 3 years ago

Hey, I see the problem.

I never used lua... I may can (hot)fix it for myself. I just need to know the needed value of resources and pluginName.

Thank you

20dka commented 3 years ago

ive spent a few hours trying to get it working and i got those paths figured out but now im getting a luasocket error... will PR when done

ger-pakon commented 3 years ago

@20dka did you find anything?

20dka commented 3 years ago

Hey, no i couldn't get Cobalt working on Linux yet (well i could, but only with most of it stripped out which makes it pretty useless)

danbracey commented 3 years ago

Also having this issue, running BeamMP Server within a Docker container hosted on Pterodactyl

20dka commented 3 years ago

in the meantime ive successfully ported CE to linux, but the linux BeamMP server itself has some lua issues that make it unusable as of now. I'll update this issue when a new server version fixing lua issues comes out and cobalt can be tested on it for realsies

BADtochka commented 3 years ago

in the meantime ive successfully ported CE to linux, but the linux BeamMP server itself has some lua issues that make it unusable as of now. I'll update this issue when a new server version fixing lua issues comes out and cobalt can be tested on it for realsies

Has something changed?

20dka commented 3 years ago

Yeah, sorry for not replying @BadModer @ger-pakon @Ae3NerdGod The BeamMP server updated fixing most of their lua issues, and I have updated my 20dka/linux branch to work with it, albeit with some workarounds. @PenguinNexus Someone has already made a Pterodactyl egg for it, you can ask for it on discord (beammp or cobalt servers) (basically just apt install luasocket)

ger-pakon commented 3 years ago

Hey @20dka,

thanks for replying. I just installed the lua-tools but i can't find your 20dka/linux branch in this repository. Do you have a URL for us?

Cheers, Pakon

20dka commented 3 years ago

https://github.com/20dka/CobaltEssentials/tree/linux here it is You can message me on Discord deer boi#2273 for faster replies

haenzee commented 7 months ago

Im running into two errors when i start my server, i dont know what im doing wrong, i have never played with lua before.

When i try with the lastest release from the releae page, i get nothing.

Im on pc, and i have tryed with the master zip and the lastest of the released zip files.

Error 1: CobaltDB.lua | Resources/Server\CobaltEssentials\CobaltDB.lua:21: attempt to index a nil value (global 'MP') Error 2: CobaltEssentialsLoader.lua | ...urces/Server\CobaltEssentials\CobaltEssentialsLoader.lua:4: attempt to index a nil value (global 'MP')

20dka commented 7 months ago

Hey, this sounds like you're running a very outdated version of the BeamMP server. It should say what the version is at the top of the server log. In any case: get the latest version from beammp.com

haenzee commented 6 months ago

apparently Zap hosting was running v2.2.0, ill try and update it

lionkor commented 6 months ago

Hi, that's very well possible. ZAP hosting is not partnered with BeamMP, I very much urge you to check out different providers, who we can talk to and help if their servers are outdated:

Racing Game Servers: https://racinggameservers.com/games/beamng-drive/ Snakecraft Hosting: https://schost.us/beammp-plans Connect Hosting: https://connecthosting.net/beammp Assetto Hosting: https://assettohosting.com/en/games/beamng Horizon Hosting: https://hrzn.link/beammp