Multiple Unit Train Control


Replaces bidirectional trains with ones twice as powerful, to simulate real locomotives driving backwards.

Tweaks
4 days ago
0.17 - 2.0
4.06K
Trains

g [Edit] Multiple Unit Train Control fails to load

3 years ago

I got the following error when attempting to load the mod.

0.748 Mods to disable:Failed to load mods: core/lualib/dataloader.lua:13: Invalid prototype array {}
stack traceback:
[C]: in function 'error'
core/lualib/dataloader.lua:13: in function 'extend'
MultipleUnitTrainControl/settings-updates.lua:38: in main chunk

Mods to be disabled:
• MultipleUnitTrainControl (0.4.10)

3 years ago

This is probably a function of the other mods you have installed, since MUTC searches for locomotives to modify. Can you post the factorio log file produced when this happens?

3 years ago

This is the log of the failure:

0.000 2021-09-20 10:19:36; Factorio 1.1.39 (build 58937, linux64, full)
0.016 Operating system: Linux (Fedora 34)
0.016 Program arguments: "./factorio"
0.016 Read data path: /games/factorio/1.0.0/factorio/data
0.016 Write data path: /games/factorio/1.0.0/factorio [419777/468427MB]
0.016 Binaries path: /games/factorio/1.0.0/factorio/bin
0.020 System info: [CPU: AMD Ryzen 7 2700X Eight-Core Processor, 16 cores, RAM: 32020 MB]
0.020 Environment: DISPLAY=:0.0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=xfce XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=XFCE GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.020 Display options: [FullScreen: 0] [VSync: 0] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
0.274 Available displays: 1
0.274 [0]: U2777B 27" - {[0,0], 3840x2160, SDL_PIXELFORMAT_RGB888, 60Hz}
0.389 Initialised OpenGL:[0] NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2; driver: 3.3.0 NVIDIA 470.63.01
0.389 [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
0.389 [Version] 3.3
0.389 Graphics settings preset: very-high
0.389 Dedicated video memory size 8192 MB
0.417 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit]
0.417 [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
0.422 [Audio] Backend:default; Depth:16, Channel:2, Frequency:44100; MixerQuality:linear
0.519 Loading mod settings FARL 4.1.2 (settings.lua)
0.519 Loading mod settings railloader 1.1.4 (settings.lua)
0.519 Loading mod settings AutoDeconstruct 0.2.1 (settings.lua)
0.519 Loading mod settings bobinserters 1.1.0 (settings.lua)
0.519 Loading mod settings flib 0.8.3 (settings.lua)
0.519 Loading mod settings Mining_Drones 1.1.10 (settings.lua)
0.519 Loading mod settings nicefill 0.1.19 (settings.lua)
0.519 Loading mod settings SantasNixieTubeDisplay 0.1.12 (settings.lua)
0.520 Loading mod settings Squeak Through 1.8.2 (settings.lua)
0.520 Loading mod settings VehicleSnap 1.18.4 (settings.lua)
0.520 Loading mod settings CompressedFluids 0.1.23 (settings.lua)
0.520 Loading mod settings miniloader 1.14.6 (settings.lua)
0.520 Loading mod settings MultipleUnitTrainControl 0.4.10 (settings.lua)
0.520 Loading mod settings Nanobots 3.2.15 (settings.lua)
0.520 Loading mod settings reverse-factory 8.1.1 (settings.lua)
0.520 Loading mod settings StatsGui 1.3.0 (settings.lua)
0.521 Loading mod settings trainConstructionSite 0.2.16 (settings.lua)
0.521 Loading mod settings MultipleUnitTrainControl 0.4.10 (settings-updates.lua)
0.522 Error ModManager.cpp:1577: Failed to load mod "MultipleUnitTrainControl": __core
/lualib/dataloader.lua:13: Invalid prototype array {}
stack traceback:
[C]: in function 'error'
core/lualib/dataloader.lua:13: in function 'extend'
MultipleUnitTrainControl/settings-updates.lua:38: in main chunk
0.523 Loading mod core 0.0.0 (data.lua)
0.592 Checksum for core: 2513062293
0.641 Error ModManager.cpp:1577: Error in assignID: recipe-category with name 'crafting' does not exist.

Source: default (utility-sprites).
0.682 Initial atlas bitmap size is 16384
0.683 Created atlas bitmap 2048x640 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
0.689 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
0.693 Parallel Sprite Loader initialized (threads: 15)
0.716 Sprites loaded
0.720 Generated mipmaps (5) for atlas [0] of size 2048x640
0.721 Custom mipmaps uploaded.
0.724 Factorio initialised
0.729 Mods to disable:Failed to load mods: core/lualib/dataloader.lua:13: Invalid prototype array {}
stack traceback:
[C]: in function 'error'
core/lualib/dataloader.lua:13: in function 'extend'
MultipleUnitTrainControl/settings-updates.lua:38: in main chunk

3 years ago

This is the list of the mods loaded, after removing the MultipleUnitTrainControl:

0.548 Loading mod settings FARL 4.1.2 (settings.lua)
0.548 Loading mod settings railloader 1.1.4 (settings.lua)
0.548 Loading mod settings AutoDeconstruct 0.2.1 (settings.lua)
0.548 Loading mod settings bobinserters 1.1.0 (settings.lua)
0.548 Loading mod settings flib 0.8.3 (settings.lua)
0.548 Loading mod settings Mining_Drones 1.1.10 (settings.lua)
0.548 Loading mod settings nicefill 0.1.19 (settings.lua)
0.549 Loading mod settings SantasNixieTubeDisplay 0.1.12 (settings.lua)
0.549 Loading mod settings Squeak Through 1.8.2 (settings.lua)
0.549 Loading mod settings VehicleSnap 1.18.4 (settings.lua)
0.549 Loading mod settings CompressedFluids 0.1.23 (settings.lua)
0.549 Loading mod settings miniloader 1.14.6 (settings.lua)
0.549 Loading mod settings Nanobots 3.2.15 (settings.lua)
0.550 Loading mod settings reverse-factory 8.1.1 (settings.lua)
0.550 Loading mod settings StatsGui 1.3.0 (settings.lua)
0.550 Loading mod settings trainConstructionSite 0.2.16 (settings.lua)
0.552 Loading mod core 0.0.0 (data.lua)
0.616 Loading mod base 1.1.39 (data.lua)
0.862 Loading mod EvoGUI 0.4.601 (data.lua)
0.974 Loading mod FARL 4.1.2 (data.lua)
1.100 Loading mod railloader 1.1.4 (data.lua)
1.209 Loading mod AfraidOfTheDark 1.1.1 (data.lua)
1.359 Loading mod bobinserters 1.1.0 (data.lua)
1.473 Loading mod Electronic_Locomotives 1.0.5 (data.lua)
1.590 Loading mod Explosive Termites 1.1.14 (data.lua)
1.705 Loading mod flib 0.8.3 (data.lua)
1.826 Loading mod FNEI 0.4.1 (data.lua)
1.951 Loading mod Mining_Drones 1.1.10 (data.lua)
2.081 Loading mod nicefill 0.1.19 (data.lua)
2.221 Loading mod power-grid-comb 1.1.0 (data.lua)
2.381 Loading mod PumpAnywhere 0.1.10 (data.lua)
2.546 Loading mod pushbutton 1.1.0 (data.lua)
2.715 Loading mod SantasNixieTubeDisplay 0.1.12 (data.lua)
2.890 Loading mod skan-fusion-robots 1.5.2 (data.lua)
3.062 Loading mod Space_Pack_200 0.1.2 (data.lua)
3.232 Loading mod Teleporters 1.0.5 (data.lua)
3.404 Loading mod VehicleSnap 1.18.4 (data.lua)
3.573 Loading mod CompressedFluids 0.1.23 (data.lua)
3.733 Loading mod miniloader 1.14.6 (data.lua)
3.870 Loading mod Nanobots 3.2.15 (data.lua)
4.013 Loading mod reverse-factory 8.1.1 (data.lua)
4.151 Loading mod StatsGui 1.3.0 (data.lua)
4.277 Loading mod trainConstructionSite 0.2.16 (data.lua)
4.437 Loading mod base 1.1.39 (data-updates.lua)
4.567 Loading mod FARL 4.1.2 (data-updates.lua)
4.694 Loading mod AfraidOfTheDark 1.1.1 (data-updates.lua)
4.824 Loading mod bobinserters 1.1.0 (data-updates.lua)
4.963 Loading mod Electronic_Locomotives 1.0.5 (data-updates.lua)
5.139 Loading mod Squeak Through 1.8.2 (data-updates.lua)
5.317 Loading mod CompressedFluids 0.1.23 (data-updates.lua)
5.496 Loading mod miniloader 1.14.6 (data-updates.lua)
5.676 Loading mod Nanobots 3.2.15 (data-updates.lua)
5.863 Loading mod reverse-factory 8.1.1 (data-updates.lua)
6.052 Loading mod trainConstructionSite 0.2.16 (data-updates.lua)
6.245 Loading mod FARL 4.1.2 (data-final-fixes.lua)
6.424 Loading mod AfraidOfTheDark 1.1.1 (data-final-fixes.lua)
6.604 Loading mod copy-recipe-to-chest 0.0.1 (data-final-fixes.lua)
6.787 Loading mod FasterTrainLimits 0.0.1 (data-final-fixes.lua)
6.922 Loading mod Mining_Drones 1.1.10 (data-final-fixes.lua)
7.381 Loading mod CompressedFluids 0.1.23 (data-final-fixes.lua)
7.541 Loading mod reverse-factory 8.1.1 (data-final-fixes.lua)
7.724 Loading mod trainConstructionSite 0.2.16 (data-final-fixes.lua)

3 years ago
(updated 3 years ago)

Thank you !

I think I know what is wrong. I bet it will work if you install "Electronic Factorio Extended Locomotives" in addition to MUTC. When I added compatibility with More Electronic... I didn't test it with just the basic Electronic installed.

I'll take a look at fixing it tonight.

3 years ago

Fixed in MUTC version 0.4.11. Thanks for reporting the bug!

3 years ago

No, thank you for shuch a quick response!

New response