Compare commits

..

No commits in common. "main" and "2.0.27" have entirely different histories.
main ... 2.0.27

7 changed files with 577 additions and 634 deletions

View file

@ -1,3 +0,0 @@
[*]
indent_style = space
indent_size = 2

View file

@ -1,19 +1,4 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.30
Date: 05.11.2025
Bug Fixes:
- Fix icon scales
---------------------------------------------------------------------------------------------------
Version: 2.0.29
Date: 02.11.2025
Bug Fixes:
- Remove settings check for wooden rails
---------------------------------------------------------------------------------------------------
Version: 2.0.28
Date: 01.11.2025
Changes:
- Add wooden rails again (thanks MAGGen)
---------------------------------------------------------------------------------------------------
Version: 2.0.27
Date: 21.10.2025
Changes:

View file

@ -1,6 +1,6 @@
{
"name": "Bio_Industries_2",
"version": "2.0.30",
"version": "2.0.27",
"factorio_version": "2.0",
"title": "Bio Industries",
"author": "TheSAguy - Had a few Ideas, Pi-C (Programming Genius), Snouz (Graphics Wizard), Cackling Fiend - Conversion to F2.0",

View file

@ -13,10 +13,10 @@ data:extend(
name = "bi-seed",
icons = { {icon = ICONPATH .. "bio_seed.png", icon_size = 64, }},
pictures = {
{ size = 64, filename = ICONPATHMIPS.."bio_seed_1.png", scale = 0.48, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."bio_seed_2.png", scale = 0.46, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."bio_seed_3.png", scale = 0.45, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."bio_seed_4.png", scale = 0.43, mipmap_count = 4 }
{ size = 64, filename = ICONPATHMIPS.."bio_seed_1.png", scale = 0.25, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."bio_seed_2.png", scale = 0.25, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."bio_seed_3.png", scale = 0.25, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."bio_seed_4.png", scale = 0.25, mipmap_count = 4 }
},
category = "biofarm-mod-greenhouse",
subgroup = "bio-bio-farm",
@ -35,15 +35,15 @@ data:extend(
localised_description = {"entity-description.seedling"},
icons = { {icon = ICONPATH .. "Seedling.png", icon_size = 64, }},
pictures = {
{ size = 64, filename = ICONPATHMIPS.."seedling_1.png", scale = 0.57, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_2.png", scale = 0.52, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_3.png", scale = 0.47, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_4.png", scale = 0.52, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_5.png", scale = 0.62, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_6.png", scale = 0.52, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_7.png", scale = 0.72, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_8.png", scale = 0.52, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_9.png", scale = 0.47, mipmap_count = 9 }
{ size = 64, filename = ICONPATHMIPS.."seedling_1.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_2.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_3.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_4.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_5.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_6.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_7.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_8.png", scale = 0.25, mipmap_count = 9 },
{ size = 64, filename = ICONPATHMIPS.."seedling_9.png", scale = 0.25, mipmap_count = 9 }
},
subgroup = "bio-bio-farm",
order = "x[bi]-b[bi-seedling]",
@ -114,10 +114,10 @@ data:extend(
name = "bi-woodpulp",
icons = { {icon = ICONPATH .. "woodpulp_64.png", icon_size = 64, }},
pictures = {
{ size = 64, filename = ICONPATHMIPS.."woodpulp_1.png", scale = 0.55, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."woodpulp_2.png", scale = 0.53, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."woodpulp_3.png", scale = 0.51, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."woodpulp_4.png", scale = 0.49, mipmap_count = 4 }
{ size = 64, filename = ICONPATHMIPS.."woodpulp_1.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."woodpulp_2.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."woodpulp_3.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."woodpulp_4.png", scale = 0.2, mipmap_count = 4 }
},
fuel_value = "1MJ",
fuel_category = "chemical",
@ -147,10 +147,10 @@ data:extend(
name = "bi-ash",
icons = { {icon = ICONPATH .. "ash.png", icon_size = 64, }},
pictures = {
{ size = 64, filename = ICONPATHMIPS.."ash_1.png", scale = 0.42, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."ash_2.png", scale = 0.42, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."ash_3.png", scale = 0.42, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."ash_4.png", scale = 0.42, mipmap_count = 4 }
{ size = 64, filename = ICONPATHMIPS.."ash_1.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."ash_2.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."ash_3.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."ash_4.png", scale = 0.2, mipmap_count = 4 }
},
subgroup = "raw-material",
order = "a[bi]-a-b[bi-ash]",
@ -164,10 +164,10 @@ data:extend(
name = "wood-charcoal",
icons = { {icon = ICONPATH .. "charcoal.png", icon_size = 64, }},
pictures = {
{ size = 64, filename = ICONPATHMIPS.."charcoal_1.png", scale = 0.49, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."charcoal_2.png", scale = 0.5, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."charcoal_3.png", scale = 0.5, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."charcoal_4.png", scale = 0.51, mipmap_count = 4 }
{ size = 64, filename = ICONPATHMIPS.."charcoal_1.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."charcoal_2.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."charcoal_3.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."charcoal_4.png", scale = 0.2, mipmap_count = 4 }
},
fuel_value = "6MJ",
fuel_category = "chemical",
@ -199,10 +199,10 @@ data:extend(
name = "stone-crushed",
icons = { {icon = ICONPATH .. "crushed-stone.png", icon_size = 64, }},
pictures = {
{ size = 64, filename = ICONPATHMIPS.."crush_1.png", scale = 0.44, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."crush_2.png", scale = 0.45, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."crush_3.png", scale = 0.45, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."crush_4.png", scale = 0.46, mipmap_count = 4 }
{ size = 64, filename = ICONPATHMIPS.."crush_1.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."crush_2.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."crush_3.png", scale = 0.2, mipmap_count = 4 },
{ size = 64, filename = ICONPATHMIPS.."crush_4.png", scale = 0.2, mipmap_count = 4 }
},
subgroup = "raw-material",
order = "a[bi]-a-z[stone-crushed]",

View file

@ -1,16 +1,11 @@
local BioInd = require('common')('Bio_Industries_2')
local ICONPATH = BioInd.modRoot .. "/graphics/icons/"
local ICONPATH_E = BioInd.modRoot .. "/graphics/icons/entity/"
local ENTITYPATH_BIO = BioInd.modRoot .. "/graphics/entities/"
local REMNANTSPATH = BioInd.modRoot .. "/graphics/entities/remnants/"
require("util")
local crafting_speed_quality_multiplier = mods["quality"] and {
uncommon = 0.83,
rare = 0.66,
epic = 0.50,
legendary = 0.16
} or nil
--- Bio Garden
data:extend({
@ -73,7 +68,6 @@ data:extend({
source_inventory_size = 1,
result_inventory_size = 1,
crafting_speed = 1.0,
crafting_speed_quality_multiplier = crafting_speed_quality_multiplier,
energy_source = {
type = "electric",
usage_priority = "secondary-input",
@ -111,7 +105,8 @@ data:extend({
time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants",
remove_on_tile_placement = false,
animation = {
animation =
{
{
filename = REMNANTSPATH .. "bio_garden_remnant.png",
line_length = 1,
@ -126,6 +121,7 @@ data:extend({
},
---- Bio Garden Large
{
type = "assembling-machine",
@ -213,7 +209,6 @@ data:extend({
source_inventory_size = 1,
result_inventory_size = 1,
crafting_speed = 4.0,
crafting_speed_quality_multiplier = crafting_speed_quality_multiplier,
energy_source = {
type = "electric",
usage_priority = "secondary-input",
@ -251,7 +246,8 @@ data:extend({
time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants",
remove_on_tile_placement = false,
animation = {
animation =
{
{
filename = REMNANTSPATH .. "bio_garden_large_remnant.png",
line_length = 1,
@ -395,7 +391,6 @@ data:extend({
source_inventory_size = 1,
result_inventory_size = 1,
crafting_speed = 16,
crafting_speed_quality_multiplier = crafting_speed_quality_multiplier,
energy_source = {
type = "electric",
usage_priority = "secondary-input",
@ -433,7 +428,8 @@ data:extend({
time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants",
remove_on_tile_placement = false,
animation = {
animation =
{
{
filename = REMNANTSPATH .. "bio_garden_huge_remnant.png",
line_length = 1,

View file

@ -39,6 +39,7 @@ if BI.Settings.BI_Game_Tweaks_Disassemble then
},
main_product = "",
},
----
{
type = "recipe",
name = "bi-burner-inserter-disassemble",
@ -60,6 +61,7 @@ if BI.Settings.BI_Game_Tweaks_Disassemble then
},
main_product = "",
},
----
{
type = "recipe",
name = "bi-long-handed-inserter-disassemble",
@ -83,6 +85,7 @@ if BI.Settings.BI_Game_Tweaks_Disassemble then
},
main_product = "",
},
---
{
type = "recipe",
name = "bi-stone-furnace-disassemble",
@ -104,6 +107,7 @@ if BI.Settings.BI_Game_Tweaks_Disassemble then
},
main_product = "",
},
---
{
type = "recipe",
name = "bi-steel-furnace-disassemble",
@ -129,27 +133,3 @@ if BI.Settings.BI_Game_Tweaks_Disassemble then
})
end
local SET = settings.startup["BI_Game_Tweaks_Production_Science"].value
if SET and not mods["Krastorio2"] then
data:extend({
{
type = "recipe",
name = "bi-production-science-pack",
enabled = false,
energy_required = 21,
ingredients = {
{ type = "item", name = "electric-furnace", amount = 1 },
{ type = "item", name = "productivity-module", amount = 1 },
{ type = "item", name = "bi-rail-wood", amount = 40 }
},
results = { { type = "item", name = "production-science-pack", amount = 3 } },
},
})
--~ BI_Functions.lib.allow_productivity("bi-production-science-pack")
--~ thxbob.lib.tech.add_recipe_unlock("production-science-pack", "bi-production-science-pack")
BioInd.writeDebug("Added alternative recipe for Production science packs.")
else
BioInd.writeDebug("Didn't add alternative recipe for Production science packs! (\"Krastorio\": %s\tSetting: %s",
{ (mods["Krastorio2"] and "active" or "not active"), (SET and "enabled" or "disabled") })
end

View file

@ -1,10 +1,19 @@
require ("prototypes.Wood_Products.rail-pictures-wood")
local BioInd = require('common')('Bio_Industries_2')
local ICONPATH = BioInd.modRoot .. "/graphics/icons/"
local ICONPATH_E = BioInd.modRoot .. "/graphics/icons/entity/"
local item_sounds = require("__base__.prototypes.item_sounds")
local hit_effects = require ("__base__.prototypes.entity.hit-effects")
local sounds = require("__base__.prototypes.entity.sounds")
local tile_sounds = require("__base__.prototypes.tile.tile-sounds")
local simulations = require("__base__.prototypes.factoriopedia-simulations")
if BI.Settings.BI_Game_Tweaks_Recipe then
data:extend({
---- ITEM
@ -20,7 +29,8 @@ data:extend({
drop_sound = item_sounds.train_inventory_move,
place_result = "bi-straight-rail-wood",
stack_size = 100,
rails = {
rails =
{
"bi-straight-rail-wood",
"bi-curved-rail-a-wood",
"bi-curved-rail-b-wood",
@ -30,39 +40,13 @@ data:extend({
},
---- Recipe
{
type = "recipe",
name = "bi-rail-wood",
localised_name = { "entity-name.bi-rail-wood" },
localised_description = { "entity-description.bi-rail-wood" },
icons = { { icon = ICONPATH_E .. "rail-wood.png", icon_size = 64, } },
enabled = false,
ingredients = {
{ type = "item", name = "wood", amount = 6 },
{ type = "item", name = "stone", amount = 1 },
{ type = "item", name = "steel-plate", amount = 1 },
{ type = "item", name = "iron-stick", amount = 1 },
},
results = { { type = "item", name = "bi-rail-wood", amount = 2 } },
main_product = "",
requester_paste_multiplier = 4,
--~ always_show_made_in = true,
--~ allow_decomposition = false,
allow_as_intermediate = false, -- Added for 0.18.34/1.1.4
always_show_made_in = false, -- Changed for 0.18.34/1.1.4
allow_decomposition = true, -- Changed for 0.18.34/1.1.4
subgroup = "transport",
order = "a[train-system]-a[rail]",
-- This is a custom property for use by "Krastorio 2" (it will change
-- ingredients/results; used for wood/wood pulp)
mod = "Bio_Industries",
},
{
type = "recipe",
name = "bi-rail-wood-to-concrete",
icons = { {icon = ICONPATH_E .. "rail-wood-to-concrete.png", icon_size = 64, } },
enabled = false,
ingredients = {
ingredients =
{
{type = "item", name = "bi-rail-wood", amount = 2},
{type = "item", name = "stone-brick", amount = 6},
@ -84,10 +68,12 @@ data:extend({
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 1},
max_health = 200,
corpse = "straight-rail-remnants",
dying_explosion = {
dying_explosion =
{
name = "rail-explosion"
},
resistances = {
resistances =
{
{
type = "fire",
percent = 100
@ -104,10 +90,7 @@ data:extend({
placeable_by = {item = "bi-rail-wood", count = 1},
walking_sound = tile_sounds.walking.rails,
extra_planner_goal_penalty = -4,
factoriopedia_alternative = "straight-rail",
-- for upgrade planer (fast rail change wood/iron)
next_upgrade = "straight-rail",
fast_replaceable_group = "straight-rail",
factoriopedia_alternative = "straight-rail"
},
{
@ -124,7 +107,8 @@ data:extend({
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 2},
max_health = 200,
corpse = "half-diagonal-rail-remnants",
dying_explosion = {
dying_explosion =
{
{
name = "rail-explosion",
offset = {0.9, 2.2}
@ -137,7 +121,8 @@ data:extend({
offset = {-1.2, -2}
}
},
resistances = {
resistances =
{
{
type = "fire",
percent = 100
@ -154,10 +139,7 @@ data:extend({
placeable_by = {item = "bi-rail-wood", count = 2},
walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0,
factoriopedia_alternative = "straight-rail",
-- for upgrade planer (fast rail change wood/iron)
next_upgrade = "half-diagonal-rail",
fast_replaceable_group = "half-diagonal-rail",
factoriopedia_alternative = "straight-rail"
},
{
type = "curved-rail-a",
@ -171,7 +153,8 @@ data:extend({
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 3},
max_health = 200,
corpse = "curved-rail-a-remnants",
dying_explosion = {
dying_explosion =
{
{
name = "rail-explosion",
offset = {0.9, 2.2}
@ -184,7 +167,8 @@ data:extend({
offset = {-1.2, -2}
}
},
resistances = {
resistances =
{
{
type = "fire",
percent = 100
@ -202,10 +186,7 @@ data:extend({
walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0.5,
deconstruction_marker_positions = rail_8shifts_vector(-0.248, -0.533),
factoriopedia_alternative = "straight-rail",
-- for upgrade planer (fast rail change wood/iron)
next_upgrade = "curved-rail-a",
fast_replaceable_group = "curved-rail-a",
factoriopedia_alternative = "straight-rail"
},
{
type = "curved-rail-b",
@ -219,7 +200,8 @@ data:extend({
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 3},
max_health = 200,
corpse = "curved-rail-b-remnants",
dying_explosion = {
dying_explosion =
{
{
name = "rail-explosion",
offset = {0.9, 2.2}
@ -232,7 +214,8 @@ data:extend({
offset = {-1.2, -2}
}
},
resistances = {
resistances =
{
{
type = "fire",
percent = 100
@ -250,9 +233,11 @@ data:extend({
walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0.5,
deconstruction_marker_positions = rail_8shifts_vector(-0.309, -0.155),
factoriopedia_alternative = "straight-rail",
-- for upgrade planer (fast rail change wood/iron)
next_upgrade = "curved-rail-b",
fast_replaceable_group = "curved-rail-b",
factoriopedia_alternative = "straight-rail"
},
})
end