[0.11.16] Liquid only furnace type assembler cause crash

This subforum contains all the issues which we already resolved.
User avatar
y.petremann
Filter Inserter
Filter Inserter
Posts: 423
Joined: Mon Mar 17, 2014 4:24 pm
Contact:

[0.11.16] Liquid only furnace type assembler cause crash

Post by y.petremann »

I am currently creating a mod that in first place have a simple fusion reactor, this take any liquids of my mod and transform them to another liquid.
Here is the code :

Code: Select all

data:extend({
  {
    name = "factochem-simple-fusion-reactor",
    flags = {"placeable-neutral", "placeable-player", "player-creation"},
    icon = "__factochem__/graphics/icons/factochem-fusion-reactor.png",
    collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
    selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
    minable = {hardness = 0.2, mining_time = 0.5, result = "factochem-simple-fusion-reactor"},

    max_health = 150,
    dying_explosion = "huge-explosion",
    corpse = "big-remnants",

    --type = "assembling-machine",
    type = "furnace",
    source_inventory_size = 1,
    result_inventory_size = 0,
	
    animation = {filename = "__factochem__/graphics/entity/factochem-fusion-reactor.png",priority = "high",width = 99,height = 102,frame_count = 32,line_length = 8,shift = {0.4, -0.06}},
    crafting_categories = {"factochem-simple-fusion"},
    energy_source = {type = "electric",usage_priority = "secondary-input",emissions = -0.2},
    energy_usage = "200kW",
    ingredient_count = 1,
    open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
    close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
    working_sound = {sound = { { filename = "__base__/sound/electric-furnace.ogg", volume = 0.7 } },idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },apparent_volume = 1.5},
    crafting_speed = 1.0,

    fluid_boxes = {
      {
        production_type = "input",
        pipe_picture = assembler2pipepictures(),
        pipe_covers = pipecoverspictures(),
        base_area = 10,
        base_level = -1,
        pipe_connections = {{ type="input", position = {0, -2} }}
      },
      {
        production_type = "output",
        pipe_picture = assembler2pipepictures(),
        pipe_covers = pipecoverspictures(),
        base_level = 1,
        pipe_connections = {{ position = {0, 2} }}
      }
    },
    module_slots = 0,
    allowed_effects = {}
  }
})
The problem is that there is an additionnal unused slot for an item, if I change source_inventory_size to 0, the game crash when a machine is placed or loaded.

Code: Select all

bin/x64/factorio[0x48ac89]
bin/x64/factorio[0x5346f3]
bin/x64/factorio[0x534759]
/lib/x86_64-linux-gnu/libc.so.6(+0x36d40)[0x7ff231035d40]
bin/x64/factorio[0x7c3222]
bin/x64/factorio[0x8f79c7]
bin/x64/factorio[0x96f7b4]
bin/x64/factorio[0x6deb88]
bin/x64/factorio[0xc11aea]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8182)[0x7ff232c96182]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ff2310f947d]
86472.717927  Error Util.cpp:43: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.16] Liquid only furnace type assembler cause crash

Post by kovarex »

Thanks for the report, it is fixed for 0.11.17 now.
Post Reply

Return to “Resolved Problems and Bugs”