Skip to content

v0.16.0

Choose a tag to compare

@AleDev11 AleDev11 released this 27 Sep 14:08
· 33 commits to main since this release

Guests can work the machines now.

Until this version a machine's panel was read only for anyone who was not
hosting. You could open it, you could flip the switch, and nothing happened:
the machine runs on the host, and the host never heard about it. Flip it now
and the machine actually does it, for everyone.

What a guest can change:

  • on and off, on every machine that has a switch
  • throw distance on a piston rake and a pelletizer
  • aim and power on a tube launcher
  • which way a splitter sends things, and its priority side
  • a robotic arm's tier and what it accepts
  • a scanner's tier
  • a work lamp's brightness, and its switch

What a guest still cannot change, on purpose: fuel, stock, output, whatever a
machine has banked. Those are the host's to count. If a guest's word were
taken for them the same hay could be paid for twice, which is the one thing a
co-op mod must not do. The host also restates its own value straight after
every change, so if it does not accept one, the guest's panel goes back to
what is really there rather than sitting there lying.

Not in yet: hay a guest feeds into a machine by hand. It still rides the
belt on the guest's screen and the machine never takes it, so for now the host
is the one who loads them. That is the other half of this and it is what I am
working on next.

Checked with two instances: the host places a rake, the guest flips its switch
from its own copy, and the host's machine comes back switched off, with the
guest still matching. One packet, not a stream of them.

Install is unchanged: copy the mods folder next to FindTheNeedle.exe and add
these two lines to override.cfg.

[autoload]
MPMod="*mods/multiplayer/mp.gd"

A game update replaces override.cfg, so if co-op disappears from your menu
after one, add those lines again. install-helper.bat below does it for you.
Every player needs this same version.