This is a complicated command that when executed in the chat, it will infinitely supply you with whatever you were requested in your logistic requester slots.
You may want to mess arround with certain game elements or mods withouth having to worry about producing the resources. Enter the following command in the chat:
/c
game.player.character.destructible = false
game.player.force.manual_mining_speed_modifier=1000
game.player.force.manual_crafting_speed_modifier=1000
check_upgrade = function(tech)
local max_tech_effects = #tech.effects
local retr = max_tech_effects > 0
local count = 0
while count <= max_tech_effects
do
if retr then
if tech.effects[count] ~= nil then
retr = tech.effects[count].type ~= “unlock-recipe”
end
end
count = count + 1
end
return retr == false
end
for name,technology in pairs(game.player.force.technologies)
do
if check_upgrade(technology)
then technology.researched=technology.enabled
end
end
local techs = {“character-logistic-trash-slots-1”, “character-logistic-trash-slots-2”, “character-logistic-trash-slots-3”, “character-logistic-trash-slots-4″,”character-logistic-trash-slots-5”, “character-logistic-slots-1”, “character-logistic-slots-2”, “character-logistic-slots-3”, “character-logistic-slots-4″,”character-logistic-slots-5”, “character-logistic-slots-6”, “auto-character-logistic-trash-slots”, “steel-axe”, “worker-robots-storage-1”, “worker-robots-storage-2”, “worker-robots-storage-3”, “worker-robots-speed-1”, “worker-robots-speed-2”, “worker-robots-speed-3”, “worker-robots-speed-4”, “worker-robots-speed-5”, “mining-productivity-1”, “mining-productivity-2”, “mining-productivity-3”, “inserter-capacity-bonus-1”, “inserter-capacity-bonus-2”, “inserter-capacity-bonus-3”, “inserter-capacity-bonus-4”, “inserter-capacity-bonus-5”, “inserter-capacity-bonus-6”, “inserter-capacity-bonus-7”, “braking-force-1”, “braking-force-2”, “braking-force-3”, “braking-force-4”, “braking-force-5”, “braking-force-6”, “braking-force-7”, “research-speed-1”, “research-speed-2”, “research-speed-3”, “research-speed-4”, “research-speed-5”, “research-speed-6”, “toolbelt”, “weapon-shooting-speed-1”, “weapon-shooting-speed-2”, “weapon-shooting-speed-3”, “weapon-shooting-speed-4”, “weapon-shooting-speed-5”, “weapon-shooting-speed-6”, “physical-projectile-damage-1”, “physical-projectile-damage-2”, “physical-projectile-damage-3”, “physical-projectile-damage-4”, “physical-projectile-damage-5”, “physical-projectile-damage-6”, “stronger-explosives-1”, “stronger-explosives-2”, “stronger-explosives-3”, “stronger-explosives-4”, “stronger-explosives-5”, “stronger-explosives-6”, “refined-flammables-1”, “refined-flammables-2”, “refined-flammables-3”, “refined-flammables-4”, “refined-flammables-5”, “refined-flammables-6”, “follower-robot-count-1”, “follower-robot-count-2”, “follower-robot-count-3”, “follower-robot-count-4”, “follower-robot-count-5”, “follower-robot-count-6”, “laser-turret-speed-1”, “laser-turret-speed-2”, “laser-turret-speed-3”, “laser-turret-speed-4”, “laser-turret-speed-5”, “laser-turret-speed-6”, “laser-turret-speed-7”, “energy-weapons-damage-1”, “energy-weapons-damage-2”, “energy-weapons-damage-3”, “energy-weapons-damage-4”, “energy-weapons-damage-5”, “energy-weapons-damage-6”}
for _, tech in ipairs(techs)
do
game.player.force.technologies[tech].researched=true
end
script.on_event(defines.events.on_tick, function(event)
if game.players ~= nil then
local logistic_slot_index = 0
local request_object = “”
local CHARACTER_TRASH = defines.inventory.character_trash
for name, plyr in pairs(game.players)
do
if plyr ~= nil then
plyr.force.chart_all()
if plyr.get_inventory(CHARACTER_TRASH) ~= nil
then plyr.get_inventory(CHARACTER_TRASH).clear()
end
logistic_slot_index = 0
while logistic_slot_index < plyr.force.character_logistic_slot_count
do
logistic_slot_index = logistic_slot_index + 1
request_object = plyr.character.get_request_slot(logistic_slot_index)
if request_object ~= nil then
if plyr.get_item_count(request_object.name) < request_object.count then
plyr.insert{name=request_object.name, count=request_object.count – plyr.get_item_count(request_object.name)}
end
end
end
end
end
end
end)
Note: This one also researches all techs (including upgrade techs) other than infinite techs, and non-vanilla upgrade techs.
Be the first to comment