inferno-collection / Ladders-Reborn

OneSync Ladder script for FiveM
Other
16 stars 4 forks source link

Server Script will not initialize on Linux servers #6

Closed cm8263 closed 2 years ago

cm8263 commented 2 years ago

Reported here:

Repro Steps:

  1. Download fresh files from GitHub releases
  2. Install on Linux server
  3. Instance of script InfernoCollection.LaddersReborn.Server.Main is not initialized
cm8263 commented 2 years ago

Client files still work nil issues. Server resource technically starts, but InfernoCollection.LaddersReborn.Server.Main is not initialized.

Local9 commented 2 years ago

Currently on windows the files are working as intended, will boot up a vagrant/docker box and see if I can replicate. Do note that Linux support in FiveM is rather thin.

Nothing in here says that it shouldn't work, but I do wonder if Linux is not seeing the ServerScript? would be bloody weird if it is.

Edit: forgot to enable AMD-V, will visit this again in the morning (GMT+1)

Edit Edit: cannot sleep this is on my mind.

Vagrant box confirmed that I couldn't load the server file, but then I had issues with sync'd folders, leaving this for tomorrow.

CarlBishop commented 2 years ago

I have a linux server at your disposal if needed

cm8263 commented 2 years ago

I have a linux server at your disposal if needed

I have access to a linux env, and it sounds like Local9 does too, but thank you very much for the offer.


Nothing in here says that it shouldn't work, but I do wonder if Linux is not seeing the ServerScript? would be bloody weird if it is.

Blood weird is right... simply changing Main to inherit from BaseScript instead of ServerScript appears to have fixed the issue... ¯_(ツ)_/¯

I really appreciate you staying up late to look into this, thank you.

Fixed in https://github.com/inferno-collection/Ladders-Reborn/commit/bc8747eb68a8b0f96c260dc3ca510355c2653bb4