From 43fac63b021bfc667ad4f0a629a8210c08415bd0 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 10 Jan 2026 21:37:35 +0100 Subject: [PATCH] Add tips and tricks pages --- lignumis/data.lua | 3 +- lignumis/locale/en/strings.cfg | 12 ++ .../{ => prototypes}/menu-simulations.lua | 0 lignumis/prototypes/tips-and-tricks.lua | 134 ++++++++++++++++++ 4 files changed, 148 insertions(+), 1 deletion(-) rename lignumis/{ => prototypes}/menu-simulations.lua (100%) create mode 100644 lignumis/prototypes/tips-and-tricks.lua diff --git a/lignumis/data.lua b/lignumis/data.lua index eca0755..443e436 100644 --- a/lignumis/data.lua +++ b/lignumis/data.lua @@ -39,7 +39,8 @@ end require("__cf-lib__/util") require("logo") -require("menu-simulations") +require("prototypes/menu-simulations") +require("prototypes/tips-and-tricks") require("prototypes/content/data") require("prototypes/integrations/data") require("prototypes/compatibility/data") \ No newline at end of file diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index b0940aa..88a527c 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -243,3 +243,15 @@ provisional-rocket-silo-button=Escape to __1__ provisional-rocket-silo-button-tooltip-inventory=Your personal inventory must be empty! provisional-rocket-silo-button-tooltip-target=You don't know yet where to go! provisional-rocket-silo-description=Fill the rocket inventory and launch the rocket to escape to __1__.\nBe sure to take material to jumpstart your iron, copper and wood production. + +[tips-and-tricks-item-name] +lignumis-briefing=Lignumis briefing +lignumis-burner-agriculture=Burner agriculture +lignumis-noise=Noise pollution +lignumis-escaping=Escaping Lignumis + +[tips-and-tricks-item-description] +lignumis-briefing=[planet=lignumis] is a moon of [planet=nauvis] that you must escape to in order to get access to more advanced technologies. The main resources are [item=wood], [item=gold-ore], [item=peat] and [item=stone]. The moon is lacking iron and copper and therefore your possibilities are very limited with the seemingly not so valuable [item=gold-ore] as the only available metal. Electricity is something not discovered until after you escaped.\n\n[img=utility/warning_icon] Lignumis has some impact on the rest of the game. Have a look at the mod settings to change them to match your taste. Or install the Director's Cut from the mod portal for the full experience. +lignumis-burner-agriculture=Feeding agricultural towers both with seeds and fuel requires trickier solutions compared to the more advanced electrical counterpart. Due to an engine limitation, inserters will keep grabbing seeds while ignoring the fuel if it is on the wrong side of the belt. Use circuits or multiple inserters to prevent these kinds of problems altogether. +lignumis-noise=The natives on [planet=lignumis] are sensitive to [img=airborne-pollutant/noise] loud noises. Anything mechanical created by you is potentially quite loud. Keep your base small and add walls to keep the noise inside.\nSome tools to reduce noise levels: [img=item/wooden-wall] walls, [img=entity/tree-01] trees, [img=item/efficiency-module] efficiency modules, [item=active-noise-cancelling-tower]. +lignumis-escaping=The [entity=provisional-rocket-silo] allows you to take a generous inventory with you. Pack mostly infrastructure items to have a quick start on Nauvis. Leave fuel, gold and science packs behind. \ No newline at end of file diff --git a/lignumis/menu-simulations.lua b/lignumis/prototypes/menu-simulations.lua similarity index 100% rename from lignumis/menu-simulations.lua rename to lignumis/prototypes/menu-simulations.lua diff --git a/lignumis/prototypes/tips-and-tricks.lua b/lignumis/prototypes/tips-and-tricks.lua new file mode 100644 index 0000000..9276ee3 --- /dev/null +++ b/lignumis/prototypes/tips-and-tricks.lua @@ -0,0 +1,134 @@ +data:extend({ + { + type = "tips-and-tricks-item", + name = "lignumis-briefing", + tag = "[planet=lignumis]", + category = "space-age", + order = "0-[lignumis]-a", + trigger = { + type = "research", + technology = "wood-science-pack" + }, + skip_trigger = { + type = "research", + technology = "automation-science-pack" + }, + simulation = { + checkboard = false, + planet = "lignumis", + save = "__lignumis-assets__/menu-simulations/lignumis1.zip", + length = 60 * 20, + game_view_settings = { default_show_value = false }, + init = [[ + game.simulation.camera_surface_index = game.surfaces["lignumis"].index + game.simulation.camera_position = {-6, 2} + game.simulation.camera_zoom = 0.75 + game.tick_paused = false + game.surfaces["lignumis"].daytime = 0.3 + game.players[1].game_view_settings.show_controller_gui = false + game.players[1].game_view_settings.show_quickbar = false + game.players[1].game_view_settings.show_shortcut_bar = false + ]] + } + }, + { + type = "tips-and-tricks-item", + name = "lignumis-burner-agriculture", + tag = "[item=burner-agricultural-tower]", + category = "space-age", + order = "0-[lignumis]-b", + indent = 1, + trigger = { + type = "research", + technology = "tree-seeding" + }, + skip_trigger = { + type = "research", + technology = "automation-science-pack" + }, + simulation = { + planet = "lignumis", + game_view_settings = { default_show_value = false }, + init_update_count = 300, + length = 600, + init = [[ + game.simulation.camera_position = {0, 0.5} + game.simulation.camera_alt_info = true + game.surfaces[1].create_entities_from_blueprint_string + { + string = "0eNrFl91u4jAQhd/F104VOwQI0j5JhSKTTKm1iZ11bFiE8u47ToBSmrL5WWmvKHE838zxzDE9k13hoDJSWbI5E5lpVZPN65nUcq9E4Z8pUQLZkJ0zCkwg9kZmrrDOiCKw+giGNJRIlcNvsmEN7dl51DoPHL5h9kbjZ7CDwt7t4s2WElBWWgkdvP1ySpUrdxh/w+jzUJRUusbdWnkqRgz46iWm5OT/WrzEiMqlgax7g3FK7Kny4aSqnM/kC5F/JlojVF1pY7/lLZ/xegDR+JLiQSVpZ7+paTEeyeapGI9VMRyp4nJ0SSyZqeLqhpTqTSpcCrJ3qHtZiwfWdUdag7VS7Wv/poFSHyB1uFZYMJCn0kKJS2+iqIGS7nE3FxdyBcLzMiwUp5aFISWlzv2KsEEBos3mNpLbpqeM9ZyR4lOaIZk+UnxQM7BwOiFCQl9INmdM+aQGYx/ec7FcqWow2APPadEjbdEXPKJ/9/MeTPSAwWvCGl2kO3gXB6lN18giT/0CMrFdrXHQq+ksH5rUeuzBiOqqkPYbQT8sKBrSc8sxh8WeHFa/ppk0mZPWG0Z6M4JW2c/GcB32WzbWAAQ1QI55/HIC60UuUdqUeDV7VlkJI6ynkB/EX8BduPRiJLtCZD8L2TqJq+ER/lWI1Rwrnjgp6xHi35lxJ/5T+S4OO0y5QfqMtb+7fIfZHw/Hn0A8b644m3YA7BG2/ufdPORMOJ90l4f/8S6n5z5Jbpuf7OX+dwAKc0TVfQKveBUwiv7FtvjUp9lO/fV/AUoOmGgrQLzkySJJ4jWLkiRcNM0f5XQGsA==", + position = {0, 2} + } + for x = -11, 10, 1 do + for y = -5, 6 do + game.surfaces[1].set_tiles{{position = {x, y}, name = "grass-1"}} + end + end + ]] + } + }, + { + type = "tips-and-tricks-item", + name = "lignumis-noise", + tag = "[img=airborne-pollutant/noise]", + category = "space-age", + order = "0-[lignumis]-c", + indent = 1, + trigger = { + type = "build-entity", + entity = "burner-assembling-machine" + }, + skip_trigger = { + type = "research", + technology = "automation-science-pack" + }, + simulation = { + planet = "lignumis", + game_view_settings = { default_show_value = false }, + length = 600, + init = [[ + game.simulation.camera_position = {0, 0.5} + game.simulation.camera_zoom = 1.2 + game.simulation.camera_alt_info = true + game.surfaces[1].create_entities_from_blueprint_string + { + string = "0eNq1md1u4jAQhd/F16SKHefHvMqqqtLgVlaDzSaBLqp49w1FXXYrTuyzVSVuAPvLjOeMsQ9v4rHf293g/CTWb8J1wY9i/eNNjO7Zt/35M99urViL3RAObnRh/jQbQvdip2x0fRCnlXB+Y3+JtTytbsy7PVad7lfC+slNzl4e+P7m+OD320c7zLDVB+A1hI312Wvb92IldmGc5wR/fsKZk9+VK3EU6+KuPJ2f/wmjEjFyGVMkYtQyRidiimVMmYjRy5gqEVMuY+pETLWMaRIx9TLGJGKaZYzMEzkmwknUcRHRsUwUchERskxUchFRsrxKeZyCtwgT0Y4s0zCRossqDRORoKzTMLGaN2mYmARNEkZHKq7yNExsI5VpmMjWpVQaJiI/VaRhIvJTaSrWkY1UpalYR1Ss0lSsIypWNfnTWQJOQ3I04BhyywHxFDnJAfEUktu6EEZxGJTVVcltN7mDzXxwo8261ne2751/zqbwOo/Eu9k5wJUYbOd2CxjxMeTh577t5xDmoT4M2/mwdisszUkaLRLZGWiRqv9dJP2ti8R2Wg3SYzutAhy200A8mu00EI8mOw1hyE5DWRWcFlE0ZGegaEqy5gZwKpLTAM5Vy+imh4/05t/mugHYtcPENZduSBGiBWKbAixQmXMqRBiyJ0BW5bUnFkv053T4qURpZZmv65PdXu7nbvPXpd4+PbnOWd8ds23Y7HubqffL/WX0PNg/OH+YYw7D8TL7+m7un3Fquxexzs+J3fxGnu5P8+tG3mQToyqQTYyqwDaxlADEdrHMAagm1Q4jYtsPRmQ4wSNORfYfSqySXOlhPIrkoHgKtvTIztEsSAFQyZYeRVSxIBRRTdYecRqSgxIzZO1BPHVOcpAFx7qlEhy0a9YvhSBa1eAGUWvSeoURlaT5CkFXVT+HfpPt5p/O+fqRPQ9h7zcLNixMsSb9XBhZQzq6EGRITxeBmpx0dSFIkr4uBCnS2IWggnR2IUiT1i4E0fs2AtH7NlB2w+7biMPu2ygxw9nNiGPyL5s28jsMCSM5HxzmpzgjHHIKzgmHHM1Z4ZBTcl445FScGQ45NeeGQ07D2eGQYzg/HHFkzh5sNAKxp3UYkfqyhfgtLSvzgnP9LxneXy7b86Tr//crcbDD+D6lrJTRxpSNLIzJ9en0GwbKTP8=", + position = {0, 0} + } + ]] + } + }, + { + type = "tips-and-tricks-item", + name = "lignumis-escaping", + tag = "[item=provisional-rocket-silo]", + category = "space-age", + order = "0-[lignumis]-d", + indent = 1, + trigger = { + type = "build-entity", + entity = "provisional-rocket-silo" + }, + skip_trigger = { + type = "research", + technology = "automation-science-pack" + }, + simulation = { + planet = "lignumis", + game_view_settings = { default_show_value = false }, + init_update_count = 1500, + length = 600, + init = [[ + game.simulation.camera_position = {0, 0.5} + game.simulation.camera_zoom = 1.5 + local silo = game.surfaces[1].create_entity{name = "provisional-rocket-silo", position = {-1, 1}} + silo.get_fuel_inventory().insert({ name = "peat", count = 50 }) + silo.rocket_parts = 50 + ]], + update = [[ + local silo = game.surfaces[1].find_entity("provisional-rocket-silo", {-1, 1}) + silo.launch_rocket() + ]] + } + } +}) \ No newline at end of file