Logistic Cargo Wagon


Cargo wagons which can directly request items from, and provide items to, the logistic network. Configure items to request and provide at each station for each logistic cargo wagon, allowing flexibility in unloading on curves, changing train length easily without building infrastructure, and further boost loading and unloading rate through robot speed research.

Content
3 years ago
0.16 - 1.1
13.0K
Logistic network

b Bug with mod when used with Space Exploration mod by Earendal

5 years ago

After launching a rocket and 'viewing' space in the Space Exploration mod clicking on a logistic cargo wagon to open the set request/provide ui causes a null/nil reference on line 555 of control.lua.

Specifically it looks like Space Exploration removes the normally set player.permission_group (although according to the api docs it is possible for it to be nil).

I fixed my local copy of the mod by adding a simple nil check to the statement:
e.g. from
if player.permission_group.allows_action(defines.input_action.set_logistic_filter_item) then

to
if player.permission_group == nil or player.permission_group.allows_action(defines.input_action.set_logistic_filter_item) then

5 years ago

Should no longer error in the current version, though there may be some unexpected behavior still; if you're unable to edit wagon settings after this update, I'm looking for an affected example save if you wouldn't mind uploading one!

New response