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",
"version": "1.0.72",
"title": "Lignumis",
"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.",
"version": "1.1.0",
"title": "Lignumis - Base",
"description": "Base mod for Lignumis with less dependencies.\nUse the standalone mod for regular games.",
"author": "cackling fiend",
"homepage": "https://discord.gg/ufvFUJtVwk",
"factorio_version": "2.0",
@ -10,11 +10,9 @@
"dependencies": [
"base",
"space-age >= 2.0.53",
"astroponics >= 1.2.0",
"bioprocessing-tab",
"cf-lib >= 0.0.13",
"flib",
"gleba-water-cane",
"lignumis-assets >= 1.0.3",
"mf-buildings >= 1.0.7",
"mf-core >= 1.0.3",
@ -22,7 +20,6 @@
"PlanetsLib >= 1.1.26",
"pollution-as-surface-property",
"Wood-Walls >= 1.2.0",
"vulcanus-sulfuric-bacteria",
"?aai-industry",
"?aai-loaders",
"?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")
if not storage.rocket_silos then
storage.rocket_silos = {}
end
if not game.planets["lignumis"] or not game.planets["lignumis"].surface then return end
local lignumis = game.planets["lignumis"].surface
for _, silo in pairs(lignumis.find_entities_filtered { name = "provisional-rocket-silo" }) do
local found = false
for _, entry in pairs(storage.rocket_silos) do
if type(entry) == "table" and entry.real_silo == silo then
found = true
break
end
end
if not found then
RocketSilo.events[defines.events.on_script_trigger_effect]({
effect_id = "provisional-rocket-ready",
surface_index = lignumis.index,
cause_entity = silo
})
end
end
local RocketSilo = require("scripts/wooden-rocket-silo")
if not storage.rocket_silos then
storage.rocket_silos = {}
end
if not game.planets["lignumis"] or not game.planets["lignumis"].surface then return end
local lignumis = game.planets["lignumis"].surface
for _, silo in pairs(lignumis.find_entities_filtered { name = "provisional-rocket-silo" }) do
local found = false
for _, entry in pairs(storage.rocket_silos) do
if type(entry) == "table" and entry.real_silo == silo then
found = true
break
end
end
if not found then
RocketSilo.events[defines.events.on_script_trigger_effect]({
effect_id = "provisional-rocket-ready",
surface_index = lignumis.index,
cause_entity = silo
})
end
end

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
if not mods["astroponics"] then return end
local Technology = require("__cf-lib__/data/Technology")
-- 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 base_levels = {

View file

@ -1,11 +1,11 @@
if not mods["wood-military"] then
return
end
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-damage-buff"].default_value = false
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-nerf-start"].hidden = true
if not mods["wood-military"] then
return
end
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-damage-buff"].default_value = false
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-nerf-start"].hidden = true
data.raw["bool-setting"]["wood-military-nerf-start"].forced_value = true