INVESTIGATIONS
- Subtopics:
- Build a test base. Click
-
- Modify track elements. Click
-
- Build scenery elements. Click
-
- Modify route elements. Stay tuned.
-
- Modify train characteristics. Stay tuned.
-
This section develops a methodology for getting the most out of your efforts and provides procedural investigations of the various BVE components.
Methodology. The key to this approach is the semicolon. When inserted into a line of code in the route file, everything that follows to the end of the line (or a comma) is a comment. A comment is something the processor ignores when it reads the file. The carriage return at the end of the line ends the comment.
IMPORTANT: Be careful not to interrupt a line of code with a carriage return. The processor will interpret this as two different statements and, since neither is likely to be complete, will probably return an error message.
By inserting a semicolon at the start of a line in the route file, you effectively "delete" the line but you still have it available to "undelete," simply by removing the semicolon.
One other suggestion: add your own comment when you change something. Examples are:
Before:
- 300@pitch(25)
-
After:
- ; 300@pitch(25) [commented out AB/6 July 01]
-
- 300@curve(500,10) ; [added AB/6 July 01]
Adding comments can become tedious, and you may find that they're not worth the effort. It's your choice. You may also find a simpler, easier form of annotation. Since we're only testing here, and not making permanent changes, I use a simple annotation as follows. Also, I only add lines of code. If I want to change an existing line, I comment it out and insert a modified copy.
- ; 300@pitch(25) ; ab
-
- 300@pitch(5) ; ab
I've included additional comments in the following procedures for clarity. They can be omitted.
Procedures. The remainder of this section is in the form of procedures. The following are available or planned:
- Build a test base. Click
-
- Modify track elements. Click
-
- Modify scenery elements. Stay tuned.
-
- Modify route elements. Stay tuned.
-
- Modify train characteristics. Stay tuned.
-
Top        
|