Search found 6 matches

by obj
Sun Oct 22, 2023 3:56 am
Forum: Fixed for 2.0
Topic: [1.1.91] zoom_to_world makes camera stop following player during replays
Replies: 2
Views: 446

Re: [1.1.91] zoom_to_world makes camera stop following player during replays

brute-force workaround: append this to the save's control.lua:

Code: Select all

script.on_nth_tick(60, function(event)
  for _, p in pairs(game.players) do
    p.close_map()
  end
end)
(you wouldn't want to actually _play_ this save with that in place though!)
by obj
Sun Oct 22, 2023 3:14 am
Forum: Fixed for 2.0
Topic: [1.1.91] zoom_to_world makes camera stop following player during replays
Replies: 2
Views: 446

[1.1.91] zoom_to_world makes camera stop following player during replays

If you are recording a replay and a script calls LuaPlayer.zoom_to_world to switch the player rendering mode to the "zoomed in map" mode at a given point.. Then when replaying the replay, this zoom-to-world takes effect during the replay and never reverts to the regular camera which follow...
by obj
Wed Sep 16, 2015 11:20 am
Forum: General discussion
Topic: So, how long will your Factory have power? I can help!
Replies: 3
Views: 7853

Re: So, how long will your Factory have power? I can help!

Or work backwards from the fuel value?

336k coal * 8MJ/coal = 2688000MJ (assuming boilers/steam are 100% efficient - are they?)
If steam provides 20MW on average, that lasts for 2688000 / 20 = 134400 seconds = 37.3 hours
by obj
Thu Sep 10, 2015 2:12 pm
Forum: Show your Creations
Topic: Belt counter
Replies: 24
Views: 25828

Re: Belt counter

It's just two of the counters from my first post combined: left group outputs negative changes to the left chest's count: each * -1 => each each + 0 => each each < 0 => each input count right group outputs positive changes to the right chest's count: each * -1 => each each + 0 => each each > 0 => ea...
by obj
Sun Sep 06, 2015 10:48 pm
Forum: Show your Creations
Topic: Belt counter
Replies: 24
Views: 25828

Re: Belt counter

Putting a counter at each end of a (long) belt lets you limit the number of items waiting, rather than filling the whole belt: belt-limiter.png Left combinator group is a differentiator+filter that counts items removed from the left smart chest. Right combinator group is a differentiator+filter that...
by obj
Fri Sep 04, 2015 8:15 pm
Forum: Show your Creations
Topic: Belt counter
Replies: 24
Views: 25828

Re: Belt counter

Here's something similar I cooked up. It counts increases in whatever signal you give it. You can use this to measure the incoming (or outgoing, see below) rate to a set of buffer chests, just wire them all together. You can use it with tank signals too, or anything else that generates a changing si...

Go to advanced search