[MOD 0.14.x] LokisRequestChest_0.2.0 (smartRequest)
Posted: Sun Oct 02, 2016 4:43 pm
Hi Everybody,
I decided to put out my early Alpha here to get some Feedback from you guys.
Let me say that i never made a mod before but i wanted this Feature so i sat down yesterday Evening and looked at some Mods of other people to see how stuff works and after a sleepless night i have a basic version of my mod up and running.
What it does:
Instead of constantly pinging the robots to fill up the chest with items it lets them fill up once then stops the request until the item is down to 10 pieces
Then it lets them fill up to the requested amount again.
Prevents robots from flying around like idiots to fill up 2 items that were used for production.
When you set up the amount to fill up to keep in mind how fast and how much your robts can deliver and how fast the items go out. If your robots need 5 seconds to deliver an iron plate but the inserter takes out 1 every second your robots will still fly forever
How it works?
If you place the Loki Chest it works like any other Request Chest you put in your request like usual
but the chest will store your request in an array and when the requested amount is reached it will set the request value to 1
then it checks every tick if the itemcount is down to 10 or below and sets the request amount back to the initial value.
If you change a slot the array gets updated.
What is coming?
I am working on a gui where you can set the amount on which he starts requesting again. If you hover over a box and press "SHIFT +Q" you should already get the first draft of that but it does nothing special you just see what is the requested amount for each item.
What i want from you?
As stated before i am new to the Modding stuff but i have experience with Coding.
I tested the mod on my installation and it was working fine so far whole night producing advanced solar panels with robots
So if you could download it install and give me feedback on issues and bugs i would be a happy man
http://bit.ly/2dI4M5u
I decided to put out my early Alpha here to get some Feedback from you guys.
Let me say that i never made a mod before but i wanted this Feature so i sat down yesterday Evening and looked at some Mods of other people to see how stuff works and after a sleepless night i have a basic version of my mod up and running.
What it does:
Instead of constantly pinging the robots to fill up the chest with items it lets them fill up once then stops the request until the item is down to 10 pieces
Then it lets them fill up to the requested amount again.
Prevents robots from flying around like idiots to fill up 2 items that were used for production.
When you set up the amount to fill up to keep in mind how fast and how much your robts can deliver and how fast the items go out. If your robots need 5 seconds to deliver an iron plate but the inserter takes out 1 every second your robots will still fly forever
How it works?
If you place the Loki Chest it works like any other Request Chest you put in your request like usual
but the chest will store your request in an array and when the requested amount is reached it will set the request value to 1
then it checks every tick if the itemcount is down to 10 or below and sets the request amount back to the initial value.
If you change a slot the array gets updated.
What is coming?
I am working on a gui where you can set the amount on which he starts requesting again. If you hover over a box and press "SHIFT +Q" you should already get the first draft of that but it does nothing special you just see what is the requested amount for each item.
What i want from you?
As stated before i am new to the Modding stuff but i have experience with Coding.
I tested the mod on my installation and it was working fine so far whole night producing advanced solar panels with robots
So if you could download it install and give me feedback on issues and bugs i would be a happy man
http://bit.ly/2dI4M5u