[2.0.20] Events not emitted for some pasting over entity cases
Posted: Tue Nov 19, 2024 3:52 pm
Summary
Pasting similar entities over each other emits less events than expected, allowing some new entities to go unnoticed by mods.
What did you do?
See the attached image for a more detailed log
Pasting similar entities over each other emits less events than expected, allowing some new entities to go unnoticed by mods.
What did you do?
- Installed 0-event-trace and opened the event log
- Placed one assembler, selected a recipe, and added some modules
- Placed another assembler, but only selected a recipe
- Copied the first assembler with modules
- Pasted directly on top of the second assembler without modules. The attached save is setup for you to perform this step and see the results.
See the attached image for a more detailed log
- One pre-build event
- An additional on-built-entity event for the new item-request-proxy entity representing the desired changes in modules
Code: Select all
0.000 2024-11-19 08:48:01; Factorio 2.0.20 (build 80511, linux64, full, space-age)
0.016 Operating system: Linux (Arch rolling)
0.016 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.016 Config path: /home/cameron/src/factorio/factorio-space-age/config/config.ini
0.016 Read data path: /home/cameron/src/factorio/factorio-space-age/data
0.016 Write data path: /home/cameron/src/factorio/factorio-space-age [325133/1031018MB]
0.016 Binaries path: /home/cameron/src/factorio/factorio-space-age/bin
0.036 System info: [CPU: 12th Gen Intel(R) Core(TM) i9-12900KF, 24 cores, RAM: 128684 MB]
0.036 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.061 Display options: [FullScreen: false] [VSync: true] [UIScale: manual-display-points (150.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
0.099 Video driver: x11
0.099 Available displays: 1
0.099 [0]: LG HDR 4K 27" - {[0,0], 3840x2160, SDL_PIXELFORMAT_RGB888, 60Hz}
0.555 Initialised OpenGL:[0] NVIDIA GeForce RTX 4090/PCIe/SSE2; driver: 3.3.0 NVIDIA 560.35.03
0.555 [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.555 [Version] 3.3
0.556 Graphics settings preset: very-high
0.556 Dedicated video memory size 24564 MB
0.602 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
0.602 [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.672 [Audio] Driver:pulseaudio, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
0.825 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
0.825 Info ModManager.cpp:434: FeatureFlag freezing = true
0.825 Info ModManager.cpp:434: FeatureFlag quality = true
0.825 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
0.825 Info ModManager.cpp:434: FeatureFlag segmented-units = true
0.825 Info ModManager.cpp:434: FeatureFlag space-travel = true
0.825 Info ModManager.cpp:434: FeatureFlag spoiling = true
0.836 Loading mod settings debugadapter 2.0.0 (instrument-settings.lua)
0.842 Loading mod settings debugadapter 2.0.0 (settings.lua)
0.844 Loading mod core 0.0.0 (data.lua)
0.859 Loading mod settings debugadapter 2.0.0 (instrument-data.lua)
0.861 Loading mod 0-event-trace 0.3.2 (data.lua)
0.866 Loading mod base 2.0.20 (data.lua)
0.962 Loading mod elevated-rails 2.0.20 (data.lua)
0.973 Loading mod quality 2.0.20 (data.lua)
0.978 Loading mod space-age 2.0.20 (data.lua)
1.104 Loading mod base 2.0.20 (data-updates.lua)
1.111 Loading mod quality 2.0.20 (data-updates.lua)
1.121 Loading mod space-age 2.0.20 (data-updates.lua)
1.173 Checksum for core: 2863993211
1.173 Checksum of 0-event-trace: 74844428
1.173 Checksum of base: 3548713318
1.173 Checksum of debugadapter: 1888325578
1.173 Checksum of elevated-rails: 2929976872
1.173 Checksum of quality: 3484764141
1.173 Checksum of space-age: 1973748825
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.hflow_0-event-trace.vertical_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.vflow_0-event-trace.horizontal_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.frame_0-event-trace.horizontal_flow_style.vertical_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.frame_0-event-trace.vertical_flow_style.horizontal_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.frame_0-event-trace.vertical_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.frame_0-event-trace.horizontal_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.tabbed_pane_frame_0-event-trace.vertical_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.tabbed_pane_frame_0-event-trace.horizontal_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.inside-wrap_0-event-trace.horizontal_flow_style.vertical_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.inside-wrap_0-event-trace.vertical_flow_style.horizontal_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.inside-wrap_0-event-trace.vertical_spacing was not used.
1.472 Warning PrototypeLoader.cpp:199: Value ROOT.gui-style.default.inside-wrap_0-event-trace.horizontal_spacing was not used.
1.476 Finished checking unused prototype data in 0.005037 seconds. Number of properties that were used: 635668
1.521 Prototype list checksum: 2146120945
1.559 Loading sounds...
1.697 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1732031278
1.697 Info PlayerData.cpp:73: Cloud player-data.json unavailable
1.860 Initial atlas bitmap size is 16384
1.873 Created an atlas bitmap (size 16384x16384) [none]
1.897 Created an atlas bitmap (size 16384x16384) [none]
1.926 Created an atlas bitmap (size 16384x16384) [none]
1.927 Created an atlas bitmap (size 16384x15420) [none]
1.927 Created an atlas bitmap (size 16384x8392) [decal]
1.930 Created an atlas bitmap (size 16384x16384) [low-object]
1.930 Created an atlas bitmap (size 4096x1088) [low-object]
1.931 Created an atlas bitmap (size 16384x13456) [corpse-decay]
1.931 Created an atlas bitmap (size 16384x5596) [none]
1.931 Created an atlas bitmap (size 1676x79) [not-compressed]
1.931 Created an atlas bitmap (size 8192x6096) [mipmap, linear-minification, linear-magnification, linear-mip-level]
1.937 Created an atlas bitmap (size 16384x16320) [terrain, mipmap, linear-minification, linear-mip-level]
1.937 Created an atlas bitmap (size 16384x4832) [terrain, mipmap, linear-minification, linear-mip-level]
1.937 Created an atlas bitmap (size 8192x3872) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
1.937 Created an atlas bitmap (size 4096x3088) [smoke, mipmap, linear-minification, linear-magnification]
1.937 Created an atlas bitmap (size 8192x2576) [mipmap]
1.937 Created an atlas bitmap (size 2048x1520) [mipmap]
1.937 Created an atlas bitmap (size 4096x3152) [mipmap]
1.937 Created an atlas bitmap (size 4096x3152) [mipmap]
1.937 Created an atlas bitmap (size 4096x3152) [mipmap]
1.937 Created an atlas bitmap (size 8192x3808) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
1.938 Created an atlas bitmap (size 16384x6120) [alpha-mask]
1.956 Created an atlas bitmap (size 16384x16380) [shadow, linear-magnification, alpha-mask]
1.961 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
1.961 Created an atlas bitmap (size 16384x8356) [shadow, linear-magnification, alpha-mask]
1.961 Created an atlas bitmap (size 8192x2352) [shadow, mipmap, linear-magnification, alpha-mask]
1.961 Created an atlas bitmap (size 2048x496) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
1.961 Loading 3D bitmaps.
1.966 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
1.990 Parallel sprite loader initialized (threads: 23, bitmaps: 8228)
11.084 Sprites loaded
11.107 Generated mipmaps (4) for atlas [5] of size 16384x16384
11.108 Generated mipmaps (4) for atlas [6] of size 4096x1088
11.111 Generated mipmaps (3) for atlas [10] of size 8192x6096
11.128 Generated mipmaps (3) for atlas [11] of size 16384x16320
11.133 Generated mipmaps (3) for atlas [12] of size 16384x4832
11.135 Generated mipmaps (3) for atlas [13] of size 8192x3872
11.137 Generated mipmaps (3) for atlas [14] of size 4096x3088
11.153 Generated mipmaps (3) for atlas [15] of size 8192x2576
11.156 Generated mipmaps (3) for atlas [16] of size 2048x1520
11.158 Generated mipmaps (3) for atlas [17] of size 4096x3152
11.166 Generated mipmaps (3) for atlas [18] of size 4096x3152
11.167 Generated mipmaps (3) for atlas [19] of size 4096x3152
11.183 Generated mipmaps (5) for atlas [20] of size 8192x3808
11.185 Generated mipmaps (3) for atlas [25] of size 8192x2352
11.192 Custom mipmaps uploaded (3203)
11.211 Video memory usage: 3557.22 MB (Atlases: 3426.92 MB, Textures: 130.30 MB)
11.213 Custom inputs active: 2
11.269 Factorio initialised
11.271 Info HttpSharedState.cpp:55: Downloading https://updater.factorio.com/updater/get-available-versions?username=somethingtohide&token=<private>&apiVersion=2
11.520 0 packages available to download (experimental updates disabled).
15.123 Loading map /home/cameron/src/factorio/factorio-space-age/saves/bug-paste-missing-events.zip: 2458405 bytes.
15.130 Loading level.dat: 1513389 bytes.
15.134 Info Scenario.cpp:178: Map version 2.0.20-3
15.146 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
15.146 Loading script.dat: 13539 bytes.
15.156 Checksum for script __level__/control.lua: 1148665341
15.288 Checksum for script __0-event-trace__/control.lua: 1601549190
15.294 Checksum for script __debugadapter__/control.lua: 3938038067