Split mod

This commit is contained in:
Simon Brodtmann 2025-11-11 23:58:49 +01:00
parent 9d94502296
commit d898dde803
11 changed files with 771 additions and 754 deletions

View file

@ -0,0 +1,16 @@
{
"name": "lignumis",
"version": "1.1.0",
"title": "Lignumis - Standalone",
"description": "Dive into the world of Lignumis, a moon of Nauvis offering only the most basic technologies.\n\nThis planet mod effects other planets and space ships. Make sure to read the description on the mod portal and check the mod settings.",
"author": "cackling fiend",
"homepage": "https://discord.gg/ufvFUJtVwk",
"factorio_version": "2.0",
"space_travel_required": true,
"dependencies": [
"lignumis-base",
"astroponics >= 1.2.0",
"gleba-water-cane",
"vulcanus-sulfuric-bacteria"
]
}

View file

@ -1,8 +1,8 @@
{ {
"name": "lignumis", "name": "lignumis",
"version": "1.0.72", "version": "1.1.0",
"title": "Lignumis", "title": "Lignumis - Base",
"description": "Dive into the world of Lignumis, a moon of Nauvis offering only the most basic technologies.\n\nThis planet mod effects other planets and space ships. Make sure to read the description on the mod portal and check the mod settings.", "description": "Base mod for Lignumis with less dependencies.\nUse the standalone mod for regular games.",
"author": "cackling fiend", "author": "cackling fiend",
"homepage": "https://discord.gg/ufvFUJtVwk", "homepage": "https://discord.gg/ufvFUJtVwk",
"factorio_version": "2.0", "factorio_version": "2.0",
@ -10,11 +10,9 @@
"dependencies": [ "dependencies": [
"base", "base",
"space-age >= 2.0.53", "space-age >= 2.0.53",
"astroponics >= 1.2.0",
"bioprocessing-tab", "bioprocessing-tab",
"cf-lib >= 0.0.13", "cf-lib >= 0.0.13",
"flib", "flib",
"gleba-water-cane",
"lignumis-assets >= 1.0.3", "lignumis-assets >= 1.0.3",
"mf-buildings >= 1.0.7", "mf-buildings >= 1.0.7",
"mf-core >= 1.0.3", "mf-core >= 1.0.3",
@ -22,7 +20,6 @@
"PlanetsLib >= 1.1.26", "PlanetsLib >= 1.1.26",
"pollution-as-surface-property", "pollution-as-surface-property",
"Wood-Walls >= 1.2.0", "Wood-Walls >= 1.2.0",
"vulcanus-sulfuric-bacteria",
"?aai-industry", "?aai-industry",
"?aai-loaders", "?aai-loaders",
"?aai-loaders-sane", "?aai-loaders-sane",

File diff suppressed because it is too large Load diff

View file

@ -1,26 +1,26 @@
local RocketSilo = require("scripts/wooden-rocket-silo") local RocketSilo = require("scripts/wooden-rocket-silo")
if not storage.rocket_silos then if not storage.rocket_silos then
storage.rocket_silos = {} storage.rocket_silos = {}
end end
if not game.planets["lignumis"] or not game.planets["lignumis"].surface then return end if not game.planets["lignumis"] or not game.planets["lignumis"].surface then return end
local lignumis = game.planets["lignumis"].surface local lignumis = game.planets["lignumis"].surface
for _, silo in pairs(lignumis.find_entities_filtered { name = "provisional-rocket-silo" }) do for _, silo in pairs(lignumis.find_entities_filtered { name = "provisional-rocket-silo" }) do
local found = false local found = false
for _, entry in pairs(storage.rocket_silos) do for _, entry in pairs(storage.rocket_silos) do
if type(entry) == "table" and entry.real_silo == silo then if type(entry) == "table" and entry.real_silo == silo then
found = true found = true
break break
end end
end end
if not found then if not found then
RocketSilo.events[defines.events.on_script_trigger_effect]({ RocketSilo.events[defines.events.on_script_trigger_effect]({
effect_id = "provisional-rocket-ready", effect_id = "provisional-rocket-ready",
surface_index = lignumis.index, surface_index = lignumis.index,
cause_entity = silo cause_entity = silo
}) })
end end
end end

View file

@ -1,23 +1,23 @@
local sounds = require("__base__.prototypes.entity.sounds") local sounds = require("__base__.prototypes.entity.sounds")
data:extend({ data:extend({
{ {
name = "gold-rock-cluster", name = "gold-rock-cluster",
type = "optimized-decorative", type = "optimized-decorative",
order = "a[lignumis]-a[decorative]-a[gold-rock-clusters]", order = "a[lignumis]-a[decorative]-a[gold-rock-clusters]",
collision_box = { { -1, -1 }, { 1, 1 } }, collision_box = { { -1, -1 }, { 1, 1 } },
collision_mask = { layers = { water_tile = true, doodad = true }, colliding_with_tiles_only = true }, collision_mask = { layers = { water_tile = true, doodad = true }, colliding_with_tiles_only = true },
render_layer = "decorative", render_layer = "decorative",
walking_sound = sounds.sand, walking_sound = sounds.sand,
autoplace = { autoplace = {
order = "d[ground-surface]-b[sulfur-rock]-b[cluster]", order = "d[ground-surface]-b[sulfur-rock]-b[cluster]",
placement_density = 1, placement_density = 1,
probability_expression = probability_expression =
"basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 3000000, input_scale = 1/8, output_scale = 1/4}", "basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 3000000, input_scale = 1/8, output_scale = 1/4}",
tile_restriction = { "natural-gold-soil" } tile_restriction = { "natural-gold-soil" }
}, },
pictures = get_decal_pictures( pictures = get_decal_pictures(
"__space-age__/graphics/decorative/tiny-volcanic-rock-cluster/tiny-volcanic-rock-cluster-", "", 128, 8, "__space-age__/graphics/decorative/tiny-volcanic-rock-cluster/tiny-volcanic-rock-cluster-", "", 128, 8,
{ 0.788, 0.627, 0.167 }, true) { 0.788, 0.627, 0.167 }, true)
} }
}) })

View file

@ -1,7 +1,7 @@
-- Override science packs in final fixes in the case other mods add their science packs to all labs in a generic way -- Override science packs in final fixes in the case other mods add their science packs to all labs in a generic way
data.raw.lab["wood-lab"].inputs = { data.raw.lab["wood-lab"].inputs = {
"wood-science-pack", "wood-science-pack",
"steam-science-pack", "steam-science-pack",
"automation-science-pack", "automation-science-pack",
"logistic-science-pack" "logistic-science-pack"
} }

View file

@ -1,6 +1,6 @@
data:extend({ data:extend({
{ {
type = "fuel-category", type = "fuel-category",
name = "wood" name = "wood"
} }
}) })

View file

@ -1,5 +1,5 @@
require("gold/stromatolite") require("gold/stromatolite")
require("gold/tiles") require("gold/tiles")
require("gold/resource") require("gold/resource")
require("gold/intermediates") require("gold/intermediates")
require("gold/pipes") require("gold/pipes")

View file

@ -1,3 +1,5 @@
if not mods["astroponics"] then return end
local Technology = require("__cf-lib__/data/Technology") local Technology = require("__cf-lib__/data/Technology")
-- This just undoes what astroponics changes to tree seeding -- This just undoes what astroponics changes to tree seeding

View file

@ -1,3 +1,5 @@
if not mods["astroponics"] then return end
local infinite = settings.startup["lignumis-infinite-astroponics-productivity-research"].value local infinite = settings.startup["lignumis-infinite-astroponics-productivity-research"].value
local base_levels = { local base_levels = {

View file

@ -1,11 +1,11 @@
if not mods["wood-military"] then if not mods["wood-military"] then
return return
end end
data.raw["bool-setting"]["wood-military-rockets"].default_value = false data.raw["bool-setting"]["wood-military-rockets"].default_value = false
data.raw["bool-setting"]["wood-military-artillery"].default_value = false data.raw["bool-setting"]["wood-military-artillery"].default_value = false
data.raw["bool-setting"]["wood-military-damage-buff"].default_value = false data.raw["bool-setting"]["wood-military-damage-buff"].default_value = false
data.raw["bool-setting"]["wood-military-armor"].hidden = true data.raw["bool-setting"]["wood-military-armor"].hidden = true
data.raw["bool-setting"]["wood-military-armor"].forced_value = true data.raw["bool-setting"]["wood-military-armor"].forced_value = true
data.raw["bool-setting"]["wood-military-nerf-start"].hidden = true data.raw["bool-setting"]["wood-military-nerf-start"].hidden = true
data.raw["bool-setting"]["wood-military-nerf-start"].forced_value = true data.raw["bool-setting"]["wood-military-nerf-start"].forced_value = true