html stuff for messages

llewelyn

New member
(Sorry if this is old hat, but I don't seem to see it in a quick search)

OK, so as start into surveyor (in TS2010) I decided to add a passenger special scenario to the Avery-Drexel route. I wanted to adapt the existing scenario which has an oncoming train to wait for and some nice little popups which explain the route as you drive - I'm basically lazy and there's no point in doing work twice :)

I've got the train sorted (the ATSF super chief, with added rear vista car and one extra pullman, hauled by a 4-unit F7 A-B-B-A set, if you're interested) and removed the train that you were originally supposed to drive, and tested it and it works fine, but of course the description and objectives are wrong. Now, the bit that shows the objectives uses the "show HTML" rule, and there's the thing. I can see by editing the rule a specification for where the program finds the html to display, but where is that in the file system? Obviously, my plan would be to create additional file(s) and use those instead of the originals, which would be simple if I knew where to save the new files.
 
The sessions instructions are in an HTML asset. You can view a list of them by setting the Search panel to Category - HTML asset. This lists the kuids but unfortunately the kuid number of the HTML asset used in a session is not referenced in the route or session config.txt file. To find which one is used you have to start Trainz, select the route, click the session and then select Edit Session. Once in Surveyor select the Edit Session Rules icon (top left menu bar), scroll down to Display HTML Pages, highlight it and select EDIT. The Source Asset column will id the HTML asset used. Then you can go back to CM3.3 to edit that HTML Asset as required.

Bob Weber
 
Back
Top