Using Resource Check Rule

p53a

New member
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 would try adding that "resource check" inside/below a "Ordered List" rule. Edit the rule and change it from "Process repeat x times" to "Process will run forever".
 
I have used this on a route and it worked well. It has been awhile since I set it up so I will have to go back and check it out. Right off the top of my head I belive that the check was done before you train unloaded and that is why it never did anything.
 
Can I check whether you are using TS12 SP1 (build 57720 or higher)? If so, there are reports of rules not repeating.

Shane
 
Ok I looked it up. I used the "Rresource Veify Rule" with the child being "Driver Schedule Rule". In the Driver Schedule Rule, in your case, I would check the "Cooperative style". Hope this helps you out it works wor me.
 
Back
Top