Crash when hovering over item [SOLVED]

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Sigma1
Fast Inserter
Fast Inserter
Posts: 232
Joined: Mon Nov 21, 2016 5:25 pm
Contact:

Crash when hovering over item [SOLVED]

Post by Sigma1 »

I have been developing a mod for a while now, and I added a new ammo type item, and it appears in the game correctly but if I hover over it in the inventory it crashes the game.

Code probably causing error:

Code: Select all

--stone
	{
		  type = "ammo",
		  name = "rock",
		  icon = "__military-extended__/graphics/ammo/stone.png",
		  flags = {"goes-to-main-inventory"},
		  ammo_type =
    {
      category = "throwable",
      action =
      {
        {
          type = "direct",
          action_delivery =
          {
            type = "instant"
          }
        },
        {
          type = "direct",
          action_delivery =
          {
            type = "projectile",
            projectile = "stone",
            starting_speed = 0.8,
            max_range = 22
          }
        }
      }
    },
    magazine_size = 1,
    subgroup = "ammo",
    order = "d[rock]",
    stack_size = 100
  },
Factorio log file is as an attachment.

Any help is appreciated
Attachments
factorio-current.log
Factorio log file
(5.23 KiB) Downloaded 34 times
Last edited by Sigma1 on Wed Nov 23, 2016 2:49 pm, edited 1 time in total.
she/they

Rseding91
Factorio Staff
Factorio Staff
Posts: 13253
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Crash when hovering over item

Post by Rseding91 »

This is fixed in 0.15:

You've made a projectile trigger but gave it an entity name that isn't a projectile.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Sigma1
Fast Inserter
Fast Inserter
Posts: 232
Joined: Mon Nov 21, 2016 5:25 pm
Contact:

Re: Crash when hovering over item

Post by Sigma1 »

Thanks for the quick reply :D! I should rename my stone projectile and make sure that it is the correct type.
she/they

Post Reply

Return to “Modding help”