Page 1 of 1

[0.10.x]Biter self damaging Causes Crash

Posted: Tue Sep 09, 2014 7:16 pm
by ludsoe
The attack parameters down below cause constant crash's.
I believe its the biters damaging themselves. (And also instantly being killed by themselves)

Code: Select all

attack_parameters =
		{
			ammo_category = "melee",
			ammo_type =
			{
				category = "biological",
				action =
				{
					type = "direct",
					action_delivery =
					{
						type = "instant",
						target_effects =
						{
							{
								type = "nested-result",
								action =
								{
									type = "area",
									perimeter = 3.5,
									action_delivery =
									{
										type = "instant",
										target_effects =
										{
											{
												type = "damage",
												damage = {amount = 40, type = "explosion"}
											},
											{
												type = "create-entity",
												entity_name = "explosion"
											}
										}
									}
								},
							}
						}
					}
				}
			},
			range = 0.5,
			cooldown = 35,
      animation =
      {
        filename = "__base__/graphics/entity/small-biter/small-biter-attack.png",
        frame_width = 139,
        frame_height = 93,
        frame_count = 11,
        direction_count = 16,
        axially_symmetrical = false,
        shift = {0.84375, -0.3125}
      }
		},

Re: [0.10.x]Biter self damaging Causes Crash

Posted: Wed Sep 10, 2014 10:32 am
by kovarex
Oh, thank you for the report, there was one special place in code where the biter attack resulting into destroying itself wasn't covered properly, luckily the fix is one liner :)

Fixed for 0.10.10

P.S. I'm looking forward for kamikaze enemies in the mod :)