TSM-icons


Train Supply Manager Addon - adds procedurally generated icons for using the empty train concept. Depending on your modlist, this mod will generate suitable icons for added resources with either a cargo wagon or fluid wagon background and named empty X - where X is the resource name. Even vanilla games will receive numerous additional icons, as plates, sciences, and ammo are now supported with their empty train icons in addition to basic ores and fluids.

Content
3 years ago
0.18 - 1.1
515
Trains

i How to add other mods icons to TSM-icons

3 years ago

I figure out how to add support of other mods to TSM-icons.

For example i use Angels Smelting mod. To add icons first you need to extract folder TSM-icons_0.0.1 from zip and put it in same folder with other mods and delete zip file with TSM-icons mod.

Now open zip file angelssmelting_0.x.xx.zip and go to folder inside zip angelssmelting_0.6.13/prototypes/items there many file like:
angels-iron.lua
angels-copper.lua
angels-glass.lua
end etc.

Open one of files you will have something like this:

data:extend(
{
-- ORE
-- order a reserved for ore
-- SMELTING INTERMEDIATE
{
type = "item",
name = "processed-iron",
icon = "angelssmelting/graphics/icons/processed-iron.png",
icon_size = 32,
subgroup = "angels-iron",
order = "b",
stack_size = 200
},
...

look for string
subgroup = "angels-iron",

now copy name of subgroup - angels-iron

Open mods\TSM-icons_0.0.1\data.lua folder and add "angels-iron" to local subgroup_whitelist = {

Also you can open file angelssmelting_0.x.xx\info.json and add angelssmelting in whitelist it will adds many items, but not all.

now just restart game and empty wagons for train will be added for listed items

Here my white list:

local subgroup_whitelist = {"intermediate-product", "raw-resource", "raw-material", "terrain", "fill-barrel", "bob-ores","fb-material",
"petrochem-carbon-synthesis",
"angelsrefining", "angelspetrochem", "angelssmelting",
-- Angels petrochem
"petrochem-carbon-fluids", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids", "petrochem-raw-fluids", "petrochem-solids-fluids","petrochem-sulfer-fluids","petrochem-basic-fluids",
-- Angels smelting
"angels-aluminium", "angels-chrome", "angels-cobalt", "angels-copper", "angels-glass", "angels-gold", "angels-iron","angels-lead", "angels-manganese", "angels-nickel", "angels-platinum",
"angels-silicon", "angels-silver", "angels-stone", "angels-tin", "angels-titanium", "angels-tungsten", "angels-zinc", "angels-ores",
-- Angels refining
"ore-sorting-fluid", "fluids-refining", "water-salination", "water-treatment-fluid", "water-treatment-fluid"
}

This add most items, but sadly did not work for crystal slurry and other liquids from angelsrefining mod :(

3 years ago

Here updated whitelist - i add crushed ores, angels casting mats and pipes support:

local subgroup_whitelist = {"intermediate-product", "raw-resource", "raw-material", "terrain", "fill-barrel", "bob-ores","fb-material",

"angels-ores", "clowns-ore-processing-a",

"ore-sorting-t1", "angels-ore3", "ore-processing-a", "ore-processing-b", "ore-processing-c", "ore-processing-d",

"petrochem-carbon-synthesis",

"angelsrefining", "angelspetrochem", "angelssmelting",
-- Angels petrochem
"petrochem-carbon-fluids", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids", "petrochem-raw-fluids", "petrochem-solids-fluids","petrochem-sulfer-fluids","petrochem-basic-fluids",
-- Angels smelting
"angels-aluminium", "angels-chrome", "angels-cobalt", "angels-copper", "angels-glass", "angels-gold", "angels-iron","angels-lead", "angels-manganese", "angels-nickel", "angels-platinum",
"angels-silicon", "angels-silver", "angels-stone", "angels-tin", "angels-titanium", "angels-tungsten", "angels-zinc", "angels-ores",
-- Angels refining
"ore-sorting-fluid", "fluids-refining", "water-salination", "water-treatment-fluid", "water-treatment-fluid",

"slag-processing-1", "processing-crafting",

"angels-smelting-extended", "angels-casting", "angels-iron-pipe-casting", "angels-iron-casting",

"pipe",
}

3 years ago

Added support for angels casting support - plates and coils:

local subgroup_whitelist = {"intermediate-product", "raw-resource", "raw-material", "terrain", "fill-barrel", "bob-ores","fb-material",

"angels-ores", "clowns-ore-processing-a",

"ore-sorting-t1", "angels-ore3", "ore-processing-a", "ore-processing-b", "ore-processing-c", "ore-processing-d",

"petrochem-carbon-synthesis",

"angelsrefining", "angelspetrochem", "angelssmelting",
-- Angels petrochem
"petrochem-carbon-fluids", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids", "petrochem-raw-fluids", "petrochem-solids-fluids","petrochem-sulfer-fluids","petrochem-basic-fluids",
-- Angels smelting
"angels-aluminium", "angels-chrome", "angels-cobalt", "angels-copper", "angels-glass", "angels-gold", "angels-iron","angels-lead", "angels-manganese", "angels-nickel", "angels-platinum",
"angels-silicon", "angels-silver", "angels-stone", "angels-tin", "angels-titanium", "angels-tungsten", "angels-zinc", "angels-ores",

-- Angels casting
"angels-aluminium-casting", "angels-chrome-casting", "angels-cobalt-casting", "angels-copper-casting", "angels-glass-casting", "angels-gold-casting", "angels-iron-casting","angels-lead-casting",
"angels-nickel-casting", "angels-platinum-casting", "angels-silicon-casting", "angels-silver-casting", "angels-tin-casting", "angels-titanium-casting", "angels-tungsten-casting", "angels-zinc-casting",

-- Angels refining
"ore-sorting-fluid", "fluids-refining", "water-salination", "water-treatment-fluid", "water-treatment-fluid",

"slag-processing-1", "processing-crafting",

"angels-smelting-extended", "angels-casting", "angels-iron-pipe-casting", "angels-iron-casting",

"pipe",
}

3 years ago

Added support for angels petrochem:

local subgroup_whitelist = {"intermediate-product", "raw-resource", "raw-material", "terrain", "fill-barrel", "bob-ores","fb-material",

"angels-ores", "clowns-ore-processing-a",

"ore-sorting-t1", "angels-ore3", "ore-processing-a", "ore-processing-b", "ore-processing-c", "ore-processing-d",

"petrochem-carbon-synthesis",

"angelsrefining", "angelspetrochem", "angelssmelting",
-- Angels petrochem
"petrochem-carbon-fluids", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids", "petrochem-raw-fluids", "petrochem-solids-fluids","petrochem-sulfer-fluids","petrochem-basic-fluids",
-- Angels smelting
"angels-aluminium", "angels-chrome", "angels-cobalt", "angels-copper", "angels-glass", "angels-gold", "angels-iron","angels-lead", "angels-manganese", "angels-nickel", "angels-platinum",
"angels-silicon", "angels-silver", "angels-stone", "angels-tin", "angels-titanium", "angels-tungsten", "angels-zinc", "angels-ores",

-- Angels casting
"angels-aluminium-casting", "angels-chrome-casting", "angels-cobalt-casting", "angels-copper-casting", "angels-glass-casting", "angels-gold-casting", "angels-iron-casting","angels-lead-casting",
"angels-nickel-casting", "angels-platinum-casting", "angels-silicon-casting", "angels-silver-casting", "angels-tin-casting", "angels-titanium-casting", "angels-tungsten-casting", "angels-zinc-casting",

-- Angels refining
"ore-sorting-fluid", "fluids-refining", "water-salination", "water-treatment-fluid", "water-treatment-fluid",

"slag-processing-1", "processing-crafting",

"angels-smelting-extended", "angels-casting", "angels-iron-pipe-casting", "angels-iron-casting",

--Angels petrochem

"petrochem-sodium", "petrochem-solids-fluids", "petrochem-sulfur", "petrochem-catalysts", "petrochem-coal", "petrochem-fuel", "petrochem-basic-fluids", "petrochem-sulfer-fluids", "petrochem-carbon-fluids",
"gas-hydrogen-chloride", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids",

"pipe",
}

3 years ago

Added support for Bob boards:

local subgroup_whitelist = {"intermediate-product", "raw-resource", "raw-material", "terrain", "fill-barrel", "bob-ores","fb-material",

"angels-ores", "clowns-ore-processing-a",

"ore-sorting-t1", "angels-ore3", "ore-processing-a", "ore-processing-b", "ore-processing-c", "ore-processing-d",

"petrochem-carbon-synthesis",

"angelsrefining", "angelspetrochem", "angelssmelting",
-- Angels petrochem
"petrochem-carbon-fluids", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids", "petrochem-raw-fluids", "petrochem-solids-fluids","petrochem-sulfer-fluids","petrochem-basic-fluids",
-- Angels smelting
"angels-aluminium", "angels-chrome", "angels-cobalt", "angels-copper", "angels-glass", "angels-gold", "angels-iron","angels-lead", "angels-manganese", "angels-nickel", "angels-platinum",
"angels-silicon", "angels-silver", "angels-stone", "angels-tin", "angels-titanium", "angels-tungsten", "angels-zinc", "angels-ores",
"angels-alloys", "angels-solder-casting",

-- Angels casting
"angels-aluminium-casting", "angels-chrome-casting", "angels-cobalt-casting", "angels-copper-casting", "angels-glass-casting", "angels-gold-casting", "angels-iron-casting","angels-lead-casting",
"angels-nickel-casting", "angels-platinum-casting", "angels-silicon-casting", "angels-silver-casting", "angels-tin-casting", "angels-titanium-casting", "angels-tungsten-casting", "angels-zinc-casting",

-- Angels refining
"ore-sorting-fluid", "fluids-refining", "water-salination", "water-treatment-fluid", "water-treatment-fluid",

"slag-processing-1", "processing-crafting",

"angels-smelting-extended", "angels-casting", "angels-iron-pipe-casting", "angels-iron-casting",

--Angels petrochem

"petrochem-sodium", "petrochem-solids-fluids", "petrochem-sulfur", "petrochem-catalysts", "petrochem-coal", "petrochem-fuel", "petrochem-basic-fluids", "petrochem-sulfer-fluids", "petrochem-carbon-fluids",
"gas-hydrogen-chloride", "petrochem-chlorine-fluids", "petrochem-nitrogen-fluids",

-- Bob boards
"bob-boards", "bob-electronic-boards", "bob-electronic-components", "bob-resource",

"pipe",
}

New response