[Bilka] [0.17.31] Emissions_per_minute map generator hang

This subforum contains all the issues which we already resolved.
Post Reply
Veden
Filter Inserter
Filter Inserter
Posts: 294
Joined: Wed Jul 13, 2016 3:54 pm
Contact:

[Bilka] [0.17.31] Emissions_per_minute map generator hang

Post by Veden »

A modded generator entity type with an electric energy source with emissions_per_minute that can consume liquid with a fuelValue and fuelEmissionMultiplier when actually producing power and consuming liquid will cause the map generator timings to increase significantly, 34.000/31.000/37.000, and persistent even if the generator is removed.

The map generator timing increase behavior is not present with emissions or emissions_per_second_per_watt on the prototype.

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.31] Emissions_per_minute map generator hang

Post by Bilka »

Can you post the prototype, please.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.17.31] Emissions_per_minute map generator hang

Post by orzelek »

Also open the map and check the pollution amounts (there is a debug option that shows values). It sounds like it might have produced some enormous pollution amounts and it started spreading all over.

Veden
Filter Inserter
Filter Inserter
Posts: 294
Joined: Wed Jul 13, 2016 3:54 pm
Contact:

Re: [0.17.31] Emissions_per_minute map generator hang

Post by Veden »

Generator prototype

Code: Select all

{type="generator",
 name="basic-fluid-generator-rampant-arsenal",
 icon="__RampantArsenal__/graphics/icons/oil-burner.png",
 icon_size=32,
 flags={"placeable-neutral",
        "player-creation"},
 minable={mining_time=1,
          result="basic-fluid-generator-rampant-arsenal"},
 max_health=300,
 corpse="big-remnants",
 dying_explosion="medium-explosion",
 alert_icon_shift={0,
                       -0.375},
 effectivity=1,
 fluid_usage_per_tick=1,
 maximum_temperature=25,
 max_power_output="7.5MW",
 burns_fluid=true,
 scale_fluid_usage=true,
 resistances={{type="fire",
               percent=70}},
 fast_replaceable_group="oil-burner",
 collision_box={{-1.3500000000000001,
                     -2.3500000000000001},
     {1.3500000000000001,
      2.3500000000000001}},
 selection_box={{-1.5,
                     -2.5},
     {1.5,
      2.5}},
 fluid_box={base_area=1,
            height=2,
            base_level=-1,
            pipe_covers={north={layers={{filename="__base__/graphics/entity/pipe-covers/pipe-cover-north.png",
                                         priority="extra-high",
                                         width=64,
                                         height=64,
                                         hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-north.png",
                                                     priority="extra-high",
                                                     width=128,
                                                     height=128,
                                                     scale=0.5}},
                                    {filename="__base__/graphics/entity/pipe-covers/pipe-cover-north-shadow.png",
                                     priority="extra-high",
                                     width=64,
                                     height=64,
                                     draw_as_shadow=true,
                                     hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-north-shadow.png",
                                                 priority="extra-high",
                                                 width=128,
                                                 height=128,
                                                 scale=0.5,
                                                 draw_as_shadow=true}}}},
                         east={layers={{filename="__base__/graphics/entity/pipe-covers/pipe-cover-east.png",
                                        priority="extra-high",
                                        width=64,
                                        height=64,
                                        hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-east.png",
                                                    priority="extra-high",
                                                    width=128,
                                                    height=128,
                                                    scale=0.5}},
                                   {filename="__base__/graphics/entity/pipe-covers/pipe-cover-east-shadow.png",
                                    priority="extra-high",
                                    width=64,
                                    height=64,
                                    draw_as_shadow=true,
                                    hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-east-shadow.png",
                                                priority="extra-high",
                                                width=128,
                                                height=128,
                                                scale=0.5,
                                                draw_as_shadow=true}}}},
                         south={layers={{filename="__base__/graphics/entity/pipe-covers/pipe-cover-south.png",
                                         priority="extra-high",
                                         width=64,
                                         height=64,
                                         hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-south.png",
                                                     priority="extra-high",
                                                     width=128,
                                                     height=128,
                                                     scale=0.5}},
                                    {filename="__base__/graphics/entity/pipe-covers/pipe-cover-south-shadow.png",
                                     priority="extra-high",
                                     width=64,
                                     height=64,
                                     draw_as_shadow=true,
                                     hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-south-shadow.png",
                                                 priority="extra-high",
                                                 width=128,
                                                 height=128,
                                                 scale=0.5,
                                                 draw_as_shadow=true}}}},
                         west={layers={{filename="__base__/graphics/entity/pipe-covers/pipe-cover-west.png",
                                        priority="extra-high",
                                        width=64,
                                        height=64,
                                        hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-west.png",
                                                    priority="extra-high",
                                                    width=128,
                                                    height=128,
                                                    scale=0.5}},
                                   {filename="__base__/graphics/entity/pipe-covers/pipe-cover-west-shadow.png",
                                    priority="extra-high",
                                    width=64,
                                    height=64,
                                    draw_as_shadow=true,
                                    hr_version={filename="__base__/graphics/entity/pipe-covers/hr-pipe-cover-west-shadow.png",
                                                priority="extra-high",
                                                width=128,
                                                height=128,
                                                scale=0.5,
                                                draw_as_shadow=true}}}}},
            pipe_connections={{type="input-output",
                               position={0,
                                         3}},
                {type="input-output",
                 position={0,
                               -3}}},
            production_type="input-output"},
 energy_source={type="electric",
                usage_priority="secondary-output",
                emissions_per_minute=4e-05},
 horizontal_animation={layers={{filename="__base__/graphics/entity/steam-turbine/steam-turbine-H.png",
                                width=160,
                                height=123,
                                frame_count=8,
                                line_length=4,
                                scale=1,
                                tint={r=0.7,
                                      g=0.4,
                                      b=0,
                                      a=1},
                                shift={0,
                                           -0.078125},
                                hr_version={filename="__base__/graphics/entity/steam-turbine/hr-steam-turbine-H.png",
                                            width=320,
                                            height=245,
                                            frame_count=8,
                                            line_length=4,
                                            tint=nil,
                                            shift={0,
                                                       -0.078125},
                                            scale=0.5}},
                           {filename="__base__/graphics/entity/steam-turbine/steam-turbine-H-shadow.png",
                            width=217,
                            height=74,
                            repeat_count=8,
                            frame_count=1,
                            line_length=1,
                            draw_as_shadow=true,
                            scale=1,
                            shift={0.8984375,
                                   0.5625},
                            hr_version={filename="__base__/graphics/entity/steam-turbine/hr-steam-turbine-H-shadow.png",
                                        width=435,
                                        height=150,
                                        repeat_count=8,
                                        frame_count=1,
                                        line_length=1,
                                        draw_as_shadow=true,
                                        shift={0.890625,
                                               0.5625},
                                        scale=0.5}}}},
 vertical_animation={layers={{filename="__base__/graphics/entity/steam-turbine/steam-turbine-V.png",
                              width=108,
                              height=173,
                              frame_count=8,
                              line_length=4,
                              scale=1,
                              tint=nil,
                              shift={0.15625,
                                     0.203125},
                              hr_version={filename="__base__/graphics/entity/steam-turbine/hr-steam-turbine-V.png",
                                          width=217,
                                          height=347,
                                          frame_count=8,
                                          line_length=4,
                                          tint=nil,
                                          shift={0.1484375,
                                                 0.2109375},
                                          scale=0.5}},
                         {filename="__base__/graphics/entity/steam-turbine/steam-turbine-V-shadow.png",
                          width=151,
                          height=131,
                          repeat_count=8,
                          frame_count=1,
                          line_length=1,
                          draw_as_shadow=true,
                          scale=1,
                          shift={1.234375,
                                 0.765625},
                          hr_version={filename="__base__/graphics/entity/steam-turbine/hr-steam-turbine-V-shadow.png",
                                      width=302,
                                      height=260,
                                      repeat_count=8,
                                      frame_count=1,
                                      line_length=1,
                                      draw_as_shadow=true,
                                      shift={1.234375,
                                             0.765625},
                                      scale=0.5}}}},
 smoke={{name="turbine-smoke",
         north_position={0,
                             -1},
         east_position={0.75,
                            -0.75},
         frequency=0.3125,
         starting_vertical_speed=0.08,
         slow_down_factor=1,
         tint={r=0.9,
               g=0.1,
               b=0.7,
               a=0.6},
         starting_frame_deviation=60}},
 vehicle_impact_sound={filename="__base__/sound/car-metal-impact.ogg",
                       volume=0.65},
 working_sound={sound={filename="__base__/sound/steam-engine-90bpm.ogg",
                       volume=0.6},
                match_speed_to_activity=true},
 min_perceived_performance=0.25,
 performance_to_sound_speedup=0.5}
Fluid prototype

Code: Select all

{type="fluid",
 name="crude-oil",
 default_temperature=25,
 heat_capacity="0.1KJ",
 base_color={r=0,
             g=0,
             b=0},
 flow_color={r=0.5,
             g=0.5,
             b=0.5},
 max_temperature=100,
 icon="__base__/graphics/icons/fluid/crude-oil.png",
 icon_size=32,
 order="a[fluid]-b[crude-oil]",
 fuel_emissions_multiplier=4,
 fuel_value="0.45MJ"}
Let me know if you need anything else

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.31] Emissions_per_minute map generator hang

Post by Bilka »

Thanks for the report, fixed for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Problems and Bugs”