I am unsure how to manage recipie migration, specifically in Multiplayer. It gives an error when you load, using the default one.
game.player.force.resetrecipes()
Multiplayer Migration
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Multiplayer Migration
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Multiplayer Migration
Because there's more than one player force in multiplayer, you need to adjust your code to allow for that. Eg:
This will iterate through every player and perform those two actions. Handily, it also works in single-player.
Code: Select all
for i, player in ipairs(game.players) do
player.force.resetrecipes()
player.force.resettechnologies()
end
Re: Multiplayer Migration
but the force is the same for all players, maybe if it is for one player work just as well