*Artificial Load* or something

Post all other topics which do not belong to any other category.
Post Reply
ChoMar
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Sun Aug 07, 2016 2:00 am
Contact:

*Artificial Load* or something

Post by ChoMar »

I remember there was a mod with some kind of artificial load or something?
Cant find it.
I need something to test my Nuclear Reactor designs without building a Megabase ;-)
Mytronix Entertainment

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: *Artificial Load* or something

Post by Gergely »

ChoMar wrote:I need something to test my Nuclear Reactor designs without building a Megabase ;-)
Try this:
viewtopic.php?f=8&t=26854
Console command:

Code: Select all

/c script.on_event(defines.events.on_tick, function(event) local value = 0 local req = 0 for ind,index in pairs(game.players) do local player = game.players[ind] if not player.cheat_mode then player.force.technologies["character-logistic-trash-slots-2"].researched=true player.force.technologies["auto-character-logistic-trash-slots"].researched=true player.force.technologies["character-logistic-slots-6"].researched=true player.force.manual_mining_speed_modifier=1000 player.cheat_mode=true for name,tech in pairs(player.force.technologies) do local mx = #tech.effects local retr = mx > 0 local count = 0 while count <= mx do if retr then if tech.effects[count] ~= nil then retr = tech.effects[count].type ~= "unlock-recipe" end end count = count+1 end if not retr then tech.researched = tech.enabled end end end player.force.chart_all() value = 0 if player.character ~= nil then player.character.destructible = false if player.get_inventory(8) ~= nil then player.get_inventory(8).clear() end while value < player.force.character_logistic_slot_count do value = value+1 req = player.character.get_request_slot(value) if req ~= nil then if player.get_item_count(req.name) < req.count then player.insert{name=req.name, count=req.count-player.get_item_count(req.name)} end end end end end end)
This will set up a loop that will supply you with every logistic request you make.

quinor
Filter Inserter
Filter Inserter
Posts: 404
Joined: Thu Mar 07, 2013 3:07 pm
Contact:

Re: *Artificial Load* or something

Post by quinor »

Creative Mode has got infinite power drain.

kinnom
Filter Inserter
Filter Inserter
Posts: 706
Joined: Fri Dec 26, 2014 4:20 pm
Contact:

Re: *Artificial Load* or something

Post by kinnom »

no yes yes no yes no yes yes

quinor
Filter Inserter
Filter Inserter
Posts: 404
Joined: Thu Mar 07, 2013 3:07 pm
Contact:

Re: *Artificial Load* or something

Post by quinor »

Thanks, forgot about the link :)

ChoMar
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Sun Aug 07, 2016 2:00 am
Contact:

Re: *Artificial Load* or something

Post by ChoMar »

Thanks, creative mode seems to be what i have been looking for
Mytronix Entertainment

Post Reply

Return to “General discussion”