Custom solid smoke?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
forzar
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Oct 19, 2020 11:28 pm
Contact:

Custom solid smoke?

Post by forzar »

I'd like to leave a trail of tracks behind a locomotive, and I've been having trouble making the smoke do what I want. Basically I want to leave a trail of smoke tracks behind a moving object.

Code: Select all

smoke =
{
	{
		name = 'train-track-smoke',
		frequency = 0.02,
		deviation = {0, 0},
		position = {0, 1.5}
	}
}

Code: Select all

data:extend
{
	{
		type = 'trivial-smoke',
		name = 'train-track-smoke',
		flags = {'not-on-map'},
		slow_down_factor = 1,
		duration = 1000,
		fade_in_duration = 0,
		fade_away_duration = 120,
		-- color = {r = 0, g = 0, b = 0, a = 0.3},
		cyclic = true,
		affected_by_wind = false,
		animation =
		{
		  width = 128,
		  height = 64,
		  frame_count = 1,
		  direction_count = 1,
		  shift = {0, 0},
		  priority = "high",
		  animation_speed = 0.1,
		  filename = "__base__/graphics/entity/straight-rail/straight-rail-vertical-ties.png",
		  flags = { "compressed" }
		}
		-- TODO: use straight-rail-vertical-metals.png to overlay or something?
	}
}
Example:
Image

I guess what I really need is some help on the smoke settings.

Post Reply

Return to “Modding help”