IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> How to add a moving train to your map (****)
The DvD
post Nov 2 2006, 10:35 PM
Post #1


Webmaster
Group Icon

Group: Root Admin
Posts: 740
Joined: 27-May 06
From: The Netherlands
Member No.: 2
Alliance: Nod
Favorite game: Tiberian Sun



How to enable a moving train by AmonRa

I think alot of people are having truoble with trains so i thought it should be posted in the modding tuts forum i dont know who made this tut but
I think it was DJBREIT and i also added my own section to make the human player control only the loco but the train will still follow and will be able to be loaded and unloaded with infantry

I. A. Place all track for the train (make a complete loop of track).

II. For this example the train will be made up of 1 LOCOMOTIVE, 2 TRAINCARs, 1 CARGOCAR.
A. Place the LOCOMOTIVE and CARs in a line on the track.
The units should be placed in the order that they will move to make editing easier. This means place the LOCOMOTIVE on the track, then place the TRAINCAR (second unit of train) that will follow the LOCOMOTIVE right after, then place another TRAINCAR (third unit of train) right after the first TRAINCAR, then place the CARGOCAR (the last unit of train) after the second TRAINCAR (THIRD unit of train).
If you were to create a longer train, you would continue placing the rest of the cars in this way until the entire train is at desired length.

II. B.
1). Move the cursor over the second unit of the train (the first unit after the LOCOMOTIVE). In the lower-left bar of the program, the Vehicle's ID number is displayed. Remember this number.

2). Now click on the LOCOMOTIVE to bring up the unit Properties Box.
Set "Flag 4" (in later/latest ver of FS its Follows ID) value to: the number that was displayed for the second unit of the train.
The F4 value is the ID number of the unit that will follow this unit.

3). Set the direction of the unit so that front of it will face the direction that it will move on the track. Set the direction for all other units in this way.
0=Northeast, 32=East, 64=Southeast, 96=South, 128=Southwest, 160=West, 192=NorthWest, 224=North

4). Close the Properties Box by clicking on OK.

Steps 1 through 4 are repeated for the rest of the units except the last unit. If you need further directions to set the "Flag 4" value for other units, continue reading; otherwise go to Part II. C. for directions to set the "Flag 4" value for the last unit.

(1) Move the cursor over the third unit of the train and remember the number.
(2)Then click on the first TRAINCAR (second unit of train).
Set "Flag 4" value to: the number that was displayed for the third unit of the train.

(1) Move the cursor over the fourth unit of the train and remember the number.
(2) Then click on the second TRAINCAR (third unit of train).
Set "Flag 4" value to: the number that was displayed for the fourth unit of the train.
If you were to create a longer train, you would continue setting the "Flag 4" value for the rest of the cars in this way.

II. C.
1). Click on the CARGOCAR (last unit of train).
Set "Flag 4" value to: -1 (the F4 value for the last unit of the train is always -1 because no unit follows it)

III. A.
To make the train move with a script:
1). Place waypoint 10 in the same Cell where the LOCOMOTIVE is placed.
2). Place waypt 11 somewhere else on the track. NOTE: do not put them too close to each other and dont put them to close to the maps edge in cityscape i had a prob with the right train stopping on the second waypoint maybe because i added a few cars to the train

III. B.
Create a new Script (name it Trainmove) with actions in this order:
action type: 3 (move to waypt), Waypoint: 11
action type: 5 (guard area), Time units: 15 (=1 Sec)
action type: 3, Waypt: 10
action type: 5, Time: 15
action type: 6 (jump to action #), #: 1

III. C.
Create a Taskforce (1LOCOMOTIVE) of 1 LOCOMOTIVE unit.

III. D.
1). Create a Team (Lteam):
2). Set Waypt to 10
3). Set House to the SAME House of the LOCOMOTIVE unit that is already placed on the map.
4). Uncheck all checks (so the boxes have no check mark in them).
5). Set the correct Script (Trainmove) and Taskforce (1LOCOMOTIVE).

III. E.
Create a new trigger with the following:
Event type: 13, Time: 10
Action type: 4 (create team, used to make a team with units already on a map), Team: Lteam
Depending on your FS version, you may need to type "1" in the box where it says static.
If you encounter errors when trying to play the map, check all settings again.
If you get an error when the map is loading and you used the "Prepare standard houses feature" when creating the new map, then go to Edit > Houses > then select the house of the human player and set "Player control:" to "yes" for that house.

AmonRa - Making a Train Loco controlled by the player but the rest of the train wont be but will still follow the train and will be able to be Loaded\UnLoaded with Infantry

first make make two teams GDI and GDI2 or anything like then change the locomotive team to your team(GDI) and the train cars to the other team (GDI2) make the two allies and put the trigger teamtype and task force to your team(GDI)

there is a problem tho sometimes some of the cars get out of sync (some times the train cars continue without the loco or stop and the ones behind him continue but i think it happens only when you order the loco off a railroad or make an emergency brake (Stop Key) if this happens order the loco to move a bit forward and the train will return to theyre order)

This post has been edited by TitanMarkII: Nov 2 2006, 11:24 PM


--------------------
Please contact me on msn if you need me for anything, thanks.
Go to the top of the page
 
: | +Quote Post
gaman
post Aug 25 2008, 03:39 PM
Post #2


Minigunner
Group Icon

Group: Members
Posts: 19
Joined: 15-August 08
From: Netherlands
Member No.: 1,229
Alliance: GDI
Favorite game: Tiberian Sun



Ive got a problem my train works but sometimes i or another team start on the waypoint where the train stops.


--------------------
---------------
Dj rotti.
1.
2.
3.


Nothing special.
Who want's to read this?
It's useless to read this!
Stop reading this useless spoilers!
I said STOP!
U see! 30 secs of your life are gone....
Go to the top of the page
 
: | +Quote Post
KingByng
post Aug 25 2008, 05:55 PM
Post #3


Cyborg
Group Icon

Group: Members
Posts: 359
Joined: 17-February 07
From: Upper Canada
Member No.: 869
Alliance: GDI
Favorite game: Tiberian Sun



You need to use a waypoint with a number that is above 7. To do this, under Waypoints (side bar), there should be a "Create waypoint with special ID". Click that, and when you place the waypoint, a box should pop up where you can choose your own number.






--------------------
Go to the top of the page
 
: | +Quote Post
gaman
post Aug 25 2008, 05:58 PM
Post #4


Minigunner
Group Icon

Group: Members
Posts: 19
Joined: 15-August 08
From: Netherlands
Member No.: 1,229
Alliance: GDI
Favorite game: Tiberian Sun



Thanx!


--------------------
---------------
Dj rotti.
1.
2.
3.


Nothing special.
Who want's to read this?
It's useless to read this!
Stop reading this useless spoilers!
I said STOP!
U see! 30 secs of your life are gone....
Go to the top of the page
 
: | +Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 28th March 2024 - 11:29 AM


XGhozt.com