single mod not attempting to be loaded

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.
Post Reply
cdaringe
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Mar 17, 2018 3:42 am
Contact:

single mod not attempting to be loaded

Post by cdaringe »

Greetings all. I probably have a simple issue, but cannot seem to reason about it.

My factorio server loads many mods, just drops a couple of mods that I am interested without logging or any hint. I've even tried running the server in --verbose mode without success. Let's focus just on Krastorio2 for now, to make the logs a bit more concise:

Code: Select all

$ ls -al ./mount/mods/
total 246144
drwxrwxrwx 1 845 845       708 Oct 24 23:35  .
drwxrwxrwx 1 845 845       226 Oct 24 23:35  ..
... SNIP SNIP ...
-rwxrwxrwx 1 845 845  15046126 Oct 24 19:42  Krastorio2_1.3.23.zip
-rwxrwxrwx 1 845 845 233480239 Oct 24 20:14  Krastorio2Assets_1.2.1.zip

Cool. The zip has good integrity--I unzipped it elsewhere and it looks like a real beauty!

However, when the server boots, there's not even a mention of it. You can see many other mods being loaded:

Code: Select all

$ docker logs -f factorio_factorio_1
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ SAVE_NAME=kraster2a
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ wc -l
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ ./docker-update-mods.sh
You need to provide your Factorio username to update mods.
You need to provide your Factorio token to update mods.
++ id -u
+ [[ 0 = 0 ]]
+ usermod -o -u 845 factorio
usermod: no changes
+ groupmod -o -g 845 factorio
+ chown -R factorio:factorio /factorio
+ SU_EXEC='su-exec factorio'
+ sed -i '/write-data=/c\write-data=\/factorio/' /opt/factorio/config/config.ini
++ find -L /factorio/saves -iname '*.zip' -mindepth 1
++ wc -l
+ NRSAVES=1
+ [[ false != true ]]
+ [[ 1 == 0 ]]
+ [[ false == true ]]
+ FLAGS=(--port "$PORT" --server-settings "$CONFIG/server-settings.json" --server-banlist "$CONFIG/server-banlist.json" --rcon-port "$RCON_PORT" --server-whitelist "$CONFIG/server-whitelist.json" --use-server-whitelist --server-adminlist "$CONFIG/server-adminlist.json" --rcon-password "$(cat "$CONFIG/rconpw")" --server-id /factorio/config/server-id.json)
++ cat /factorio/config/rconpw
+ '[' -n '' ']'
+ '[' -n '' ']'
+ [[ true == true ]]
+ FLAGS+=(--start-server-load-latest)
+ exec su-exec factorio /opt/factorio/bin/x64/factorio --port 34197 --server-settings /factorio/config/server-settings.json --server-banlist /factorio/config/server-banlist.json --rcon-port 27015 --server-whitelist /factorio/config/server-whitelist.json --use-server-whitelist --server-adminlist /factorio/config/server-adminlist.json --rcon-password SNIP --server-id /factorio/config/server-id.json --start-server-load-latest --verbose
   0.000 2023-10-25 06:35:10; Factorio 1.1.91 (build 61680, linux64, headless)
   0.000 Operating system: Linux
   0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--port" "34197" "--server-settings" "/factorio/config/server-settings.json" "--server-banlist" "/factorio/config/server-banlist.json" "--rcon-port" "27015" "--server-whitelist" "/factorio/config/server-whitelist.json" "--use-server-whitelist" "--server-adminlist" "/factorio/config/server-adminlist.json" "--rcon-password" <private> "--server-id" "/factorio/config/server-id.json" "--start-server-load-latest" "--verbose" 
   0.000 Config path: /opt/factorio/config/config.ini
   0.000 Read data path: /opt/factorio/data
   0.000 Write data path: /factorio [702939/911178MB]
   0.000 Binaries path: /opt/factorio/bin
   0.091 System info: [CPU: Intel(R) Celeron(R) J4025 CPU @ 2.00GHz, 2 cores, RAM: 5776 MB]
   0.091 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.091 Running in headless mode
   0.365 Loading mod settings Flare Stack 2.2.10 (settings.lua)
   0.365 Loading mod settings Clockwork 1.1.1 (settings.lua)
   0.388 Loading mod settings nice-try-train 1.5.2 (settings.lua)
   0.388 Loading mod settings recursive-blueprints 1.2.6 (settings.lua)
   0.388 Loading mod settings sode-e-pop 0.0.7 (settings.lua)
   0.389 Loading mod settings Squeak Through 1.8.2 (settings.lua)
   0.391 Loading mod core 0.0.0 (data.lua)
   0.443 Loading mod base 1.1.91 (data.lua)
   0.792 Loading mod Flare Stack 2.2.10 (data.lua)
   0.831 Loading mod Clockwork 1.1.1 (data.lua)
   0.867 Loading mod QueueToFrontNG 0.18.3 (data.lua)
   0.898 Loading mod recursive-blueprints 1.2.6 (data.lua)
   0.941 Loading mod sode-e-pop 0.0.7 (data.lua)
   0.973 Loading mod Teleporters 1.0.5 (data.lua)
   1.014 Loading mod base 1.1.91 (data-updates.lua)
   1.046 Loading mod Flare Stack 2.2.10 (data-updates.lua)
   1.077 Loading mod recursive-blueprints 1.2.6 (data-updates.lua)
   1.109 Loading mod Squeak Through 1.8.2 (data-updates.lua)
   1.141 Loading mod Flare Stack 2.2.10 (data-final-fixes.lua)
   1.174 Loading mod Clockwork 1.1.1 (data-final-fixes.lua)
   1.324 Checksum for core: 2152183905
   1.324 Checksum of base: 410454729
   1.324 Checksum of Flare Stack: 445107092
   1.324 Checksum of Clockwork: 2368313409
   1.324 Checksum of Krastorio2Assets: 0
   1.324 Checksum of manual-trains-at-temp-stops: 0
   1.324 Checksum of nice-try-train: 1098180384
   1.324 Checksum of QueueToFrontNG: 3495727218
   1.324 Checksum of recursive-blueprints: 183109727
   1.324 Checksum of sode-e-pop: 1921207495
   1.324 Checksum of Squeak Through: 2759453103
   1.324 Checksum of Teleporters: 927024995
   1.633 Prototype list checksum: 809753276
   1.878 Verbose ModManager.cpp:608: Time to load mods: 1.78608
   2.071 Info PlayerData.cpp:78: Local player-data.json unavailable
   2.071 Info PlayerData.cpp:83: Cloud player-data.json unavailable
   2.129 Factorio initialised
   2.130 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   2.130 Info ServerMultiplayerManager.cpp:813: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   2.130 Info ServerMultiplayerManager.cpp:813: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   2.130 Loading map /factorio/saves/kraster2a.zip: 1414139 bytes.
   2.190 Loading level.dat: 1756643 bytes.
   2.205 Info Scenario.cpp:204: Map version 1.1.91-0
   2.301 Verbose Scenario.cpp:260: Loading level.dat finished: 0.095968 seconds.
   2.306 Verbose BlueprintLibrary.cpp:67: Loaded external blueprint storage: playerIndex=65535, nextRecordID=0, timestamp=0, records={}
   2.310 Verbose Map.cpp:1175: Time to re-chart all: 0.002053 seconds.
   2.311 Verbose Scenario.cpp:353: Entities setup finished: 0.009098 seconds.
   2.313 Loading script.dat: 34134 bytes.
   2.340 Checksum for script /factorio/temp/currently-playing/control.lua: 3702463597
   2.346 Checksum for script __Clockwork__/control.lua: 3944001906
   2.347 Checksum for script __manual-trains-at-temp-stops__/control.lua: 4128815457
   2.348 Checksum for script __nice-try-train__/control.lua: 2557341708
   2.349 Checksum for script __QueueToFrontNG__/control.lua: 2743028957
   2.362 Checksum for script __recursive-blueprints__/control.lua: 2202695179
   2.364 Checksum for script __sode-e-pop__/control.lua: 559831576
   2.368 Checksum for script __Teleporters__/control.lua: 460266356
   2.388 Verbose Scenario.cpp:403: Map setup finished: 0.257620 seconds.
   2.392 Info UDPSocket.cpp:33: Opening socket at (IP ADDR:({0.0.0.0:34197}))
   2.393 Hosting game at IP ADDR:({0.0.0.0:34197})
   2.393 Info ServerMultiplayerManager.cpp:813: updateTick(445) changing state from(CreatingGame) to(InGame)
   2.393 Info UDPSocket.cpp:45: Opening socket for broadcast
   2.393 Verbose RouterBase.cpp:67: Started router thread.
   2.393 Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing
   2.394 Info RemoteCommandProcessor.cpp:133: Starting RCON interface at IP ADDR:({0.0.0.0:27015})
   2.394 Info CommandLineMultiplayer.cpp:297: Maximum segment size = 100; minimum segment size = 25; maximum-segment-size peer count = 10; minimum-segment-size peer count = 20

I launch the factorio server using docker and bind mounts. This is probably not relevant information, other than to say I've tried loading "Krastorio 2" mod on 1.1.91.1 via

- factoriotools/factorio
- factorio-server-manager

with both images yielding the same result. I've also tried loading _only_ Krastorio 2 as the single mod. I've searched that mod's github for compatibility issues. I've checked permissions--they're consistent with other mods on disk.

So the mod looks to be of good integrity, well formed, correctly placed, in the same position of other mods being loaded.

I'm stumped! I also did search for similar issues, but I couldn't zero in on one with similar symptoms.

Thanks for your time.

Bilka
Factorio Staff
Factorio Staff
Posts: 3170
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: single mod not attempting to be loaded

Post by Bilka »

The game does not log anything when a mod is not loaded due to an incompatible mod being active. So, check whether that is the case (for example by loading the exact mod loadout in a normal game and checking in the mod management gui).

It's also possible that you did not enable the mod in the mod-list.json.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Pi-C
Smart Inserter
Smart Inserter
Posts: 1664
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: single mod not attempting to be loaded

Post by Pi-C »

Could that be because of a missing dependency? K2 depends on Krastorio 2 Assets >= 1.2.1 and Factorio Library >= 0.12.0, and neither of those is shown in your log file.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Post Reply

Return to “Technical Help”