Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
the session thing with the html,
well, i can't seem to bring it up.
i can look at the session, but nothing else comes up that i can open.
Where can I find a tutorial on understanding the HTML asset that is referred to in the TRS2006 Session and Rules Guide? I searched Trainzwiki and found very little including "See HTML Tutorials for examples" but there was no link and no examples.
i can get to where i can see what's in there, but when i click on any 1 of them, the game crashed to the desktop
SInce this thread seems to be all about creating sessions, what makes a session "read only" and how can I change it back.
I am working on a session for the Downtown Traction Co. I select it in the route menu, then click on the button in the lowr right and get a list of the sessions. My new session shows up on the list. I highlight it and click on the Edit button. I make one change. Upon trying to save it, I get the create new session option. Not what I want, so I try to save it with the old name and I get a message that says the name I am trying to save to is a read only session. How do I save my session to continue its development without having to rename it every time I work on it?
This has not happen with past session edits.
I then looked at how Auran had done it for the Downtown Traction Company Coaling session and find that they are using one HTML asset to service a bunch of routes and sessions. So, I added a string to the string-table for my session, copied the html file for the coaling session and replaced the string reference with my string and gave the file a new name, added the Display HTML Pages rule to my session and editted it to reflect my html file and still I get a blank window.
Here is the html file titled "dt-cmtm-groganloop.html" () substituted for <>'s. THis file resides in the "DTC-1-HTML" folder.
(html)
(body)
(CENTER)(IMG SCR = "images/image1.jpg")(/CENTER)
(/body)
(/html)
<center>This text is centered</center>
Okay, most important point - don't put text in images. I can't stress this enough.image1 is 600 high x 500 high, 72 pixels/inch size black text on white background. It is easily readable in photoshop
<center></center>
For instance, how can I specify the size of the opening window for a session?
For that, you'll have to write a rule yourself in TrainzScript, unless some kind person has already done it and uploaded it to the DLS.I am creating a switching session and would like to keep track of how many couples and uncouples are made. I noticed that TRS2010 has a way to keep track of how much you participate in various actions via the Achievement scoring system found under the Main Menu button in the upper left corner of the opening screen. I am wondering if these variable are available to use in scoring a session.
If you have a look at the code for 'Driver' <kuid:-16:10240>, you'll be able to see the script code that does it.I am most interested in the Switching Experience achievement.
What drives this?
If you want to read the actual achievement variable (beware, it's global, so it doesn't start at zero at the start of a session), then there's a function in the achievements system to do it. You'll need to get a reference to the achievements system (the Driver module already does that, look for where m_achievementsSystem is set) and when you want to read it, you can call the readVariable function - it takes a string variable name (in this case "switching-moves") and a Library variable owner (in this case, the driver module itself).How do I access the variable?
Ultimately, it will be simpler (and better) to write a conditional rule which listens for the same messages, uses the same filtering code, and calls it's subrules when one passes the filter. You can then use the variable modify rule as a subrule to implement a session specific counter, which can be read in the normal way. The primary issue is for the session, you'll need to know when the couple or decouple takes place. The achievements system will not tell you when a variable changes.I’d like to keep track of how efficiently switching is performed for the session and am hoping that access to this variable will be of some value.
I looked on the wiki and found very little other than how to structure an Achievement asset config file. Any and all advise is appreciated.