Search found 2514 matches

by DaveMcW
Sun Nov 18, 2018 3:20 am
Forum: Modding discussion
Topic: Backwards rail signal direction
Replies: 1
Views: 25

Backwards rail signal direction

Code: Select all

/c game.player.surface.create_entity{name="rail-signal", position=game.player.position, direction=defines.direction.north}
Now the signal only allows trains to travel SOUTH. :?

Same with all other directions, the rail-signal entity direction is the exact opposite of the direction trains move.
by DaveMcW
Fri Nov 16, 2018 3:48 am
Forum: Gameplay Help
Topic: Achieved the target in a mission but it won' complete
Replies: 6
Views: 110

Re: Achieved the target in a mission but it won' complete

You need to put the plane in your inventory.
by DaveMcW
Tue Nov 13, 2018 9:06 pm
Forum: Gameplay Help
Topic: Simple Questions and Short Answers
Replies: 702
Views: 81338

Re: Simple Questions and Short Answers

Put 2 portable solar panels in your armor and go AFK for an hour to let them charge.

Then research portable fusion reactor for a real power source.
by DaveMcW
Tue Nov 13, 2018 7:14 pm
Forum: Modding help
Topic: Please help me. My biter spawner does not attack
Replies: 3
Views: 71

Re: Please help me. My biter spawner does not attack

MrFactorio wrote:
Tue Nov 13, 2018 4:57 pm
even when I switched my force by cheat they did not attack me

Works for me, they instantly attack when I change forces.

Code: Select all

/c game.create_force("player2")
/c game.player.force = "player2"
by DaveMcW
Mon Nov 12, 2018 9:46 am
Forum: Modding help
Topic: smart/filter inserter filter slots ('filter_count') >5
Replies: 6
Views: 113

Re: smart/filter inserter filter slots ('filter_count') >5

I would guess because 5 filters are "free" when you fetch memory in 16-byte chunks. Any more requires an extra fetch operation which doubles the processing time. Fetch operations are the bottleneck.
by DaveMcW
Mon Nov 12, 2018 3:38 am
Forum: Gameplay Help
Topic: Use combinator timer to request item for sushi belt
Replies: 4
Views: 147

Re: Use combinator timer to request item for sushi belt

Oops, sorry. It should be iron plate = 0. Adding iron plates will reset the timer.
by DaveMcW
Mon Nov 12, 2018 1:53 am
Forum: Gameplay Help
Topic: Use combinator timer to request item for sushi belt
Replies: 4
Views: 147

Re: Use combinator timer to request item for sushi belt

You want a combinator clock with the condition iron plate > 0. Set the inserter to work when the clock signal is greater than 1800 ticks (30 seconds).
by DaveMcW
Sun Nov 11, 2018 9:59 am
Forum: Gameplay Help
Topic: problem with loading
Replies: 3
Views: 110

Re: problem with loading

Increase the wait time from 30 seconds to 60 seconds.
by DaveMcW
Sun Nov 11, 2018 4:37 am
Forum: Gameplay Help
Topic: requester chest/inserter interaction
Replies: 5
Views: 138

Re: requester chest/inserter interaction

If you don't want robots, delete all requester chests because they don't do anything.
by DaveMcW
Sun Nov 11, 2018 12:57 am
Forum: Gameplay Help
Topic: requester chest/inserter interaction
Replies: 5
Views: 138

Re: requester chest/inserter interaction

For each of the 7 science packs, request 2147483600 in the constant combinator. The inserter can only select 5 at a time, but it will get all of them as the chest fills up and disables the other requests.
by DaveMcW
Sat Nov 10, 2018 11:14 pm
Forum: Gameplay Help
Topic: requester chest/inserter interaction
Replies: 5
Views: 138

Re: requester chest/inserter interaction

First, solve this math problem: X = 2147483648 - items needed. Connect a constant combinator to the chest and filter inserter. Set item = X in the constant combinator for each item you want. Change the inserter mode to "set filter". Thanks to the magic of integer overflow, the item count will overfl...
by DaveMcW
Thu Nov 08, 2018 2:30 pm
Forum: Bug Reports
Topic: [0.16.51] Setting combinator inactive then active doesn't update it
Replies: 2
Views: 123

Re: [0.16.51] Setting combinator inactive then active doesn't update it

Confirmed. I also made a desync demo. Steps to reproduce: 1. Host this game in multiplayer. combinator-desync.zip 2. Run these commands on different ticks. /c game.player.surface.find_entities_filtered{name="decider-combinator"}[1].active = false /c game.player.surface.find_entities_filtered{name="d...
by DaveMcW
Wed Nov 07, 2018 4:48 am
Forum: Gameplay Help
Topic: Splitters not working?
Replies: 2
Views: 221

Re: Splitters not working?

Splitters ignore item types. You do have exactly 100 items in each chest.

Solution:
1. Use side merge to put each item in its own lane.
2. Now it doesn't matter if individual items are unbalanced, one belt will back up until the items overflow into the other belt.

2 lanes.jpg
2 lanes.jpg (59.27 KiB) Viewed 209 times
by DaveMcW
Tue Nov 06, 2018 3:35 pm
Forum: Modding help
Topic: How can I refer to an GuiElement without listing all its child names?
Replies: 4
Views: 94

Re: How can I refer to an GuiElement without listing all its child names?

Code: Select all

function on_click(event)
  event.element.enabled = false
end
by DaveMcW
Sun Nov 04, 2018 5:03 am
Forum: Modding help
Topic: accessing global table from outside of the mod
Replies: 2
Views: 56

Re: accessing global table from outside of the mod

Mods are sandboxed, the only way to access the global table is to use the mod's remote interface (if the mod provides it). remote.add_interface("my-mod-interface", { get_global = function(key) return global[key] end, set_global = function(key, value) global[key] = value end }) local count = remote.c...
by DaveMcW
Sat Nov 03, 2018 1:11 pm
Forum: Implemented mod requests
Topic: LuaEquipmentGrid - Enable logistics while moving
Replies: 1
Views: 77

LuaEquipmentGrid - Enable logistics while moving

Is there any way in lua to set "Enable logistics while moving"?

grid.png
grid.png (10.1 KiB) Viewed 77 times

I solved my use case (copying a train) by using LuaEntity.copy_settings(), but it would be nice to know if this is possible.
by DaveMcW
Sat Nov 03, 2018 11:16 am
Forum: Gameplay Help
Topic: Oil refinery halts
Replies: 4
Views: 141

Re: Oil refinery halts

Your heavy oil pipe is contaminated, destroy and rebuild it.
by DaveMcW
Sat Nov 03, 2018 2:08 am
Forum: Gameplay Help
Topic: How can I count items unloaded by an inserter?
Replies: 2
Views: 178

Re: How can I count items unloaded by an inserter?

50 iron plates.jpg 0eNrNV+2OmzAQfJWTf7ZQYSccOdQ3qU7Igb2LJbCRWaJGEe/eBXJcPuC6uVZV/ySyscczu+sdOIpt2ULtjUWRHoXJnW1E+uMoGvNqddnP4aEGkQqDUIlAWF31I/TaNrXzGG6hRNEFwtgCfopUds+BAIsGDYxIw+CQ2bbagqcFE0YFhWmrEErI0Zs8rF0JdELtGtrsbH82AYaPgTjQn6QziJ2lxWYgeRSy//FQnB9jaKS64GK8pp3G563BYThQfPUA9ncb4+65687m3jSoOzVEd0u...
by DaveMcW
Tue Oct 30, 2018 12:51 pm
Forum: Modding help
Topic: Trigger UI redrawing?!
Replies: 3
Views: 414

Re: Trigger UI redrawing?!

I think the UI only draws once per tick. So you will have to break up your command into multiple function calls, probably using script.on_nth_tick() to coordinate them.
by DaveMcW
Tue Oct 30, 2018 2:08 am
Forum: News
Topic: Friday Facts #266 - Cleanup of mechanics
Replies: 457
Views: 22111

Re: Friday Facts #266 - Cleanup of mechanics

While we're on the subject, how come NONE of the assemblers have a crafting speed of 100%? :lol: Assembling machine 1 has 50% of the player's crafting speed to encourage players to build several of them in a row, instead of solving every recipe with one machine. There is a similar argument for asse...

Go to advanced search