[pard] [2.0.47] ElectricEnergyInterfacePrototype doesn't display power settings at Info Tooltip/Factoriopedia

RealK
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jul 01, 2024 7:32 pm
Contact:

[pard] [2.0.47] ElectricEnergyInterfacePrototype doesn't display power settings at Info Tooltip/Factoriopedia

Post by RealK »

Hello,

I'm trying K2 for 2.0, just realized that Wind Turbine is not displaying the power production inside the Info Tooltip and Factoriopedia:
Info Tooltip
Info Tooltip
05-01-2025, 11-37-58.png (175.23 KiB) Viewed 100 times
FactorioPedia
FactorioPedia
05-01-2025, 11-38-15.png (127.28 KiB) Viewed 100 times
Seems ok once the turbine is built:
Built Turbine
Built Turbine
05-01-2025, 11-38-57.png (99.32 KiB) Viewed 100 times
Entity prototype:

Code: Select all

 {
    type = "electric-energy-interface",
    name = "kr-wind-turbine",
    icon = "__Krastorio2Assets__/icons/entities/wind-turbine.png",
    flags = { "placeable-neutral", "player-creation", "not-rotatable" },
    minable = { mining_time = 0.25, result = "kr-wind-turbine" },
    fast_replaceable_group = "wind-turbine",
    collision_box = { { -1.25, -1.25 }, { 1.25, 1.25 } },
    selection_box = { { -1.45, -1.45 }, { 1.45, 1.45 } },
    drawing_box = { { -0.5, -2 }, { 0.5, 1 } },
    energy_source = {
      type = "electric",
      buffer_capacity = "20kJ",
      usage_priority = "primary-output",
      output_flow_limit = "20kW",
      render_no_power_icon = false,
    },
    max_health = 200,
    corpse = "medium-remnants",
    damaged_trigger_effect = hit_effects.entity(),
    resistances = {
      {
        type = "fire",
        percent = 30,
      },
      {
        type = "physical",
        percent = 60,
      },
      {
        type = "impact",
        percent = 30,
      },
    },
    working_sound = {
      sound = persistent_sound,
      idle_sound = persistent_sound,
      persistent = true,
    },
    energy_production = "20kW",
    animation = {
      layers = {
        {
          filename = "__Krastorio2Assets__/buildings/wind-turbine/wind-turbine.png",
          priority = "medium",
          width = 196,
          height = 286,
          scale = 0.5,
          frame_count = 30,
          line_length = 6,
          animation_speed = 0.8,
          shift = { 0, -1.2 },
        },
        {
          filename = "__Krastorio2Assets__/buildings/wind-turbine/wind-turbine-shadow.png",
          priority = "medium",
          width = 242,
          height = 100,
          scale = 0.65,
          frame_count = 30,
          line_length = 6,
          animation_speed = 0.5,
          draw_as_shadow = true,
          shift = { 1.15, 0.05 },
        },
      },
    },
    continuous_animation = true,
    water_reflection = {
      pictures = {
        filename = "__Krastorio2Assets__/buildings/wind-turbine/wind-turbine-reflection.png",
        priority = "extra-high",
        width = 20,
        height = 25,
        shift = util.by_pixel(0, 40),
        variation_count = 1,
        scale = 5,
      },
      rotate = false,
      orientation_to_variation = false,
    },
  },
  
I wonder, maybe it would be good idea display the default settings of `energy_source` when the `gui_mode` is set to "none" ?
Post Reply

Return to “Assigned”