Currently in control.lua the code is the following which brings issues on a muiltiplayer server as whenever a player joins the game it increases the research by 1. After just a day on a server infinite research is at 80 for all techs. Could this be changed to not research_all when player joins a dedicated server?
local n = settings.startup["multiplier"].value
local function initPlayer(player)
-- player.get_main_inventory().resize(3)
-- player.force.manual_crafting_speed_modifier = -1.0 + 1.0/n
-- player.force.technologies['mining-productivity-4'].level = 10
-- give all recipes
player.force.research_all_technologies()
end
-- local function onPlayerRespawned(event)
-- local player = game.get_player(event.player_index)
-- player.force.manual_crafting_speed_modifier = -0.8
-- player.clear_items_inside()
-- end
function onPlayerJoined(event)
local player = game.get_player(event.player_index)
initPlayer(player)
end
script.on_event({defines.events.on_player_joined_game, defines.events.on_player_created}, onPlayerJoined)