Class 222 Hull Trains problem

paul_r

Member
Hi all

Not been a trainzer for long and boy how absorbing this is! Brilliant modelling and gaming program. I've already had a few problems that I couldn't sort out solved on here so here goes with another one.

I want to use the Hull Trains class 222 and when I place the engine, I get the usual edit properties screen to allow me to set the running number and priority number.

When the engine becomes part of the consist, the edit screen changes and shows "Error: PropertyBrowserRefresh() not handled. A script error occurred while attempting to edit the properties of the asset"

Found this out when the train ran through a siding instead of staying on the mainline.

I've not done any editing so can't be something I've done?













Can anyone tell me what's wrong?

Thanks
Paul







I also often get a red bug on the bottom of the driving screen with different messages about thread exceptions. It doesn't seem to affect anything - can it safely be ignored?
 
Last edited:
Firstly ensure you have the latest versions of these assets, I believe the earlier versions showed this error but were updated.

If you still have a problem then the error is in the class222.gs script file for the none driver cars, ie the MCO, MSO, and the MSRMB cars.

Open the assets for edit in explorer then open the script file you will probably see a line that includes

isclass Locomotive

this should be

isclass Vehicle

Save the changes, close the explore window, and commit the asset.
 
Hi Paul,

The following text is lifted directly from a post by "Nexusdj" in the British Trainz forum:

***

Looking over the Midland Mainline version I notice that the trailing vehicles are set up as vehicle (isclass Vehicle) in the script files when they should set up as "Locomotive" as the engine tag is set at 1 in the config files.

I'll re-tag the other scripts files and see if it works .....

EDIT : It solves the problem .
When I placed the driving cars in surveyor the wipers animation was active but in driver they worked fine . Lighting works and unit can be issued commands and be driven manually in both directions .

So to solve the problem you need to open up the non driving cars for edit (the ones without cabs !! )
Find the script file "Class222.gs"
Select it , copy and then paste it somewhere else just in case you get the following steps wrong !!

open up the script file

find the entry :
class class222 isclass Vehicle

and change it to :
class class222 isclass Locomotive

Make sure you use a capital "L" for Locomotive .

Click top left : File then save then exit .

Commit vehicle in CMP and see if it flags up any red errors .
If it does then you've done it wrong go back and replace file with copied version and try again .

If not then it should be flagged yellow in TS12 for build being less than 2.7 but it will still work .


***

Give the above try and see if it helps, if you need help on doing the editing just post again.

I pretty sure that your problem with the train using the siding is unrelated - Trainz (AI) will always take the shortest available route. Depending on the circumstances you can overcome this by using Track Direction markers or other workarounds.

Glad you are enjoying Trainz.

Chris
 
The usual cause of this error is as I mentioned in my first post above but this one is a little different and following itareus's post I have gone back to check the class 222. As he says the trailer cars do have the engine tag set to 1 which would require the isclass value in the script file to be Locomotive.

However these are not Cab vehicles I believe a preferable change would be to alter the engine tag value to 0 in the config.txt file but I do not know how this would affect the running of the vehicles as they all include an engine spec.
 
Many thanks for that guys. To avoid any adverse effect on the running of the vehicles I've taken the option of changing Vehicle to Locomotive and all now seems fine - been running now for over an hour with no problem.

The problem came to light because I'm using priority 3 for mainline and set priority 3 on the Hull 222's. I'm using a copy of ECML and it was only when I found it in a siding that I discovered the setting (and the edit screen) had been lost. After a lot of playing about, I found that the settings were preserved OK until the drive units were formed into a consist. I'm still gobstruck at the size and detail of the ECML route and it looks like it's going to be even bigger with an extension to Edinburgh? If that's going to be in the next edition of Trainz I'll be buying it just for that.

At the moment I don't have the bug icon showing on screen so don't know whether this has sorted that as well. I'm sure I had the bug showing before I ever added the Hull 222 - it seems to show from time to time with different messages but doesn't seem to affect a drive session so at moment I'm ignoring it.......

Thanks again guys - if you have any comment about the bug symbol it would be appreciated.

Paul
 
Paul

The red bug usually indicates a faulty script for an asset, you may see a clue to which asset by looking at the bug text (especially the "More" button on the popup). Deciphering this text depends on having some understanding of Trainz Script, perhaps from being a programmer but more often from having seen the problem, or a similar one, before - good old fashioned experience !

Once you have pinpointed the faulty asset then (as dnevans8 stated earlier) check you have the latest version of the asset. If you are up to date, version wise, then try a Google search for a solution.

Chris
 
Hello to all.

I have found in the past on the class 222's, that as the train is running, the doors seem to flick open and then shut, as the train passes by. If you follow the train and turn your camera, so the doors are just on the side of the screen, the doors will disappear, leaving an open area inside the train, I was wondering could this be the cause of the error.

Joe Airtime
 
Hi again


The Hull 222 still behaving itself.

The red bug has also disappeared so maybe it was the same fault. If it comes back I'll have a closer look at it now that I've learned how to get in to edit. Suspect it's shown before when I've added content
that has shown as faulty and then I've deleted it.

I hadn't noticed anything amiss with the 222's doors and have just checked a passing unit with a camera and can't see anything wrong.

Thanks again for sorting this for me

Paul
 
Me again -

although the Hull 222 is Ok I've just tried to add the East Midlands version and get red lettered faulty items that I can't do anything with.

"The tag image in '1' points to a non-existant file: class222_art\clas222_art_icon.tga (the second class has only one 's')

I've opened for edit and can't find any reference to art or icon, but notice that this also says Vehicles rather than Locomotive so will change that as well if I can get this new error sorted.

Have done a file search for class222 but nothing shows. Wondering whether to leave the 222's alone if they have problems - don't want to screw anything up.

Sorry to be a pain but can this be sorted easily as well?

Paul
 
The tag image in '1' points to a non-existant file: class222_art\clas222_art_icon.tga (the second class has only one 's')

When you open the asset for edit in explorer you will notice that there are a number of folders, one of which is called "class222_art". In this folder there is an image file which is called "class222_art_icon.tga". This is the folder and file that Trainz is looking for, but because of a spelling error in the config.txt file it cannot find it. Open the config.txt file with Notepad (not a word processor) and near the bottom you will see a section called "thumbnails". The second set of entries has a heading "1" and you will see;
Code:
  1
  {
    image                               "class222_art/clas222_art_icon.tga"
    width                               128
    height                              64
  }

You will see that this has only one "s" in "class" which does not match the file name in the "class222_art" folder. This is the problem so add the extra "s" to the name in the config file and re-commit.

To avoid the script error you had before, you also need to change the Vehicle to Locomotive in the script file.

Scottish
 
Hi Paul

If you are in doubt about working with an asset then clone it first (right click on it in CM and select Clone from the menu). This produces a duplicate asset under your kuid which you can play about with. If you make a mess of it just delete the clone and repeat the process. Once you've sorted the error you can either correct the original or just use the clone. Note that if you clone built in content you may get a shed load of errors due to the different type of texture file used in built ins but these can be repaired if you really need to do it.

Regards

Brian
 
Thanks Scottish -

When I try to save the change I am getting access denied.

When I select the folder class222_art I only get a file class222_art_icon.tga which I can't open - not a folder as well - nor is there a config file.

I have gone back to the config file shown under class222_art and the other folders, gone in edit in notepad, found the text and added the extra s . Asks me if want to save the change but after the "yes" denies access.

Have not done this sort of thing before so presume it's a simple error on my part.

Paul
 
The config file which you edit is in the list of files to view when you first open the asset, not in the sub-directory folder class222_art. You do not need to open the class222_art_icon.tga for any reason. You only need to change the spelling error in the config file.

If you cannot save the changed config file, this is probably because you are using Windows 7 or 8 and that you have not opened the file with Administrator rights.

Scottish
 
Hi Scottish

I am Windows 7 and have checked that I am administrator.

Have tried again with a different unit but same result......go into save - screen appears confirming then access is denied.

Paul
 
I can assure you that there is no restriction to editing this config file built into TS12, therefore this must be a Windows issue which is denying you permission to change the file. I am still using XP, but from what I have read about 7 & 8, there is a difference between you being the administrator and opening a specific program or file with full administrator right to change it.

Perhaps somebody who is familiar with Windows 7 can advise on this.

Scottish
 
That is a permissions issue. Notepad in Windows Vista,7, and 8 is unable to save directly into any folder in Program Files or Program Files (x86) unless it is run as administrator. What you can do though is to save the config to the desktop and move the file into the asset's folder, confirming you want to overwrite it and responding Continue/Yes to the UAC prompt.

Shane

P.S. Having an administrator account and running a program as administrator are not the same thing.
 
Yes that's what I'm thinking...

In case I'm doing something stupid, here's what I get

In content - open for edit then edit in explorer

In folder - config

open with notepad
insert extra letter 's'
top left - file / save
confirmatrion save as screen
config.txt already exsists - replace?
Yes
Access is denied.

I have a new computer but have windows 7 installed on it because I didn't like what I read about windows 8 - mentioning in case relevent.

Have checked that my account shows as administrator.

Thanks for your help Scottish - can anyone help on this ?

Paul
 
What I'm basically telling you is to save the modified config to the desktop. Once you've done that, move the asset's folder window so you can see both the file on the desktop and the folder window, then, holding your left button down on the file, drag the file from the desktop to the folder window then let go of the mouse.

Shane
 
Back
Top