Compare commits
No commits in common. "1d3664a29dc1562a92d9e42e589950e8cc9da57c" and "bc1672d0e398bc430979576049c9d3079b79e087" have entirely different histories.
1d3664a29d
...
bc1672d0e3
133
README.md
|
@ -2,107 +2,50 @@ This mod extends the early game of Space Age by putting you on the moon "Lignumi
|
|||
|
||||
The duration of the stay on Lignumis will be rather short. The impact of the later game will still be substantial (once implemented).
|
||||
|
||||
## Alpha version
|
||||
|
||||
This is a very early version of the mod. It contains the complete idea of the moon from beginning to end but still needs a lot of features and polishing. Also end-game content and a reason to come back are still missing but are planned.
|
||||
|
||||
To not hinder development, I will not be considerate about breaking changes until I switch the status to "Beta".
|
||||
|
||||
If you like to contribute in any way, feel free to contact me.
|
||||
|
||||
## Mod recommendations
|
||||
|
||||
The following mods can be a great addition for this mod:
|
||||
|
||||
#### [Burner Leech Fork](https://mods.factorio.com/mod/Burner-Leech-Fork)
|
||||
|
||||
There will be fewer inserters that need to be fueled manually.
|
||||
|
||||
#### [Hot metals](https://mods.factorio.com/mod/hot-metals)
|
||||
|
||||
If you like the idea that metals need to cool down after being smolten in a furnace, Lignumis gold has support for hot metals.
|
||||
|
||||
#### [Wooden Military](https://mods.factorio.com/mod/wood-military)
|
||||
|
||||
If you want more of it than Lignumis offers, add this mod. It adds ammo for shotguns and there are settings for rockets and artillery shells.
|
||||
|
||||
#### [Wooden Industry](https://mods.factorio.com/mod/wood-industry)
|
||||
|
||||
If you like go more into the charcoal direction. It has no overlap with Lignumis and starts to get relevant on Nauvis.
|
||||
|
||||
#### [Fulgora: Coralmium Agriculture](https://mods.factorio.com/mod/fulgora-coralmium-agriculture) and [Wooden Vulcanus: Sulfuric Bacteria](https://mods.factorio.com/mod/vulcanus-sulfuric-bacteria)
|
||||
|
||||
For wood on the other planets.
|
||||
|
||||
## Compatibility with other planet mods
|
||||
|
||||
The following planet mods are tested for (at least technical) compatibility:
|
||||
|
||||
- [Castra](https://mods.factorio.com/mod/castra)
|
||||
- [Cerys](https://mods.factorio.com/mod/Cerys-Moon-of-Fulgora)
|
||||
- [Corrundum](https://mods.factorio.com/mod/corrundum)
|
||||
- [Janus](https://mods.factorio.com/mod/janus)
|
||||
- [Maraxsis](https://mods.factorio.com/mod/maraxsis)
|
||||
- [Muluna](https://mods.factorio.com/mod/planet-muluna)
|
||||
- [Terra Palus](https://mods.factorio.com/mod/terrapalus)
|
||||
- [Secretas & Frozeta](https://mods.factorio.com/mod/secretas)
|
||||
|
||||
## Add compatibility to your mod
|
||||
|
||||
Lignumis, by default, adds wood and steam science packs during `data-updates.lua` to all technologies that match certain criteria.
|
||||
First it looks at a whitelist of science packs. If a technology has any of those, it is considered a candidate for adding the science packs.
|
||||
Then a blacklist for science packs and specific technology names is applied.
|
||||
|
||||
Also, Lignumis adds wood and steam science packs during `data-updates.lua` to all labs' inputs. If your lab is special use the `lab_blacklist` described below.
|
||||
|
||||
These lists are made available in `data.lua` in a global table called `Lignumis` to add compatibility for other mods.
|
||||
|
||||
#### `science_pack_whitelist`
|
||||
|
||||
A technology having any of these science packs as ingredient will get wood and steam science packs added.
|
||||
|
||||
As wood science packs can't be imported before coming back to Lignumis, only advanced Nauvis science packs are added here and exceptions are needed for advanced technologies that are required to upgrade Lignumis to export science packs.
|
||||
|
||||
#### `science_pack_blacklist`
|
||||
|
||||
A technology is skipped if it has any of these as ingredient.
|
||||
|
||||
If you have a planet that only uses its own science packs and must not rely on other science packs to be imported, add your science packs to the blacklist.
|
||||
|
||||
#### `science_blacklist`
|
||||
|
||||
These technologies are skipped even if they are matches according to above lists.
|
||||
|
||||
Use this list if you want to have wood and steam science packs added to most of your technologies, but skip some.
|
||||
Lignumis uses this list for technologies that match the whitelist but are required for coming back to Lignumis in order to create the science pack export.
|
||||
|
||||
#### `lab_blacklist`
|
||||
|
||||
Don't touch inputs for labs in this list.
|
||||
|
||||
Lignumis adds wood and steam science packs to all labs' inputs in `data-updates.lua` so modded labs will support them.
|
||||
If your modded lab is special and it should not support these science packs, use this list or set the inputs in `data-final-fixes.lua`.
|
||||
- [Burner Leech Fork](https://mods.factorio.com/mod/Burner-Leech-Fork)
|
||||
|
||||
## Todo
|
||||
|
||||
- Fix pipe graphics on desiccation furnace and quality assembler
|
||||
- Trees must not die when absorbing noise
|
||||
- https://lua-api.factorio.com/latest/types/TreeVariation.html
|
||||
- Improve transition to Nauvis a bit more
|
||||
- Add late-game recipe for oil from wood pulp
|
||||
- Replace usage of gold cable with basic circuits made of wood and gold cable, add option for progressive circuit recipes and add recipe prod research
|
||||
Sorted by priority
|
||||
|
||||
- Adjust rocket parts recipe
|
||||
- Add end-game stuff
|
||||
- Guarantee spawn of gold in starting area
|
||||
- Fix pipe graphics on desiccation furnace
|
||||
- Change color of gold soil
|
||||
- Ban huge rocks with coal from Nauvis
|
||||
- Increase default moisture bias
|
||||
- Create proper experience for the transition to Nauvis with a custom UI with launch button (and don't allow taking your inventory)
|
||||
|
||||
Unsorted
|
||||
|
||||
- Integrate [PlanetsLib](https://mods.factorio.com/mod/PlanetsLib)
|
||||
- Compatibility with all wood mods from SafTheLamb
|
||||
- Compatibility with [Amator Phasma's Coal & Steam (forked)](https://mods.factorio.com/mod/apm_power_ldinc)
|
||||
- Compatibility with [AAI Industry](https://mods.factorio.com/mod/aai-industry)
|
||||
- Compatibility with [On Wayward Seas](https://mods.factorio.com/mod/wayward-seas)
|
||||
- Compatibility with [Planet Picker](https://mods.factorio.com/mod/planet-picker)
|
||||
- Compatibility with [Visible Planets in Space](https://mods.factorio.com/mod/visible-planets)
|
||||
- Compatibility with [Noble Metals](https://mods.factorio.com/mod/bzgold) once it's updated
|
||||
- Optimize images
|
||||
- Add noise to non-Lignumis entities brought in later
|
||||
- Add deep core mining
|
||||
- Add greenhouse
|
||||
|
||||
## Credits
|
||||
|
||||
### Translations
|
||||
|
||||
- Simplified chinese (zh-CN): cyx2015s
|
||||
|
||||
### Assets
|
||||
|
||||
[Hurricane](https://mods.factorio.com/user/Hurricane046)
|
||||
|
||||
- Lumber mill
|
||||
- Deep miner
|
||||
- Quality assembler
|
||||
|
||||
[malcolmriley](https://github.com/malcolmriley/unused-renders)
|
||||
|
||||
|
@ -137,23 +80,3 @@ If your modded lab is special and it should not support these science packs, use
|
|||
[Krastorio 2 Assets](https://mods.factorio.com/mod/Krastorio2Assets)
|
||||
|
||||
- Basic radar
|
||||
|
||||
[Icons8](https://icons8.com)
|
||||
|
||||
- [Mute icon](https://icons8.com/icon/9414/no-audio)
|
||||
|
||||
[_CodeGreen](https://mods.factorio.com/user/_CodeGreen)
|
||||
|
||||
- Lignumis as starting planet inspired by [Any Planet Start](https://mods.factorio.com/mod/any-planet-start)
|
||||
|
||||
[Free Music Archive](https://freemusicarchive.org)
|
||||
|
||||
- [The Owl: telescope](https://freemusicarchive.org/music/The_Owl/Fairy_Forest/the_owl_-_fairy_forest_-_04_the_owl_-_telescope/) (CC BY-NC-ND)
|
||||
- [malictusmusic: Forest Heartbeat](https://freemusicarchive.org/music/malictusmusic/free-cinematic-goodies/forest-heartbeat/) (CC BY)
|
||||
- [Meydän: Surreal Forest](https://freemusicarchive.org/music/Meydan/Havor/4-_Surreal_Forest_1541/) (CC BY)
|
||||
- [HoliznaCC0: Dark Forest](https://freemusicarchive.org/music/holiznacc0/retro-gamer-soundtrack/dark-forest/) (CC0)
|
||||
- [Aaron Mist: Burning Forest](https://freemusicarchive.org/music/Aaron_Mist/Unnecessary_City/Aaron_Mist_-_Unnecessary_City_-_04_Burning_Forest/) (CC BY-NC)
|
||||
|
||||
[Pixabay](https://pixabay.com)
|
||||
|
||||
- [AudioPapkin: Forest ambience](https://pixabay.com/sound-effects/forest-ambience-296528/)
|
|
@ -1,230 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.13
|
||||
Date: 13.02.2025
|
||||
Changes:
|
||||
- Correct some icon orders
|
||||
- Locomotives can burn wood again
|
||||
- Reduce energy usage of active noise cancelling tower
|
||||
- Nerf deep miner (halves the speed)
|
||||
- Remove temporary fix for wooden walls
|
||||
- Change asteroid chunk ratio for Lignumis to not wait ages for ice
|
||||
- Add molten gold processing for the foundry
|
||||
- Reduce peat from gold
|
||||
- Add Lignumis recipes to Space Age recipe productivity technologies
|
||||
Breaking Changes:
|
||||
- LDS uses lumber instead of raw wood
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.12
|
||||
Date: 08.02.2025
|
||||
Changes:
|
||||
- Add HD starmap icon
|
||||
- Reduce file size of audio
|
||||
- Deep miner doesn't require production science pack
|
||||
Bug Fixes:
|
||||
- Fix crafting category of speed module 3
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.11
|
||||
Date: 05.02.2025
|
||||
Bug Fixes:
|
||||
- The player can now craft generated quality crafting categories
|
||||
- Fix crash site being created for every player in multiplayer
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.10
|
||||
Date: 05.02.2025
|
||||
Changes:
|
||||
- Balance trees (you should have the feeling that the whole planet is a forest)
|
||||
- Add ambient sound and music
|
||||
Bug Fixes:
|
||||
- Fix gold stromatolite seeds not plantable on Lignumis
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.9
|
||||
Date: 05.02.2025
|
||||
Bug Fixes:
|
||||
- Fix agricultural towers not buildable on Lignumis
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.8
|
||||
Date: 04.02.2025
|
||||
Bug Fixes:
|
||||
- Fix crash due to error `attempt to get length of local 'woodResults' (a nil value)`
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.7
|
||||
Date: 04.02.2025
|
||||
Changes:
|
||||
- Add "○" to the mod name so it is easily recognized as a planet mod
|
||||
- Set default import locations for repair packs
|
||||
- Use mod "Pollution as surface property"
|
||||
- Apply setting for progressive belt recipes to lab
|
||||
- Unlock basic Nauvis technologies when adding the mod to an existing game
|
||||
Bug Fixes:
|
||||
- Fix nutrients-from-wood-pulp not being craftable
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.6
|
||||
Date: 02.02.2025
|
||||
Bug Fixes:
|
||||
- Only regular Nauvis trees are buffed
|
||||
- Disable recycling for alternative recipes
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.5
|
||||
Date: 27.01.2025
|
||||
Changes:
|
||||
- Move requester chest to logistic robotics
|
||||
Bug Fixes:
|
||||
- Temporary fix for crash due to "Wood Walls and floors" (https://mods.factorio.com/mod/Wood-Walls/discussion/679915cbb8bf3c84c65db404)
|
||||
- Fix error in migration code when Lignumis surface does not exist yet
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.4
|
||||
Date: 27.01.2025
|
||||
Changes:
|
||||
- Buff Lignumis military (and Vanilla gun turret as incentive to upgrade)
|
||||
Bug Fixes:
|
||||
- Make pipe code more robust (https://github.com/SimonBrodtmann/lignumis/issues/5)
|
||||
- Fix error in migration code when Lignumis surface does not exist yet
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.3
|
||||
Date: 26.01.2025
|
||||
Bug Fixes:
|
||||
- Fix error when clicking a provisional rocket silo while in remote view
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.2
|
||||
Date: 26.01.2025
|
||||
Bug Fixes:
|
||||
- Fix transition to Nauvis for existing saves
|
||||
- Fix provisional rocket silo only needing 1 rocket part
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.1
|
||||
Date: 26.01.2025
|
||||
Bug Fixes:
|
||||
- Fix migration error
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.0.0
|
||||
Date: 26.01.2025
|
||||
Changes:
|
||||
- Add translations for simplified chinese (thanks cyx2015s)
|
||||
- Improve transition to Nauvis with a compound entity and a custom GUI
|
||||
- Polish custom graphics
|
||||
- Optimize graphics, drastically reducing the overall file size
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.8
|
||||
Date: 25.01.2025
|
||||
Changes:
|
||||
- Generator burner equipment can use wood as fuel
|
||||
- Reduce output inventory slots of burner agricultural tower to 3
|
||||
- Add mod support for science packs and custom labs
|
||||
- Add compatibility code for Cerys
|
||||
Bug Fixes:
|
||||
- Remove randomness from plants (thanks Atraxi; https://mods.factorio.com/mod/lignumis/discussion/67933ca99634a9d18f15f5af)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.7
|
||||
Date: 23.01.2025
|
||||
Changes:
|
||||
- Add compatibility for "Metal and Stars" (thanks Atraxi)
|
||||
- Rename "Planet discovery Lignumis" to "Moon discovery Lignumis"
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.6
|
||||
Date: 20.01.2025
|
||||
Bug Fixes:
|
||||
- Fix errors with initialization (probably)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.5
|
||||
Date: 20.01.2025
|
||||
Changes:
|
||||
- Halved energy required for lumber, halved speed of lumber mill
|
||||
- Allow bringing 40 item stacks to Nauvis (currently it's only in the tooltip)
|
||||
- Replace yellow belt with brown belt in electric lab recipe to prevent deadlock
|
||||
Bug Fixes:
|
||||
- Fix only first player being sent to Lignumis (probably)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.4
|
||||
Date: 20.01.2025
|
||||
Changes:
|
||||
- Enable music for Lignumis again
|
||||
- Lignumis buildings now have golden pipe connections
|
||||
- Prevent other mods from adding science packs to wood lab
|
||||
- Increase inventory slots of burner agricultural tower to 5
|
||||
- Gold seeds are buffed to reduce ramp-up time of gold production
|
||||
- Basic radar recipe now takes longer
|
||||
- The amount of peat from gold stromatolite remnant is reduced
|
||||
Bug Fixes:
|
||||
- Non-planted trees didn't absorb noise
|
||||
- Desiccation furnace was mined to regular furnace
|
||||
Breaking Changes:
|
||||
- The fluid input connection of the provisional rocket silo has been moved one tile to the right
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.3
|
||||
Date: 17.01.2025
|
||||
Changes:
|
||||
- Wooden military is now optional. Lignumis adds everything that is needed. You can keep it for the additional stuff.
|
||||
- Wood lab now gets its input science packs defined in data-final-fixes because it should not get additional science packs from other mods
|
||||
- Wooden industry is now supported (no code is needed for that)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.2
|
||||
Date: 15.01.2025
|
||||
Changes:
|
||||
- Reduce trees in map generation a bit
|
||||
Bug Fixes:
|
||||
- Temporarily disables music on Lignumis because PlanetsLib 1.1.25 removes the function `PlanetsLib.borrow_music`
|
||||
- Change locales for `surface-condition-too-low` and `surface-condition-too-high` to make sense for pollution surface condition
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.1
|
||||
Date: 15.01.2025
|
||||
Changes:
|
||||
- Optimized map generation
|
||||
- Changed color of natural gold soil on the map
|
||||
- Increased wood yield from peat
|
||||
- Buff the game start with a second burner mining drill and 2 burner agricultural towers
|
||||
- Add mining area visualization for the 4x4 burner mining drill
|
||||
- Now uses PlanetsLib (that also adds a nice orbit ring)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.9.0
|
||||
Date: 14.01.2025
|
||||
Changes:
|
||||
- Add recipes to Quality assembler
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.10
|
||||
Date: 13.01.2025
|
||||
Changes:
|
||||
- Add noise pollution icon
|
||||
- Add Quality assembler
|
||||
Bug Fixes:
|
||||
- Fix tree-seeding being disabled
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.9
|
||||
Date: 13.01.2025
|
||||
Changes:
|
||||
- Add Active noise cancelling tower
|
||||
- Add noise emissions to non-Lignumis entities
|
||||
- Balance noise
|
||||
Bug Fixes:
|
||||
- Reduce Space Age dependency to latest stable release instead of experimental
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.8
|
||||
Date: 12.01.2025
|
||||
Changes:
|
||||
- Add mod "Astropinics"
|
||||
- Update dependencies
|
||||
- Add mid-game items and balancing (a.k.a. coming back to Lignumis)
|
||||
- Mark known incompatible mods as such until compatibility code is added
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.7
|
||||
Date: 11.01.2025
|
||||
Changes:
|
||||
- Reactors and cars burn wood fuel
|
||||
- Unlock Lignumis via technology instead of script
|
||||
- Give deep miner a proper recipe and balance it
|
||||
- Balance basic construction robots
|
||||
Bug Fixes:
|
||||
- Fix a crash when starting Lignumis not in freeplay mode
|
||||
- Fix a crash when starting Lignumis in the editor
|
||||
- Fix some item orders
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.6
|
||||
Date: 09.01.2025
|
||||
Date: 08.01.2025
|
||||
Changes:
|
||||
- Remove temporary incompatibility with wood-logistics
|
||||
- Add basic radar
|
||||
- Balance peat resource patches
|
||||
- Increase fuel value of wood pulp
|
||||
- Balance start on Nauvis
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.5
|
||||
Date: 07.01.2025
|
||||
|
|
|
@ -1,12 +1,148 @@
|
|||
local handler = require("event_handler")
|
||||
gui = require("__flib__/gui")
|
||||
require("script/to-nauvis")
|
||||
|
||||
handler.add_libraries({
|
||||
require("scripts/init-existing"),
|
||||
require("scripts/init-new"),
|
||||
require("scripts/init"),
|
||||
require("scripts/to-nauvis"),
|
||||
require("scripts/wooden-rocket-silo")
|
||||
})
|
||||
local crash_site = require("crash-site")
|
||||
local util = require("util")
|
||||
local e = defines.events
|
||||
|
||||
local function chart_starting_area()
|
||||
local r = 200
|
||||
local force = game.forces.player
|
||||
local surface = storage.surface
|
||||
local origin = force.get_spawn_position(surface)
|
||||
force.chart(surface, { { origin.x - r, origin.y - r }, { origin.x + r, origin.y + r } })
|
||||
end
|
||||
|
||||
local function correct_space_locations()
|
||||
local force = game.forces.player
|
||||
force.unlock_space_location("lignumis")
|
||||
if not force.technologies["planet-discovery-nauvis"].researched then
|
||||
force.lock_space_location("nauvis")
|
||||
end
|
||||
end
|
||||
|
||||
script.on_init(function()
|
||||
if game.tick > 0 then
|
||||
storage.init = true
|
||||
game.print { "", { "lignumis.start-new-game" } }
|
||||
return
|
||||
end
|
||||
|
||||
if remote.interfaces.freeplay then
|
||||
storage.disable_crashsite = remote.call("freeplay", "get_disable_crashsite")
|
||||
remote.call("freeplay", "set_disable_crashsite", true)
|
||||
remote.call("freeplay", "set_skip_intro", true)
|
||||
end
|
||||
|
||||
correct_space_locations()
|
||||
|
||||
storage.surface = game.planets["lignumis"].create_surface()
|
||||
storage.surface.request_to_generate_chunks({ 0, 0 }, 3)
|
||||
storage.surface.force_generate_chunk_requests()
|
||||
end)
|
||||
|
||||
script.on_event(e.on_player_created, function(event)
|
||||
local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
|
||||
|
||||
local surface = storage.surface
|
||||
player.teleport(surface.find_non_colliding_position("character", { 0, 0 }, 0, 1) --[[@as MapPosition]], "lignumis")
|
||||
|
||||
if not storage.nauvis_visited then
|
||||
local nauvis = game.get_surface("nauvis") --[[@as LuaSurface]]
|
||||
nauvis.clear()
|
||||
end
|
||||
|
||||
if not storage.init then
|
||||
storage.init = true
|
||||
storage.crashed_ship_items = remote.call("freeplay", "get_ship_items")
|
||||
storage.crashed_debris_items = remote.call("freeplay", "get_debris_items")
|
||||
storage.crashed_ship_parts = remote.call("freeplay", "get_ship_parts")
|
||||
storage.starting_message = remote.call("freeplay", "get_custom_intro_message")
|
||||
|
||||
local ship_items = { ["wood-darts-magazine"] = 8 }
|
||||
local debris_items = { ["lumber"] = 8 }
|
||||
|
||||
surface.daytime = 0.7
|
||||
crash_site.create_crash_site(surface, { -5, -6 }, ship_items, debris_items, table.deepcopy(storage.crashed_ship_parts))
|
||||
util.remove_safe(player, storage.crashed_ship_items)
|
||||
util.remove_safe(player, storage.crashed_debris_items)
|
||||
player.get_main_inventory().sort_and_merge()
|
||||
if player.character then
|
||||
player.character.destructible = false
|
||||
end
|
||||
storage.crash_site_cutscene_active = true
|
||||
crash_site.create_cutscene(player, { -5, -4 })
|
||||
|
||||
chart_starting_area()
|
||||
end
|
||||
end)
|
||||
|
||||
script.on_event(e.on_player_changed_surface, function(event)
|
||||
local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
|
||||
if player.surface.name == "nauvis" then
|
||||
storage.nauvis_visited = true
|
||||
end
|
||||
end)
|
||||
|
||||
local get_starting_message = function()
|
||||
if storage.custom_intro_message then
|
||||
return storage.custom_intro_message
|
||||
end
|
||||
return { "msg-intro-space-age" }
|
||||
end
|
||||
|
||||
local function show_intro_message(player)
|
||||
if storage.skip_intro then
|
||||
return
|
||||
end
|
||||
|
||||
if game.is_multiplayer() then
|
||||
player.print(get_starting_message())
|
||||
else
|
||||
game.show_message_dialog { text = get_starting_message() }
|
||||
end
|
||||
end
|
||||
|
||||
script.on_event(e.on_cutscene_waypoint_reached, function(event)
|
||||
if not storage.crash_site_cutscene_active then
|
||||
return
|
||||
end
|
||||
if not crash_site.is_crash_site_cutscene(event) then
|
||||
return
|
||||
end
|
||||
|
||||
local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
|
||||
|
||||
player.exit_cutscene()
|
||||
show_intro_message(player)
|
||||
end)
|
||||
|
||||
script.on_event("crash-site-skip-cutscene", function(event)
|
||||
if not storage.crash_site_cutscene_active then
|
||||
return
|
||||
end
|
||||
if event.player_index ~= 1 then
|
||||
return
|
||||
end
|
||||
local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
|
||||
if player.controller_type == defines.controllers.cutscene then
|
||||
player.exit_cutscene()
|
||||
end
|
||||
end)
|
||||
|
||||
script.on_event(e.on_cutscene_cancelled, function(event)
|
||||
if not storage.crash_site_cutscene_active then
|
||||
return
|
||||
end
|
||||
if event.player_index ~= 1 then
|
||||
return
|
||||
end
|
||||
storage.crash_site_cutscene_active = nil
|
||||
local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
|
||||
if player.gui.screen.skip_cutscene_label then
|
||||
player.gui.screen.skip_cutscene_label.destroy()
|
||||
end
|
||||
if player.character then
|
||||
player.character.destructible = true
|
||||
end
|
||||
player.zoom = 1.5
|
||||
end)
|
|
@ -1 +0,0 @@
|
|||
require("prototypes/content/final")
|
|
@ -1,27 +1,9 @@
|
|||
Lignumis = {
|
||||
-- A technology having any of these science packs as ingredient will get wood and steam science packs added
|
||||
science_pack_whitelist = { "utility-science-pack", "production-science-pack", "space-science-pack" },
|
||||
|
||||
-- A technology is skipped if it has any of these as ingredient
|
||||
science_pack_blacklist = {
|
||||
"wood-science-pack", "steam-science-pack", -- Lignumis
|
||||
"nanite-science-pack", "quantum-science-pack", "ring-science-pack", -- Metal and Stars
|
||||
"cerys-science-pack" -- Cerys
|
||||
},
|
||||
|
||||
-- These technologies are skipped even if they are matches according to above lists
|
||||
science_blacklist = {
|
||||
"deep-miner",
|
||||
"logistic-system",
|
||||
"space-platform-thruster",
|
||||
"kovarex-enrichment-process",
|
||||
"astroponics"
|
||||
},
|
||||
|
||||
-- Add wood and steam science packs to all labs' inputs except these
|
||||
lab_blacklist = {
|
||||
"wood-lab", -- Lignumis
|
||||
"cerys-lab" -- Cerys
|
||||
"kovarex-enrichment-process"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 233 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 234 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 411 KiB |
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 528 KiB |
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 551 KiB |
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 599 KiB |
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 571 KiB |
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 856 KiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-base.png
Normal file
After Width: | Height: | Size: 3.8 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-1-1.png
Normal file
After Width: | Height: | Size: 2.8 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-1-2.png
Normal file
After Width: | Height: | Size: 2.8 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-10.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-3.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-4.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-5-1.png
Normal file
After Width: | Height: | Size: 4.3 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-5-2.png
Normal file
After Width: | Height: | Size: 4.3 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-5.png
Normal file
After Width: | Height: | Size: 4.3 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-6.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-7-1.png
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-7-2.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-7.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-8.png
Normal file
After Width: | Height: | Size: 389 KiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-crane-9.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
lignumis/graphics/entity/burner-agricultural-tower-remnants.png
Normal file
After Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 1 MiB |
Before Width: | Height: | Size: 792 KiB |
Before Width: | Height: | Size: 793 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 456 KiB |
Before Width: | Height: | Size: 469 KiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 460 KiB |
Before Width: | Height: | Size: 837 KiB |
Before Width: | Height: | Size: 839 KiB |
Before Width: | Height: | Size: 832 KiB |
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 33 KiB |
BIN
lignumis/graphics/entity/burner-assembling-machine-remnants.png
Normal file
After Width: | Height: | Size: 244 KiB |
BIN
lignumis/graphics/entity/burner-assembling-machine.png
Normal file
After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 520 KiB |
BIN
lignumis/graphics/entity/burner-inserter-hand-base.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
lignumis/graphics/entity/burner-inserter-hand-closed.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
lignumis/graphics/entity/burner-inserter-hand-open.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
lignumis/graphics/entity/burner-inserter-platform.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
lignumis/graphics/entity/burner-inserter-remnants.png
Normal file
After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 14 KiB |
BIN
lignumis/graphics/entity/burner-mining-drill-E.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
lignumis/graphics/entity/burner-mining-drill-N.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
lignumis/graphics/entity/burner-mining-drill-S.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
lignumis/graphics/entity/burner-mining-drill-W.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 248 KiB |
Before Width: | Height: | Size: 259 KiB |
Before Width: | Height: | Size: 253 KiB |
Before Width: | Height: | Size: 245 KiB |
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 756 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 8.8 KiB |