This is my pride. The train simulator is a interesting use of useful use of JScriptFunctionSet.
It is based on a one dimensional system. I can convert the whole US railroad system into a one dimensional line. You can move anywhere on the line. I divide the line into segments. The segment are either a straight line or a arc with a common radius. The straight line has 2 parameters. Length and direction. A arc has several parameter. One is the direction of center of the arc, another is radius of the arc and the length of the arc in degrees.
The main problem with this system is the trucks are closer together on the arc segment. The larger the arc the smaller the error.
The cars are built on the assumption of 2 trucks (front truck and back truck) and a car that rides on them. This is a 3 body system. The steam engine is a 2 body system. It does not work.
To make the system work, you must point the program to the working directory (select any file in the folder), the program will strip off the program name. Select the Train text file Train.txt and the track file Track01.txt.
Press First and then Press Second. Wait several seconds and click on the box to the right of the Run button. On the top right side is the speed control. Move it to the right to move the train forward.
New Train Simulator
-
Shell1850
- Chief Petty Officer
- Posts: 135
- Joined: 21 May 2009, 21:44
New Train Simulator
- Attachments
-
- Train sim update.zip
- (1.16 MiB) Downloaded 272 times
Last edited by Shell1850 on 11 Oct 2011, 00:56, edited 2 times in total.
-
Shell1850
- Chief Petty Officer
- Posts: 135
- Joined: 21 May 2009, 21:44
Re: New Train Simulator
I forgot to thank Norm. Without his effort, I could not have written this program.
-
Finis
- Captain
- Posts: 5410
- Joined: 21 May 2009, 18:26
- Type the number ten into the box: 0
- Location: America!
Re: New Train Simulator
What do you do with this or how do you use it? Is it a stand alone program, a plug-in or extension for something?
I prefer dangerous freedom over peaceful servitude. -- Thomas Jefferson/Jean Jacques Rousseau
-
Shell1850
- Chief Petty Officer
- Posts: 135
- Joined: 21 May 2009, 21:44
Re: New Train Simulator
It is a folder with objects, text files and one RsScn file. Open truespae 7.61 and load the RsScn file.
It shows some interesting programing.
It shows some interesting programing.
-
Cayenne
- Chief Petty Officer
- Posts: 119
- Joined: 03 Jun 2009, 20:05
- Type the number ten into the box: 0
- Location: U.K.
Re: New Train Simulator
pretty neat work , .
should I be able to see any track geometry.?
Did you put your name in any of the scripts ?
this reminds me of a script that was done by Glen Gordon , (I think if memory serves me right) his script used a text file that placed some geometry in xyz dimensions , will see if I can dig it out to show you, unless that is you are he...
thanks for sharing
regards
Paul
should I be able to see any track geometry.?
Did you put your name in any of the scripts ?
this reminds me of a script that was done by Glen Gordon , (I think if memory serves me right) his script used a text file that placed some geometry in xyz dimensions , will see if I can dig it out to show you, unless that is you are he...
thanks for sharing
regards
Paul
-
Shell1850
- Chief Petty Officer
- Posts: 135
- Joined: 21 May 2009, 21:44
Re: New Train Simulator
Paul, I should put my name in different bricks but I did not. My name is Ron Samson.
Sorry no tracks. I tried to put railroad ties using my create track routine but the program ran very slow.
I have written some routines to position a camera above the cars. I did not include the camera to simplify the routine.
The MoveCar1 routine in the Track Function Set is something I could not get to work.
Sorry no tracks. I tried to put railroad ties using my create track routine but the program ran very slow.
I have written some routines to position a camera above the cars. I did not include the camera to simplify the routine.
The MoveCar1 routine in the Track Function Set is something I could not get to work.
-
Shell1850
- Chief Petty Officer
- Posts: 135
- Joined: 21 May 2009, 21:44
Re: New Train Simulator
I was wondering if anyone found this useful? My goal was to show people how to use the function set. This is a useful addition to truespace 7 that few people have exploited.
I can add options if anyone is interested.
I can add options if anyone is interested.