Page 1 of 1

[2.0.20] "No logistic networks present" shortcut is inconsistent, incorrectly blocking access

Posted: Tue Nov 19, 2024 2:59 pm
by somethingtohide
Summary
The "logistic networks" shortcut around the map view, and similar shortcuts like "trains," seem to be based on whether they are relevant for the player's force, but they aren't updating when the player's force changes - only when the game state loads and when related events occur.

Sequence of events
  • The shortcut begins as locked for a new game
  • Swap to editor mode for cheating purposes
  • Place a roboport, which creates a logistic network for the player force
  • The game unlocks the shortcut
  • Save, then load the game
  • Note that the shortcut is still enabled
  • Create a new force and swap to it
  • Note that the shortcut is still enabled (Expectation 1 failed)
  • Save, then load the game
  • Note that the shortcut is now disabled (Save game at this point)
  • Swap to the original player force
  • Note that the shortcut is still disabled (Expectation 2 failed)
  • Save, then load the game
  • Note that the shortcut is now enabled
Expectations
  • Since this new force hasn't yet unlocked the icon, it should have reverted to the disabled state, but it did not. This is based on the fact that it will disable if the game is saved and reloaded at this point.
  • Since this original force force already unlocked the icon, it should have reverted to the enabled state, but it did not. This is based on the fact that it will enable if the game is saved and reloaded at this point.
Workarounds
Using the hotkey meets expectations, so access is appropriately allowed or denied depending on the current runtime state.

Log

Code: Select all

   0.000 2024-11-19 07:56:03; Factorio 2.0.20 (build 80511, linux64, full, space-age)
   0.009 Operating system: Linux (Arch rolling)
   0.009 Program arguments: "/home/cameron/src/factorio/factorio-space-age/bin/x64/factorio" "--instrument-mod" "debugadapter" "--enable-unsafe-lua-debug-api" "--check-unused-prototype-data" 
   0.009 Config path: /home/cameron/src/factorio/factorio-space-age/config/config.ini
   0.009 Read data path: /home/cameron/src/factorio/factorio-space-age/data
   0.009 Write data path: /home/cameron/src/factorio/factorio-space-age [325149/1031018MB]
   0.009 Binaries path: /home/cameron/src/factorio/factorio-space-age/bin
   0.021 System info: [CPU: 12th Gen Intel(R) Core(TM) i9-12900KF, 24 cores, RAM: 128684 MB]
   0.021 Environment: DISPLAY=:0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=i3 XDG_SESSION_DESKTOP=i3 XDG_CURRENT_DESKTOP=i3 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.052 Display options: [FullScreen: false] [VSync: true] [UIScale: manual-display-points (150.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
   0.102 Video driver: x11
   0.102 Available displays: 1
   0.102  [0]: LG HDR 4K 27" - {[0,0], 3840x2160, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.524 Initialised OpenGL:[0] NVIDIA GeForce RTX 4090/PCIe/SSE2; driver: 3.3.0 NVIDIA 560.35.03
   0.524   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes, ARB_pipeline_statistics_query:yes, ARB_gl_spirv:yes, ARB_ES2_compatibility:yes
   0.524   [Version] 3.3
   0.525 Graphics settings preset: very-high
   0.525   Dedicated video memory size 24564 MB
   0.566 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   0.567                   [Max threads (load/render): 32/24] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   0.635 [Audio] Driver:pulseaudio, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   0.862 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   0.862 Info ModManager.cpp:434: FeatureFlag freezing = true
   0.862 Info ModManager.cpp:434: FeatureFlag quality = true
   0.862 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   0.862 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   0.862 Info ModManager.cpp:434: FeatureFlag space-travel = true
   0.862 Info ModManager.cpp:434: FeatureFlag spoiling = true
   0.886 Loading mod settings debugadapter 2.0.0 (instrument-settings.lua)
   0.891 Loading mod settings debugadapter 2.0.0 (settings.lua)
   0.893 Loading mod core 0.0.0 (data.lua)
   0.917 Loading mod settings debugadapter 2.0.0 (instrument-data.lua)
   0.919 Loading mod base 2.0.20 (data.lua)
   1.006 Loading mod elevated-rails 2.0.20 (data.lua)
   1.017 Loading mod quality 2.0.20 (data.lua)
   1.021 Loading mod space-age 2.0.20 (data.lua)
   1.176 Loading mod base 2.0.20 (data-updates.lua)
   1.183 Loading mod quality 2.0.20 (data-updates.lua)
   1.196 Loading mod space-age 2.0.20 (data-updates.lua)
   1.305 Checksum for core: 2863993211
   1.305 Checksum of base: 3548713318
   1.305 Checksum of debugadapter: 1888325578
   1.305 Checksum of elevated-rails: 2929976872
   1.305 Checksum of quality: 3484764141
   1.305 Checksum of space-age: 1973748825
   1.516 Finished checking unused prototype data in 0.004833 seconds. Number of properties that were used: 634980
   1.560 Prototype list checksum: 3872509593
   1.598 Loading sounds...
   1.734 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1732028160
   1.734 Info PlayerData.cpp:73: Cloud player-data.json unavailable
   1.897 Initial atlas bitmap size is 16384
   1.910 Created an atlas bitmap (size 16384x16384) [none]
   1.924 Created an atlas bitmap (size 16384x16384) [none]
   1.945 Created an atlas bitmap (size 16384x16384) [none]
   1.945 Created an atlas bitmap (size 16384x15420) [none]
   1.945 Created an atlas bitmap (size 16384x8392) [decal]
   1.949 Created an atlas bitmap (size 16384x16384) [low-object]
   1.949 Created an atlas bitmap (size 4096x1088) [low-object]
   1.949 Created an atlas bitmap (size 16384x13456) [corpse-decay]
   1.949 Created an atlas bitmap (size 16384x5596) [none]
   1.949 Created an atlas bitmap (size 1676x79) [not-compressed]
   1.949 Created an atlas bitmap (size 8192x6096) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.955 Created an atlas bitmap (size 16384x16320) [terrain, mipmap, linear-minification, linear-mip-level]
   1.955 Created an atlas bitmap (size 16384x4832) [terrain, mipmap, linear-minification, linear-mip-level]
   1.955 Created an atlas bitmap (size 8192x3872) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   1.955 Created an atlas bitmap (size 4096x3088) [smoke, mipmap, linear-minification, linear-magnification]
   1.956 Created an atlas bitmap (size 8192x2576) [mipmap]
   1.956 Created an atlas bitmap (size 2048x1520) [mipmap]
   1.956 Created an atlas bitmap (size 4096x3152) [mipmap]
   1.956 Created an atlas bitmap (size 4096x3152) [mipmap]
   1.956 Created an atlas bitmap (size 4096x3152) [mipmap]
   1.956 Created an atlas bitmap (size 8192x3808) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.957 Created an atlas bitmap (size 16384x6120) [alpha-mask]
   1.975 Created an atlas bitmap (size 16384x16380) [shadow, linear-magnification, alpha-mask]
   1.980 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
   1.980 Created an atlas bitmap (size 16384x8356) [shadow, linear-magnification, alpha-mask]
   1.980 Created an atlas bitmap (size 8192x2352) [shadow, mipmap, linear-magnification, alpha-mask]
   1.980 Created an atlas bitmap (size 2048x496) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   1.980 Loading 3D bitmaps.
   1.985 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   2.011 Parallel sprite loader initialized (threads: 23, bitmaps: 8228)
  10.809 Sprites loaded
  10.841 Generated mipmaps (4) for atlas [5] of size 16384x16384   
  10.846 Generated mipmaps (4) for atlas [6] of size 4096x1088   
  10.850 Generated mipmaps (3) for atlas [10] of size 8192x6096   
  10.906 Generated mipmaps (3) for atlas [11] of size 16384x16320   
  10.922 Generated mipmaps (3) for atlas [12] of size 16384x4832   
  10.928 Generated mipmaps (3) for atlas [13] of size 8192x3872   
  10.932 Generated mipmaps (3) for atlas [14] of size 4096x3088   
  10.953 Generated mipmaps (3) for atlas [15] of size 8192x2576   
  10.958 Generated mipmaps (3) for atlas [16] of size 2048x1520   
  10.962 Generated mipmaps (3) for atlas [17] of size 4096x3152   
  10.974 Generated mipmaps (3) for atlas [18] of size 4096x3152   
  10.977 Generated mipmaps (3) for atlas [19] of size 4096x3152   
  11.015 Generated mipmaps (5) for atlas [20] of size 8192x3808   
  11.023 Generated mipmaps (3) for atlas [25] of size 8192x2352   
  11.030 Custom mipmaps uploaded (3203)
  11.046 Video memory usage: 3557.22 MB (Atlases: 3426.92 MB, Textures: 130.30 MB)
  11.136 Factorio initialised
  11.138 Info HttpSharedState.cpp:55: Downloading https://updater.factorio.com/updater/get-available-versions?username=somethingtohide&token=<private>&apiVersion=2
  11.377 0 packages available to download (experimental updates disabled).
  16.192 Loading map /home/cameron/src/factorio/factorio-space-age/saves/bug-shortcut-inconsistency.zip: 2315424 bytes.
  16.231 Loading level.dat: 1168096 bytes.
  16.254 Info Scenario.cpp:178: Map version 2.0.20-3
  16.280 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
  16.281 Loading script.dat: 1252 bytes.
  16.291 Checksum for script __level__/control.lua: 1148665341
  16.302 Checksum for script __debugadapter__/control.lua: 3938038067