Missing visuals

Place to get help with not working mods / modding interface.
tiobaldf
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 01, 2016 12:15 pm
Contact:

Missing visuals

Post by tiobaldf »

Hello Factorios,

im new to the modding and just managed to get my first few items into the game. Now I m trying to create a entity, its working fine but the visuals are missing as you can see on the screenshot.
Image


Here is the code

Code: Select all

{
type = "assembling-machine",
    name = "oxygen-refiller",
    icon = "__spatium__/graphics/icons/oxygen-refiller.png",
    flags = {"placeable-neutral","placeable-player", "player-creation"},
    minable = {hardness = 0.2, mining_time = 0.5, result = "oxygen-refiller"},
    max_health = 300,
    corpse = "big-remnants",
    dying_explosion = "medium-explosion",
    resistances =
    {
      {
        type = "fire",
        percent = 70
      }
    },
  
    working_sound =
    {
      sound = {
        {
          filename = "__base__/sound/assembling-machine-t3-1.ogg",
          volume = 0.8
        }
      },
 
    },
    collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
    selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
	{
      filename = "__spatium__/graphics/entitys/oxygen-refiller.png",
      priority = "high",
      width = 32,
      height = 32,
      frame_count = 1,
      shift = {1.21875, -0.125}
    },
    fast_replaceable_group = "assembling-machine",
    crafting_categories = {"crafting", "advanced-crafting", "crafting-with-fluid"},
    crafting_speed = 1.25,
    energy_source =
    {
      type = "electric",
      usage_priority = "secondary-input",
      emissions = 0.03 / 3.5
    },
    energy_usage = "210kW",
    ingredient_count = 6,
    module_specification =
    {
      module_slots = 4
    },
    allowed_effects = {"consumption", "speed", "productivity", "pollution"}
	
	}


I dont need any animation or smth. Dont know if this is the right way to implement just a single frame. Could somone please explain my failure to me ? :)
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Missing visuals

Post by orzelek »

You removed the animation= line. I think it needs to be present - afaik if entity is of assembling-machine type it will expect to have animation line even if it has only 1 frame.
Last edited by orzelek on Fri Apr 01, 2016 10:19 pm, edited 1 time in total.
tiobaldf
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 01, 2016 12:15 pm
Contact:

Re: Missing visuals

Post by tiobaldf »

Thanks alot, this fixed my problem!!
Post Reply

Return to “Modding help”