[REQUEST] [NICE IDEA] Private Buffer chest
[REQUEST] [NICE IDEA] Private Buffer chest
Hi,
i would suggest a mod which adds a "private buffer chest" which is actually automatic requesting all the items the player requests, so you can place them where u often visit your factory without waiting long for deliveries...
besides the automtaic requesting what player requests, the chest should behave like a normal buffer chest.
i would suggest a mod which adds a "private buffer chest" which is actually automatic requesting all the items the player requests, so you can place them where u often visit your factory without waiting long for deliveries...
besides the automtaic requesting what player requests, the chest should behave like a normal buffer chest.
Last edited by nuhll on Sat Jan 13, 2018 2:34 pm, edited 2 times in total.
Re: Private Buffer chest
push this is a good idea please someone make it, shouldnt be hard!
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Some pseudo code for this mod (I haven't factorio right now)
This code runs every tick only one chest and on next tick operates with next chest. So, you can have 10000 chests and performance will be always same.
Code: Select all
On player built entity event
And if entity is Private Buffer Chest then
Global.chests_amount = chests_amount + 1
Global.chests[chests_amount].entity = entity
Global.chests[chests_amount].player = player
End event
On tick event
If Global.chests_amount = 0 then return end
If not tick_index then tick_index = 1 end
If tick_index > chests_amount then tick_index = 1 end
Call function set_requester (tick_index)
Global.tick_index = tick_index + 1
End event
Function set_requester (tick_index)
-- Take all player's requests Global.chests[tick_index].player and set to chest's request Global.chests[tick_index].entity
End function
Re: [REQUEST] [NICE IDEA] Private Buffer chest
thanks for this.
But i dont know how to build factorio mods xD
I hope someone can use your code to create a mod
But i dont know how to build factorio mods xD
I hope someone can use your code to create a mod
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Here is realization of your nice idea. Please test it enough.
- Attachments
-
- PrivateBufferChest_0.0.1.zip
- For 0.16
- (14.64 KiB) Downloaded 137 times
Re: [REQUEST] [NICE IDEA] Private Buffer chest
hmm, i added it to my mod dir, it shows ingame, its activated, but i cant find the item in the list?
I have ger client, if that matters?
Translation would be "Private Bufferkiste"
Much thanks
I have ger client, if that matters?
Translation would be "Private Bufferkiste"
Much thanks
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Forgot this part:
Code: Select all
script.on_configuration_changed(function(data)
for i, force in pairs (game.forces) do
if force.technologies["construction-robotics"].researched then
force.recipes["private-chest-buffer"].enabled = true
end
end
end)
- Attachments
-
- PrivateBufferChest_0.0.2.zip
- For 0.16
- (14.72 KiB) Downloaded 140 times
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Yes, works perfetly, now it just need the same request slots as the player
Re: [REQUEST] [NICE IDEA] Private Buffer chest
It's now have update from lowest: player filter and chest filter. Did you need 36 slots? Why 12 is not enough?nuhll wrote:Yes, works perfetly, now it just need the same request slots as the player
Re: [REQUEST] [NICE IDEA] Private Buffer chest
I usually request everything i need, so 36 is already really limiting (so i dont need to add and remove everytime). I just go back to base and i know i have everything i need.
Re: [REQUEST] [NICE IDEA] Private Buffer chest
36 for request, 36 total?nuhll wrote:I usually request everything i need, so 36 is already really limiting (so i dont need to add and remove everytime). I just go back to base and i know i have everything i need.
- Attachments
-
- PrivateBufferChest_0.0.3.zip
- For 0.16
- (14.72 KiB) Downloaded 139 times
Re: [REQUEST] [NICE IDEA] Private Buffer chest
yeah, atm im requesting 35 items :> Would show you a screenshot, but it seems like u cant screenshot "E"
Seems like u cant place it via bots, or nothing gets requestet. Besides that, working perfectly. Many thanks.
Thanks for the fix.
Seems like u cant place it via bots, or nothing gets requestet. Besides that, working perfectly. Many thanks.
Thanks for the fix.
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Why 35? It must be 36.nuhll wrote:yeah, atm im requesting 35 items :> Would show you a screenshot, but it seems like u cant screenshot "E"
This chests are for player supply, so tou must place it by youself, one for big part of factory is enough.nuhll wrote:Seems like u cant place it via bots, or nothing gets requestet. Besides that, working perfectly. Many thanks.
Please post any error or when you haven't, then please post about after few weeks.
Grüße
darfrei
Re: [REQUEST] [NICE IDEA] Private Buffer chest
The mod is submitted to mod portal: https://mods.factorio.com/mod/PrivateBufferChest
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Thanks! So far didnt noticed bugs.
Does the chest automatic have the same slot amount as the player?
Does the chest automatic have the same slot amount as the player?
Re: [REQUEST] [NICE IDEA] Private Buffer chest
You are welcome! The same, but not more than 36.nuhll wrote:Thanks! So far didnt noticed bugs.
Does the chest automatic have the same slot amount as the player?
Re: [REQUEST] [NICE IDEA] Private Buffer chest
okay first crash, i put accidently for one second a - in it. Instant crash to main menu.
Also, could you make the chest bigger? Maybe via research? Not all my requestet items fit into it :/
Also, could you make the chest bigger? Maybe via research? Not all my requestet items fit into it :/
Re: [REQUEST] [NICE IDEA] Private Buffer chest
Very very nice idea. Just gave it a try though and it doesn't seem to work
Yes, the mod is enabled and yes I placed the chest by hand. Heavily modded game though with full suit of bobs and pyanodons coal+fusion, which might be the issue.
Oh and also, is it possible for the private chest to be a seperate entity? I also use the chests to buffer large amounts of concrete and ammo, which wouldn't be possible if all buffer chests always request my stuff.
And a bigger chest would be nice indeed with bobs, since you can request more then 36 items in the lategame. I for one play with the warehousing mod too, so there might be a possible optional variant with a private buffer store-/warehouse
Yes, the mod is enabled and yes I placed the chest by hand. Heavily modded game though with full suit of bobs and pyanodons coal+fusion, which might be the issue.
Oh and also, is it possible for the private chest to be a seperate entity? I also use the chests to buffer large amounts of concrete and ammo, which wouldn't be possible if all buffer chests always request my stuff.
And a bigger chest would be nice indeed with bobs, since you can request more then 36 items in the lategame. I for one play with the warehousing mod too, so there might be a possible optional variant with a private buffer store-/warehouse
Re: [REQUEST] [NICE IDEA] Private Buffer chest
I guess the chest should scale with how much a player can request and scale with the inventory a player has.
If that is poissible, just let us place multiple near, and they become one bigger chest?
If that is poissible, just let us place multiple near, and they become one bigger chest?