Hi,
I am trying to create a scenario that is controlled using AI trains only and am trying to get the resource check rule to work within it, but I don't seem to be able to get it to work the way I want.
Here is a basic setup of what I am hoping to achieve.
I have two Multiple Industries on the board with a single track between them, one is named Goods out and the other is Goods in. I am only looking at the General Goods queues in both of the industries. The Goods out is set to produce 2 General goods per minute and the Goods in is set to consume 2 general goods per minute.
I am using a Resource Check rule to monitor the Goods out - General goods queue and when it equals or exceeds 2 it will run a child rule that will modify a variable "Collect" from 0 to 1. This variable will then in turn instruct a train to travel to Goods out, load the 2 General goods, travel to Goods in and unload the load. Once this has been done the Collect variable is set back to 0. This should then reset everything and once the General Goods queue in Goods out reaches 2 again everything will run again.
My problem is that no matter how I set this up the Resource Check rule will only run the once, my train will collect and deliver the first 2 General goods produced but will never collect any after that.
I have tried all kinds of ideas to get this to work the way I want but never get past the first collection, am I missing something here with the Resource Check rule or is this as far as this rule will go, if so do you have any ideas on how I could archive this.
I have looked at monitoring the queue variables direct from the Industry but I can not find a way to monitor them and use them to drive child rules.
I am using Trainz 12 on build 58414.
Thanks Jim
I am trying to create a scenario that is controlled using AI trains only and am trying to get the resource check rule to work within it, but I don't seem to be able to get it to work the way I want.
Here is a basic setup of what I am hoping to achieve.
I have two Multiple Industries on the board with a single track between them, one is named Goods out and the other is Goods in. I am only looking at the General Goods queues in both of the industries. The Goods out is set to produce 2 General goods per minute and the Goods in is set to consume 2 general goods per minute.
I am using a Resource Check rule to monitor the Goods out - General goods queue and when it equals or exceeds 2 it will run a child rule that will modify a variable "Collect" from 0 to 1. This variable will then in turn instruct a train to travel to Goods out, load the 2 General goods, travel to Goods in and unload the load. Once this has been done the Collect variable is set back to 0. This should then reset everything and once the General Goods queue in Goods out reaches 2 again everything will run again.
My problem is that no matter how I set this up the Resource Check rule will only run the once, my train will collect and deliver the first 2 General goods produced but will never collect any after that.
I have tried all kinds of ideas to get this to work the way I want but never get past the first collection, am I missing something here with the Resource Check rule or is this as far as this rule will go, if so do you have any ideas on how I could archive this.
I have looked at monitoring the queue variables direct from the Industry but I can not find a way to monitor them and use them to drive child rules.
I am using Trainz 12 on build 58414.
Thanks Jim