Page 1 of 1

Support Logistics Slots on All Entities

Posted: Sun Aug 23, 2015 10:24 pm
by Afforess
Right now, only entities with the type "logistic-container" get the standard 8 logistic slots in their inventory view. This is frustrating, because this makes it hard to combine logistics networks with other entities, like gun turrets. If the number of logistics slots could instead a parameter on entities, instead of being specified by entity type, that would eliminate my complicated workaround to make Gun Turrets w/Logistics slots work.

Ideally this parameter would be a number, so we can specify how many logistic slots we want to have appear, instead of the standard 8.

Re: Support Logistics Slots on All Entities

Posted: Mon Aug 24, 2015 1:05 am
by Rseding91
This seems redundant since you can just put a logistic requester chest next to the turret to request anything you want.

Re: Support Logistics Slots on All Entities

Posted: Mon Aug 24, 2015 1:21 am
by Afforess
Rseding91 wrote:This seems redundant since you can just put a logistic requester chest next to the turret to request anything you want.
Well that is true, that is not really my goal. Your solution works, but requires access to power for the inserter. I don't want to require access to power.

Regardless, of my specific use-case, there are more uses for logistics slots in entities. Imagine logistic slots in your tank, or in assemblers, or in trains, or in any entity.

Re: Support Logistics Slots on All Entities

Posted: Fri Aug 28, 2015 8:22 pm
by DaveMcW
Afforess wrote: Your solution works, but requires access to power for the inserter. I don't want to require access to power.
Use a burner inserter and request fuel.

Re: Support Logistics Slots on All Entities

Posted: Fri Aug 28, 2015 9:00 pm
by Oxyd
DaveMcW wrote:
Afforess wrote: Your solution works, but requires access to power for the inserter. I don't want to require access to power.
Use a burner inserter and request fuel.
Except a burner inserter won't automatically fuel itself in this scenario. Bob has already complained about that.

Re: Support Logistics Slots on All Entities

Posted: Fri Aug 28, 2015 10:12 pm
by DaveMcW
Right. So we need 2 burner inserters and 2 requester chests. :lol:

Or maybe a dev could implement this request or fix that bug? :D

Re: Support Logistics Slots on All Entities

Posted: Fri Aug 28, 2015 10:27 pm
by JamesOFarrell
Here is how you do this. In on_built_entity watch for your new gun turret to be built, when it is built put a transparent requester chest under it and every few ticks sync the inventory of the 2 entities. You probably don't need to even write the code yourself, just take it from 5dim trains mod.

Re: Support Logistics Slots on All Entities

Posted: Fri Aug 28, 2015 10:37 pm
by Rseding91
DaveMcW wrote:Right. So we need 2 burner inserters and 2 requester chests. :lol:

Or maybe a dev could implement this request or fix that bug? :D
This isn't a mod interface request. This is a feature request.

Mod interface request: Add read/write access to car speeds

* Takes about 10 minutes to add
* Takes about 10 minutes to make a test and verify everything operates normally
* Doesn't need approval from anyone.


Feature request: make all entities support logistic requester slots

* Probably about a week's time to implement code wise
* Probably about another week's time to find and implement where the slots would appear in GUIs
* Probably another week to write tests for everything
* Would need approval from Kovarex and Tomas
* Most likely would be super buggy due to nothing being built to support them

Re: Support Logistics Slots on All Entities

Posted: Sat Aug 29, 2015 8:50 pm
by Afforess
JamesOFarrell wrote:Here is how you do this. In on_built_entity watch for your new gun turret to be built, when it is built put a transparent requester chest under it and every few ticks sync the inventory of the 2 entities. You probably don't need to even write the code yourself, just take it from 5dim trains mod.
I know how to work around it, I am not asking for that.