Search found 3061 matches

by DaveMcW
Sat Feb 29, 2020 12:41 am
Forum: Modding interface requests
Topic: Offshore pump energy source
Replies: 1
Views: 11

Re: Offshore pump energy source

The workaround is to use control.lua to replace offshore pump with an assembling machine.
by DaveMcW
Tue Feb 25, 2020 2:26 pm
Forum: Modding discussion
Topic: Replace LUA code in a running game from command line?
Replies: 5
Views: 76

Re: Replace LUA code in a running game from command line?

Console is also sandboxed.

The only way to change control.lua from the console is to add a backdoor into the mod.
by DaveMcW
Tue Feb 25, 2020 8:49 am
Forum: Modding discussion
Topic: Replace LUA code in a running game from command line?
Replies: 5
Views: 76

Re: Replace LUA code in a running game from command line?

Note that this only works because you are merging every mod into a single control.lua.

Normally control.lua is sandboxed to prevent this from happening.
by DaveMcW
Tue Feb 25, 2020 5:26 am
Forum: Modding help
Topic: Lifecycle, callbacks, and inter-mod communication
Replies: 7
Views: 109

Re: Lifecycle, callbacks, and inter-mod communication

It definitely feels like there's a problem with the lifecycle logic if I have to guard against uninitialised local variables. Shouldn't that be the whole point of on_load? No, on_load has a very unfortunate name. There are 3 main uses for on_load: 1. Confusing new modders 2. Breaking multiplayer 3....
by DaveMcW
Sun Feb 23, 2020 1:13 pm
Forum: Modding help
Topic: Lifecycle, callbacks, and inter-mod communication
Replies: 7
Views: 109

Re: Lifecycle, callbacks, and inter-mod communication

danielbrauer wrote:
Sun Feb 23, 2020 12:16 pm
Or am I missing something?
You should have access to everything in on_init().
by DaveMcW
Wed Feb 19, 2020 6:36 pm
Forum: This Forum
Topic: SPAM accounts invading the forum
Replies: 22
Views: 594

Re: SPAM accounts invading the forum

I agree the birthday list should be disabled, it is just a billboard for spambots.

Instructions to disable: https://www.phpbb.com/community/viewtop ... 9#p2201329
by DaveMcW
Mon Feb 17, 2020 12:23 am
Forum: Modding help
Topic: tank.disable_flashlight()
Replies: 2
Views: 75

Re: tank.disable_flashlight()

It does not seem possible, maybe try modding interface requests.
by DaveMcW
Fri Feb 14, 2020 8:40 pm
Forum: Modding discussion
Topic: Question about rules regarding using assets from other games in mods
Replies: 6
Views: 221

Re: Question about rules regarding using assets from other games in mods

eradicator wrote:
Fri Feb 14, 2020 5:17 pm
who knows who has the rights now (if anyone at all).
Well, someone is selling it on Steam. https://store.steampowered.com/app/283390/
by DaveMcW
Thu Feb 06, 2020 6:15 am
Forum: Combinator Creations
Topic: A simple smart smelter
Replies: 2
Views: 399

Re: A simple smart smelter

I tested by putting 69 iron ore, 69 copper ore, and 69 stone in the left chest. It got stuck making steel plates before it even had a chance to make stone bricks.
by DaveMcW
Sun Feb 02, 2020 8:33 pm
Forum: Modding help
Topic: Dumb question from a non-modder
Replies: 37
Views: 799

Re: Dumb question from a non-modder

Screenshots are not very helpful at communicating mod errors.

What would be helpful is if you attach your zip file.
by DaveMcW
Sat Feb 01, 2020 12:59 pm
Forum: Gameplay Help
Topic: circuit / explanation help
Replies: 1
Views: 148

Re: circuit / explanation help

The memory cell (decider combinator) stores two binary values, speed module 0 or 1 and processing unit 0 or 1. The red inserters set the value to 1 when they pick up an item. The red inserters are disabled if the value is 1. The yellow inserter resets the values to 0 when it picks up a rocket contro...
by DaveMcW
Wed Jan 29, 2020 4:51 pm
Forum: Modding discussion
Topic: Question about rules regarding using assets from other games in mods
Replies: 6
Views: 221

Re: Question about rules regarding using assets from other games in mods

No, you must have permission from the author for any assets you use. The easiest way is to find assets that are licensed under a Creative Commons license.
by DaveMcW
Tue Jan 28, 2020 6:50 pm
Forum: Not a bug
Topic: [0.17.79] [not a bug] No Space science when (loading junk into payload)
Replies: 8
Views: 251

Re: No Space Science if too much Productivity Module

Make sure you are using filter inserters on the rocket silo. It will accept any item (except rocket part ingredients) in the satellite slot.
by DaveMcW
Sun Jan 26, 2020 6:54 am
Forum: Modding discussion
Topic: IR in 0.18
Replies: 35
Views: 2438

Re: IR in 0.18

Jap2.0 wrote:
Sun Jan 26, 2020 12:58 am
Anyone know if/when this would be considered abandonware?
Copyright expires 70 years after the author dies. "Abandonware" is just another word for piracy.
by DaveMcW
Sat Jan 25, 2020 2:39 am
Forum: News
Topic: Friday Facts #331 - 0.18.0 release & Train pathfinder changes
Replies: 141
Views: 17663

Re: Friday Facts #331 - 0.18.0 release & Train pathfinder changes

Addendum: personally, I think you're spending too much time on trains. Could be my play style, but I couldn't care less if they're very slightly more efficient; if I had been running things I'd have scrapped most of the train functionality for a more simplistic approach to work on other more import...
by DaveMcW
Mon Jan 20, 2020 12:21 pm
Forum: Modding help
Topic: is it possible to create an explosion upon an item's destruction?
Replies: 2
Views: 108

Re: is it possible to create an explosion upon an item's destruction?

Code: Select all

script.on_event(defines.events.on_entity_died, function(event) 
  if event.entity and event.entity.valid and event.entity.get_item_count("dangerous-item") > 0 then
    -- create explosion
  end
end)
by DaveMcW
Mon Jan 20, 2020 9:34 am
Forum: Modding help
Topic: [0.17.x] LuaRendering:draw_polygon vertices order
Replies: 3
Views: 121

Re: [0.17.x] LuaRendering:draw_polygon vertices order

1. Point A = Point B = starting point. Draw Point A.
2. Point B = next clockwise point. Draw Point B.
3. Point A = next counterclockwise point. Draw Point A.
4. Goto 2.
by DaveMcW
Sun Jan 19, 2020 9:53 pm
Forum: General discussion
Topic: Smallest reliable production time
Replies: 22
Views: 1168

Re: Smallest reliable production time

The latency of the inserters or a small gap on the feeding belt might be enough that the machine runs out of material. Inserter swing latency is not a problem. Fast assembling machines get a bonus to slot size, to ensure they always request enough items to survive the latency. The exact formula is:...

Go to advanced search