Script error with bendorsey's diesel service facility

RFAX

Member
I was hoping to use bendorsey's Diesel_Service_Facility in a route I am creating (TS12 SP1 HF4). When I attempt to configure it I get a "Error: PropertyBrowserRefresh() not handled" message. Looking for suggestion on how to fix or link to some thread I wasn't able to locate that already has the info. I did find a thread on fixing this error in one of his other assets but the change suggested there (replace water-gathering with water_gathering) doesn't appear to apply because the value already is water_gathering.
 
Have you tried removing the object from the map and placing it again. Sometimes changing the config needs this procedure to use the new config data.

Peter
 
I'm not a scripter so I have absolutely no idea that error means other then it sounds like something in Trainz code rather then something in the script code.

Does it give a line number for the error? If it does and its much over 100 its a error in Trainz code.

Ben
 
Hmm, PropertyBrowserRefresh() is part of the property window display, e.g. the window shown when you press the question mark and click on an asset afaik. Don't know a solution off hand, but the description of the function can be found here.

Greetings and seasonal best wishes from cloudy Amsterdam,

Jan
 
Sounds like it could be the broken commodity problem?

There are some broken commodities out there, and if you have one in your local install it can prevent the window from opening properly on industry assets. Easiest way to test if you have broken commodities would be to try the ? on another industry and see if the window appears correctly.

Edit: OK doesn't appear to be that, here is the error message

Industry.SetProcessInput> named process not found (file industry.gs)

Stack dump:

<kuid2:210518:2952:2>

function $float@Industry::GetProcessDuration(string), line -1
function $string@GenericIndustry::GetDescriptionHTML(), line 741
function $void@PropertyObject::PropertyBrowserRefresh(Browser), line 666

I think it is because the script is looking for a queue called "water_gathering" which is not present in the config.txt
 
Last edited:
It's not a queue, it's a process. Just rename water-gathering to water_gathering in the config.txt, and everything should be ok (Just checked with a fresh download in TS10 and TS12).

Peter
 
Yes indeed that fixes it. The relevant part of the config should be:

processes
{
water_gathering
{
start-enabled 1
duration 30

outputs
{
0
{
amount 10
queue "oil_in_out"
}
}

inputs
{
0
{
amount 10
queue "oil_in_out"
}
}
}
}
 
Thanks for the assistance. My problem was misinterpreting the original thread I had found - I thought the edit applied to the script file, not the config.txt file.
 
Back
Top