Everyone can take freight out of any freight wagon. This problam is
very old and was already a few times pointed out.
Are you sure this still exists in the current master version?
Code for wagon inv protection exists, see advtrains/wagons.lua:65ff
Am Tue, 12 Feb 2019 22:26:01 +0100 (CET)
> Are you sure this still exists in the current master version?
> Code for wagon inv protection exists, see advtrains/wagons.lua:65ff
Yes, right, it is now protected.
But the current implementation creates another problem:
How to allow another player to access a freight wagon?
A key allows accessto chests, how is it here?
(And how is the protection with (un)loading tracks?
A total lock there makes also freight transport betweens players
The protection is managed through the "whitelist". But I suppose the problem is that it is not possible to access the wagon properties of the wagon.
I can't tell how the behavior of the unloading rails is. gpcf originally made them. But from my understanding it just (un)loads everything without restriction.
Supporting keys sound like a good idea though.
I implemented access to the whitelist for freight wagons. When registered
with `get_inventory_formspec = advtrains.standard_inventory_formspec`,
wagons will include the "Wagon Properties" button as already seen on
locomotives, allowing you to set the whitelist. The freight wagons included
with advtrains (tank, wood, boxcar) use this and modpacks like moretrains
should move to using it too.
Although this solution is 'good enough' in some ways, it should not
preclude the use of keys in future as an alternative access control method.
Other ideas for access control might include master keys to several wagons
and integration with other propsals like train companies.
Forgot to mention, code is on https://github.com/Montandalar/advtrains