[2.0.8] FIXED - Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
8BitWit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Oct 21, 2024 7:53 pm
Contact:

[2.0.8] FIXED - Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by 8BitWit »

Just started a new dedicated server and unable to play with expansion mods. Ubuntu 22.04 Headless Server

My steam client is updated to 2.0.8 Experimental and I created a new world.
From there, I copied the save file over to my server and started the server pointing to the save file.
The service ran just fine, but upon connection to the server, I had to sync my mods and "elevated-rails", "quality" , and "space-age" were set to false.

I checked my mod-list.json on my server and sure enough, these three had been set to false.

I attempted to set to true and restart, but it refuses to stay true

Code: Select all

{
  "mods":
  [

    {
      "name": "base",
      "enabled": true
    },

    {
      "name": "elevated-rails",
      "enabled": false
    },

    {
      "name": "quality",
      "enabled": false
    },

    {
      "name": "space-age",
      "enabled": false
    }
  ]
}
From here, I attempted to have the game create a new save for me with the mods set to true.
However, when I try, I get this error.

Code: Select all

   0.000 2024-10-21 17:02:45; Factorio 2.0.8 (build 79416, linux64, headless)
   0.015 Operating system: Linux (Ubuntu 22.04)
   0.015 Program arguments: "/home/bobthefish/factorio/bin/x64/factorio" "--create" "/home/bobthefish/factorio/saves/Stroads.zip"
   0.015 Config path: /home/bobthefish/factorio/config/config.ini
   0.015 Read data path: /home/bobthefish/factorio/data
   0.015 Write data path: /home/bobthefish/factorio [18053/100220MB]
   0.015 Binaries path: /home/bobthefish/factorio/bin
   0.023 System info: [CPU: AMD Ryzen 9 7900X 12-Core Processor, 24 cores, RAM: 63425 MB]
   0.023 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.023 Running in headless mode
   0.023 Audio is disabled
   0.037 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   0.037 Info ModManager.cpp:434: FeatureFlag freezing = true
   0.037 Info ModManager.cpp:434: FeatureFlag quality = true
   0.037 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   0.037 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   0.037 Info ModManager.cpp:434: FeatureFlag space-travel = true
   0.037 Info ModManager.cpp:434: FeatureFlag spoiling = true
   0.039 Loading mod core 0.0.0 (data.lua)
   0.045 Loading mod base 2.0.8 (data.lua)
   0.109 Loading mod elevated-rails 2.0.8 (data.lua)
   0.123 Error Util.cpp:81: Failed to load mod "elevated-rails": __elevated-rails__/prototypes/entity/elevated-rails.lua:389: module __elevated-rails__/graphics/entity/elevated-rail-chain-signal/rail-chain-signal-elevated not found;  no such file __elevated-rails__/graphics/entity/elevated-rail-chain-signal/rail-chain-signal-elevated.lua
stack traceback:
        [C]: in function 'require'
        __elevated-rails__/prototypes/entity/elevated-rails.lua:389: in main chunk
        [C]: in function 'require'
        __elevated-rails__/data.lua:4: in main chunk
I have searched for the better part of 2 hours finding a solution to this.
Is it possible to play with space age dlc on a dedicated server yet?

PS. I tried this whole process with 2.0.7 and 2.0.8 packages straight from https://www.factorio.com/download
Last edited by 8BitWit on Tue Oct 22, 2024 6:35 pm, edited 1 time in total.
Cooba
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Oct 22, 2024 9:52 am
Contact:

Re: [2.0.8] Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by Cooba »

Hello,

I had exactly same issue. Solved it once I noticed that once you try to unpack the server, in folder: factorio/data/elevated-rails/graphics/entity/elevated-rail-chain-signal all the files have cut names.
I think this was issue with utar in mc (midnight commander). Probably reached limit of file name length internally

I extracted it other way (this time on separate computer and coppied all the files) and this folder extracted correctly and everything is running fine now.
terrybougard
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Jan 16, 2019 6:28 pm
Contact:

Re: [2.0.8] Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by terrybougard »

How did you fix it? I have the same problem.

Do you have a photo of the said files that have shortened names?


I see this... Are the names shortened?
10-22-2024, 22-36-47.png
10-22-2024, 22-36-47.png (3.7 KiB) Viewed 815 times
8BitWit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Oct 21, 2024 7:53 pm
Contact:

Re: [2.0.8] Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by 8BitWit »

So I was just an idiot, but I think many people made the same mistake as I.

I downloaded the wrong package from the get go and spent all day trying to use the
Factorio 2.0.8 https://www.factorio.com/get-download/2 ... ss/linux64 instead of the
Space Age Expansion 2.0.8 https://www.factorio.com/get-download/2 ... on/linux64

This fixed MY mods issue.

In order to fix your issue, assuming you want just the base Factorio 2.0.8, @terrybougard, you need to disable the mods.

Create a mod-list.json file and place it in a new directory called "mods"
/factorio/mods/mod-list.json

Then make sure you have this json in there.

Code: Select all

{
  "mods":
  [

    {
      "name": "base",
      "enabled": true
    },

    {
      "name": "elevated-rails",
      "enabled": false
    },

    {
      "name": "quality",
      "enabled": false
    },

    {
      "name": "space-age",
      "enabled": false
    }
  ]
}
This will stop the game from trying to load the mod resources it has no access to.

Why they include the mods without the resources in the base game package is beyond me.
8BitWit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Oct 21, 2024 7:53 pm
Contact:

Re: [2.0.8] Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by 8BitWit »

Cooba wrote: Tue Oct 22, 2024 9:57 am Hello,

I had exactly same issue. Solved it once I noticed that once you try to unpack the server, in folder: factorio/data/elevated-rails/graphics/entity/elevated-rail-chain-signal all the files have cut names.
I think this was issue with utar in mc (midnight commander). Probably reached limit of file name length internally

I extracted it other way (this time on separate computer and coppied all the files) and this folder extracted correctly and everything is running fine now.
I hadn't tried this. But if it works, it works!
Romain
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Oct 22, 2024 9:05 pm
Contact:

Re: [2.0.8] FIXED - Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by Romain »

Hey,

We had a similar issue using Steam Game and a serverless on a docker Syno.
When we changed the json file with false, false.... and run the docker, for some reason, it turned them true again.

So when we run the game and connect to the server, we end up again with the same issue.
Any idea here?

Thx a lot
Cooba
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Oct 22, 2024 9:52 am
Contact:

Re: [2.0.8] Mods broken Headless Linux64 - Failed to load mod "elevated-rails"

Post by Cooba »

terrybougard wrote: Tue Oct 22, 2024 2:38 pm How did you fix it? I have the same problem.

Do you have a photo of the said files that have shortened names?


I see this... Are the names shortened?
10-22-2024, 22-36-47.png
It can be fixed by extracting it not with MC but with tar -xvf ./factorio_headless_2.0.8.tar.xz which works fine for me

File names in the factorio/data/elevated-rails/graphics/entity/elevated-rail-chain-signal folder:

Code: Select all

elevated-rail-chain-signal-lights.lua
elevated-rail-chain-signal-metals-upper.lua
elevated-rail-chain-signal-metals.lua
elevated-rail-chain-signal-shadow.lua
elevated-rail-chain-signal.lua
rail-chain-signal-elevated.lua
Post Reply

Return to “Technical Help”