Repository navigation
Update the mod-pack maps for Factorio 2.1 mods - #1655
Merged
Merged
Conversation
Merged
In 2.1 get_quick_bar_slot returns a table, {type, filter} or {type,
item}, not an item prototype, so .name on it was nil: auto stash failed
with "table index is nil" for any player with a quick bar slot set, and
saving quick bars saved empty bars. Both now take the name from the
slot's filter or item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.1 removed LuaEntity.neighbours. Underground belts now have underground_belt_neighbour and pipes-to-ground fluidbox_neighbours, which the Citadel, Fault Lines and Rivers tests use through connected(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since 2.1 a flow added with on_flow shows up in the statistics two ticks later, so the tests read the counts before it had landed: the first failed on every Danger Ores map, and "other items do not count" passed without checking anything. Each test now waits for its own flow first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI now tests the latest stable 2.1 release, and AGENTS.md says the scenario targets 2.1 and lists the 2.0 API it removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Safety Ores uses only vanilla ores, so it takes the normal mod pack and is offered on regular servers.
Minesweeper now stops loading without the mine-sweeper mod, and Danger Ores Space Age needs redmew-data, neither of which the CI server has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
combine() keeps every mod once at the highest version asked for, and check() refuses missing or too old dependencies and present incompatible mods, naming them. They run on the maps that need mods. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lex
force-pushed
the
factorio-2.1-mods
branch
from
October 25, 2026 11:10
78150fc to
af73256
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
grilledham
approved these changes
Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1654 (Update to Factorio 2.1): until that merges this diff includes its commits too. The changes for review are only this PR's own: compare factorio-2.1...factorio-2.1-mods.
Updates the maps that need mods to the mods' 2.1 versions. The first five commits are RedRafe's, cherry-picked from #1569 (they keep his authorship); the last two are new.
From #1569 (RedRafe)
utils/mod_compatibility: a scenario declares the mods it needs, conflicts with, recommends or discourages. Missing or too old dependencies and present incompatible mods stop it loading with a message naming them; recommended and discouraged ones get a popup 10 seconds after a player joins. Minesweeper and April Fools 2024 use it in place of their own checks.danger_ores/compatibility/*/mod-list.luafor every mod pack (Angel's, Bob's, BZ, Exotic Industries, IR3, Krastorio 2, Omnimatter, Pyanodon, Space Age), checked by the presets;ModCompatibility.combinejoins several (Bob's + Angel's).bob-tungsten-ore→tungsten-ore.rock-huge-*→huge-rock-*).regulartag so regular servers offer it.Resolving against current
develop: the Omnimatter Maze and Scrapworld Maze presets keepdevelop's win conditions and description and only gain the check (and therequirefor it, which came in a merge commit on the2.1branch).New here
utils/mod_compatibility_tests.lua:combinekeeps every mod once at the highest version asked for;checkpasses withbase, and refuses a missing dependency, one older than asked for, and an incompatible mod that is there, naming each. They run on templates that load the module, which CI now skips, so I ran them through a throwaway template: 6 passed, and removing the version comparison fails one.Tests
luacheck .: 0 warnings / 0 errors.🤖 Generated with Claude Code