It might seem like a very niche thing and it kind of is but I actually encountered this bug by making a mod and it was what I was trying to do. Anyway I think it should at least throw an error even if the case isn't supported, instead of going into an infinite loop.
This is the whole data.lua code
Code: Select all
local function create_fuel(name)
---@type data.ItemPrototype
local item = {
type = "item",
name = name,
icon = "__base__/graphics/icons/solid-fuel.png",
icon_size = 64,
stack_size = 50,
fuel_value = "10MJ",
fuel_category = "chemical",
}
data:extend{item}
return item
end
local function create_fuel_recipe(ingredient, product)
---@type data.RecipePrototype
local recipe = {
type = "recipe",
name = product.name,
ingredients = {
{ name = ingredient.name, amount = 1},
},
--Tried this to see if it would solve the problem but it didn't
allow_as_intermediate = false,
allow_decomposition = false,
result = product.name,
}
data:extend{recipe}
return recipe
end
local fuel_a = create_fuel("fuel-a")
local fuel_b = create_fuel("fuel-b")
create_fuel_recipe(fuel_a, fuel_b)
create_fuel_recipe(fuel_b, fuel_a)
fuel_a.burnt_result = fuel_b.name
fuel_b.burnt_result = fuel_a.name
Code: Select all
0.000 2024-04-22 13:06:22; Factorio 1.1.107 (build 62234, linux64, steam)
0.058 Operating system: Linux (Linuxmint 21.3)
0.000 Initializing Steam API.
0.058 Program arguments: "/home/hokome/.steam/debian-installation/steamapps/common/Factorio/bin/x64/factorio"
0.058 Config path: /home/hokome/.factorio/config/config.ini
0.058 Read data path: /home/hokome/.steam/debian-installation/steamapps/common/Factorio/data
0.058 Write data path: /home/hokome/.factorio [328088/479118MB]
0.058 Binaries path: /home/hokome/.steam/debian-installation/steamapps/common/Factorio/bin
0.062 System info: [CPU: AMD Ryzen 5 5600H with Radeon Graphics, 12 cores, RAM: 15318 MB]
0.062 Environment: DISPLAY=:0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=cinnamon XDG_SESSION_DESKTOP=cinnamon XDG_CURRENT_DESKTOP=X-Cinnamon __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.062 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
0.067 Video driver: x11
0.067 Available displays: 2
0.067 [0]: VG27A 27" - {[0,0], 2560x1440, SDL_PIXELFORMAT_RGB888, 144Hz}
0.067 [1]: 1 - {[2560,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
0.169 Initialised OpenGL:[0] RENOIR (renoir, LLVM 15.0.7, DRM 3.42, 5.15.0-105-generic); driver: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
0.169 [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
0.169 [Version] 4.6
0.169 Graphics settings preset: medium-with-low-vram
0.169 Dedicated video memory size 512 MB
0.184 Graphics options: [Graphics quality: normal] [Video memory usage: high] [DXT: low-quality] [Color: 32bit]
0.184 [Max threads (load/render): 32/8] [Max texture size: 4096] [Tex.Stream.: 1] [Rotation quality: low] [Other: stDCwt] [B:0,C:0,S:100]
0.506 [Audio] Backend:SDL(default); Driver:pulseaudio, Device:Default device, Depth:16, Channels:2, Frequency:44100
0.766 Loading mod settings EditorExtensions 2.2.4 (settings.lua)
0.767 Loading mod core 0.0.0 (data.lua)
0.793 Loading mod base 1.1.107 (data.lua)
0.902 Loading mod chromatic 0.0.1 (data.lua)
0.910 Loading mod flib 0.14.0 (data.lua)
0.917 Loading mod EditorExtensions 2.2.4 (data.lua)
0.937 Loading mod base 1.1.107 (data-updates.lua)
0.949 Loading mod EditorExtensions 2.2.4 (data-final-fixes.lua)
1.017 Checksum for core: 607699937
1.017 Checksum of base: 1054619811
1.017 Checksum of chromatic: 386015871
1.017 Checksum of flib: 1790189614
1.017 Checksum of EditorExtensions: 3840276693
1.174 Prototype list checksum: 2553426155
1.214 Loading sounds...
1.267 Info PlayerData.cpp:78: Local player-data.json unavailable
1.267 Info PlayerData.cpp:81: Cloud player-data.json available, timestamp 1713782332
1.373 Initial atlas bitmap size is 4096
1.380 Created atlas bitmap 4096x4096 [none]
1.384 Created atlas bitmap 4096x4092 [none]
1.386 Created atlas bitmap 4096x4084 [linear-minification, linear-magnification]
1.388 Created atlas bitmap 4096x4088 [none]
1.391 Created atlas bitmap 4096x4096 [none]
1.394 Created atlas bitmap 4096x4096 [none]
1.394 Created atlas bitmap 4096x508 [none]
1.394 Created atlas bitmap 4096x2120 [decal]
1.398 Created atlas bitmap 4096x4016 [low-object]
1.398 Created atlas bitmap 4096x1792 [low-object]
1.398 Created atlas bitmap 4096x2464 [mipmap, linear-minification, linear-magnification, linear-mip-level]
1.398 Created atlas bitmap 4096x2272 [terrain, mipmap, linear-minification, linear-mip-level]
1.398 Created atlas bitmap 4096x1152 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
1.398 Created atlas bitmap 4096x1664 [smoke, mipmap, linear-minification, linear-magnification]
1.398 Created atlas bitmap 4096x928 [mipmap]
1.400 Created atlas bitmap 4096x4096 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
1.400 Created atlas bitmap 4096x768 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
1.400 Created atlas bitmap 2048x684 [alpha-mask]
1.407 Created atlas bitmap 4096x4096 [shadow, linear-magnification, alpha-mask]
1.411 Created atlas bitmap 4096x4092 [shadow, linear-magnification, alpha-mask]
1.415 Created atlas bitmap 4096x4092 [shadow, linear-magnification, alpha-mask]
1.415 Created atlas bitmap 4096x3124 [shadow, linear-magnification, alpha-mask]
1.415 Created atlas bitmap 4096x1328 [shadow, mipmap, linear-magnification, alpha-mask]
1.416 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
1.429 Created virtual atlas pages 4096x4096x2
1.436 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
1.579 Parallel Sprite Loader initialized (threads: 11)
3.403 Sprites loaded
3.410 Generated mipmaps (3) for atlas [8] of size 4096x4016
3.414 Generated mipmaps (3) for atlas [9] of size 4096x1792
3.417 Generated mipmaps (3) for atlas [10] of size 4096x2464
3.420 Generated mipmaps (3) for atlas [11] of size 4096x2272
3.423 Generated mipmaps (3) for atlas [12] of size 4096x1152
3.428 Generated mipmaps (3) for atlas [13] of size 4096x1664
3.436 Generated mipmaps (3) for atlas [14] of size 4096x928
3.441 Generated mipmaps (5) for atlas [15] of size 4096x4096
3.445 Generated mipmaps (5) for atlas [16] of size 4096x768
3.447 Generated mipmaps (3) for atlas [22] of size 4096x1328
3.456 Custom mipmaps uploaded (1964)
3.537 Generated mipmaps for virtual atlas of size 4096x8192
3.548 Custom inputs active: 5