[0.10.x]Biter self damaging Causes Crash

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 243
Joined: Tue Feb 11, 2014 8:16 am
Contact:

[0.10.x]Biter self damaging Causes Crash

Post by ludsoe » Tue Sep 09, 2014 7:16 pm

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}
      }
		},

kovarex
Factorio Staff
Factorio Staff
Posts: 7424
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex » Wed Sep 10, 2014 10:32 am

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 :)

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users