Grid Fuel Manager

by mrudat

Loads fuel into burner generators in equipment grids from attached storage

Utilities
5 years ago
0.17 - 0.18
10

b Multiplayer Desync on join (fixed)

6 years ago
(updated 5 years ago)

Added this to my server, anyone joining immediately gets an 'unsafe' warning from the mod then an immediate desync. ^.^;

6 years ago

It looks like event handlers are dynamically being registered, that should not happen. They should register at the start only and never unregister. Rather you should call a function from that and change 'that' function as you need to do different things (or no-op if nothing).

That may or may not be the only issue, but it is definitely an issue. :-)

6 years ago

Even on_nth_tick? I can re-arrange things to use on_tick (because it checks every tick for more fuel if you have none), but then I'd have an on_tick that does nothing for 10k ticks on average.

I have to admit I have not tested this on multiplayer, so the superficial flaws may be hiding other fundamental flaws that don't apply to singleplayer.

6 years ago

Subscribing to thread, just want to know when fixed

6 years ago

Ah how'd I miss the update notification. Yes, doesn't matter the event, if a script.* is called for an event then it should always be called on script load, never conditionally through-out gameplay, just once at the load and done.

5 years ago

Fixed (and updated to 0.18).

New response