Skip to content

Update the mod-pack maps for Factorio 2.1 mods - #1655

Merged
grilledham merged 15 commits into
Refactorio:developfrom
lex:factorio-2.1-mods
Oct 25, 2026
Merged

grilledham merged 15 commits into
Refactorio:developfrom
lex:factorio-2.1-mods

Conversation

@lex

@lex lex commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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.
  • Mod lists in danger_ores/compatibility/*/mod-list.lua for every mod pack (Angel's, Bob's, BZ, Exotic Industries, IR3, Krastorio 2, Omnimatter, Pyanodon, Space Age), checked by the presets; ModCompatibility.combine joins several (Bob's + Angel's).
  • Bob's: bob-tungsten-ore → tungsten-ore.
  • April Fools 2024: Alien Biomes 0.8 renamed its rocks (rock-huge-* → huge-rock-*).
  • Safety Ores takes the normal mod pack, as it only uses vanilla ores. I also moved it to the regular tag so regular servers offer it.
  • Changelog lines for the redmew-data side of 2.1, under today's date.

Resolving against current develop: the Omnimatter Maze and Scrapworld Maze presets keep develop's win conditions and description and only gain the check (and the require for it, which came in a merge commit on the 2.1 branch).

New here

  • CI skips Minesweeper ("needs the mine-sweeper mod"), Danger Ores Collapse ("needs the Ore Evolution mod"), Gridlocked ("needs the Gridlocked mod") and Space Age ("needs redmew-data"), which now stop loading without them. This takes Space Age's tests out of CI, the same as Scrapworld.
  • utils/mod_compatibility_tests.lua: combine keeps every mod once at the highest version asked for; check passes with base, 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

  • On a local 2.1.23: the new tests pass, Safety Ores passes (141 passed, 0 failed), and Minesweeper, Collapse, Gridlocked and Space Age are skipped. luacheck .: 0 warnings / 0 errors.
  • The mod packs themselves can't run here; RedRafe tested them on 2.1 for Update RedMew scenarios to Factorio 2.1 #1569.

🤖 Generated with Claude Code

@lex lex mentioned this pull request Oct 25, 2026
RedRafe and others added 14 commits October 25, 2026 13:08
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
lex force-pushed the factorio-2.1-mods branch from 78150fc to af73256 Compare October 25, 2026 11:10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grilledham
grilledham merged commit e066f4d into Refactorio:develop Oct 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants