Pacifist

by derpumu

This mod removes military tech, weapons, and ammo for an undistracted playthrough without biters. Compatible to a growing number of overhaul mods like Pyanodon's and Space Age.

Tweaks
a month ago
1.1 - 2.1
1.55K
Combat Enemies

b Crash with latest 2.1 releases

15 days ago
(updated 13 days ago)

Failed to load mods: Pacifist/functions/recipes.lua:198: Didn't handle ingredient personal-laser-defense-equipment(item) of recipe personal-laser-defense-equipment-recycling
stack traceback:
[C]: in function 'assert'
Pacifist/functions/recipes.lua:198: in function '_process_ingredients'
Pacifist/functions/recipes.lua:212: in function 'process'
Pacifist/functions/pacifist.lua:25: in function 'process'
Pacifist/data-final-fixes.lua:5: in main chunk
I reverted to latest v2.1. See below.
I think the changes I made below for v2.0 might apply to v2.1. I'll check this later. Eventually.
Might not go back to Factorio 2.1 until it releases.

13 days ago
(updated 13 days ago)

Uninstalled Factorio 2.1 and Installed v2.0. Some progress.

Found some errors in one of my personal unreleased mods. Added some IF statements to skip some stuff related to armor.
Shortcuts-ick_2.0.7 mod not compatible with this mod without modification.
Looks like that was it for Factorio v2.0.
Mining Drones and Mining Drones Remastered for Factorio v2.0 cause a crash. Your Dependencies need to be updated to show that they are not allowed.
I give up. This mod is dead.

12 days ago

Do I understand you correctly, that you are trying to load Pacifist together with either of the two Mining Drones mods in Factorio 2.1 and get a crash? Or is it in 2.0? Neither is currently officially supported, but I can look into making them compatible.

12 days ago

i got this crash with my mod NPU

Failed to load mods: Pacifist/functions/recipes.lua:193: Didn't handle ingredient military-science-pack(item) of recipe venda-11
stack traceback:
[C]: in function 'assert'
Pacifist/functions/recipes.lua:193: in function '_process_ingredients'
Pacifist/functions/recipes.lua:207: in function 'process'
Pacifist/functions/pacifist.lua:25: in function 'process'
Pacifist/data-final-fixes.lua:5: in main chunk

11 days ago
(updated 11 days ago)

i got this crash with my mod NPU

Failed to load mods: Pacifist/functions/recipes.lua:193: Didn't handle ingredient military-science-pack(item) of recipe venda-11
stack traceback:
[C]: in function 'assert'
Pacifist/functions/recipes.lua:193: in function '_process_ingredients'
Pacifist/functions/recipes.lua:207: in function 'process'
Pacifist/functions/pacifist.lua:25: in function 'process'
Pacifist/data-final-fixes.lua:5: in main chunk

Yeah that is to be expected. Pacifist removes military science packs, so there is no generic way to deal with a recipe that requires them.
I would have to write a compatibility patch that detects NPU and does something with that recipe - or you write an extension that detects Pacifist and does what you think is right. I am open to both approaches, though it may be some time until I get to writing that patch.

11 days ago

Do I understand you correctly, that you are trying to load Pacifist together with either of the two Mining Drones mods in Factorio 2.1 and get a crash? Or is it in 2.0? Neither is currently officially supported, but I can look into making them compatible.
I tried in both Factorio versions. I am now playing in version 2.0. Thanks for you time in making them compatible.

10 days ago

i got this crash with my mod NPU

Failed to load mods: Pacifist/functions/recipes.lua:193: Didn't handle ingredient military-science-pack(item) of recipe venda-11
stack traceback:
[C]: in function 'assert'
Pacifist/functions/recipes.lua:193: in function '_process_ingredients'
Pacifist/functions/recipes.lua:207: in function 'process'
Pacifist/functions/pacifist.lua:25: in function 'process'
Pacifist/data-final-fixes.lua:5: in main chunk

Yeah that is to be expected. Pacifist removes military science packs, so there is no generic way to deal with a recipe that requires them.
I would have to write a compatibility patch that detects NPU and does something with that recipe - or you write an extension that detects Pacifist and does what you think is right. I am open to both approaches, though it may be some time until I get to writing that patch.

Failed to load mods: Error in assignID: technology with name 'artillery' does not exist. It was removed by Pacifist.

At ROOT.shortcut.artillery-jammer-tool.technology_to_unlock

Source: artillery-jammer-tool (shortcut).

got this error once i made the compat patch on my end

5 days ago

Failed to load mods: Error in assignID: technology with name 'artillery' does not exist. It was removed by Pacifist.

At ROOT.shortcut.artillery-jammer-tool.technology_to_unlock

Source: artillery-jammer-tool (shortcut).

got this error once i made the compat patch on my end

There's no artillery tech, so you'd have to remove the tech_to_unlock from the shortcut or remove it altogether - after all, an artillery jammer probably does not make sense when there is no artillery

New response